MCPcopy Create free account
hub / github.com/segmentio/encoding / TestIssue136

Function TestIssue136

json/bugs/issue136/main_test.go:10–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestIssue136(t *testing.T) {
11 input := json.RawMessage(` null`)
12
13 got, err := json.Marshal(input)
14 if err != nil {
15 t.Fatal(err)
16 }
17
18 want := bytes.TrimSpace(input)
19
20 if !bytes.Equal(got, want) {
21 t.Fatalf("Marshal(%q) = %q, want %q", input, got, want)
22 }
23}

Callers

nothing calls this directly

Calls 1

MarshalFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…