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

Function TestMarshalBadUTF8

json/golang_decode_test.go:994–1001  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

992}
993
994func TestMarshalBadUTF8(t *testing.T) {
995 for _, tt := range badUTF8 {
996 b, err := Marshal(tt.in)
997 if string(b) != tt.out || err != nil {
998 t.Errorf("Marshal(%q) = %#q, %v, want %#q, nil", tt.in, b, err, tt.out)
999 }
1000 }
1001}
1002
1003func TestMarshalNumberZeroVal(t *testing.T) {
1004 var n Number

Callers

nothing calls this directly

Calls 1

MarshalFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…