summaryrefslogtreecommitdiff
path: root/tests/lib_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib_test.go')
-rw-r--r--tests/lib_test.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/lib_test.go b/tests/lib_test.go
index 9b7cd9f..71ff6d0 100644
--- a/tests/lib_test.go
+++ b/tests/lib_test.go
@@ -2,10 +2,6 @@ package papo_test
import (
"bufio"
- "bytes"
- "encoding/json"
- "fmt"
- "log/slog"
"reflect"
"strings"
"testing"
@@ -352,28 +348,3 @@ func TestParseMessage(t *testing.T) {
assertEqual(t, given, expected)
}
-
-func TestSetLoggerOutput(t *testing.T) {
- return
- type entry struct {
- msg string `json:"msg"`
- aKey string `json:"a-key"`
- }
- var e entry
- var buf bytes.Buffer
- papo.SetLoggerOutput(&buf)
- slog.Error("the message", "a-key", "a-value")
-
- s := buf.String()
- // fmt.Println(s)
- // fmt.Println(e)
- err := json.Unmarshal([]byte(s), &e)
- if err != nil {
- t.Fail()
- }
- if e.msg != "the message" {
- t.Fail()
- }
- fmt.Println(1)
- // fmt.Println(e)
-}