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

Function TestAppendString

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

Source from the content-addressed store, hash-verified

7)
8
9func TestAppendString(t *testing.T) {
10 for _, tt := range internal.EncodeStringTests {
11 b := enc.AppendString([]byte{}, tt.In)
12 if got, want := string(b), tt.Out; got != want {
13 t.Errorf("appendString(%q) = %#q, want %#q", tt.In, got, want)
14 }
15 }
16}
17
18func TestAppendStrings(t *testing.T) {
19 for _, tt := range internal.EncodeStringsTests {

Callers

nothing calls this directly

Calls 1

AppendStringMethod · 0.65

Tested by

no test coverage detected