MCPcopy
hub / github.com/rs/zerolog / TestAppendStrings

Function TestAppendStrings

internal/json/string_test.go:18–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestAppendStrings(t *testing.T) {
19 for _, tt := range internal.EncodeStringsTests {
20 b := enc.AppendStrings([]byte{}, tt.In)
21 if got, want := string(b), tt.Out; got != want {
22 t.Errorf("appendStrings(%q) = %#q, want %#q", tt.In, got, want)
23 }
24 }
25}
26
27func TestAppendStringer(t *testing.T) {
28 oldJSONMarshalFunc := JSONMarshalFunc

Callers

nothing calls this directly

Calls 1

AppendStringsMethod · 0.65

Tested by

no test coverage detected