MCPcopy
hub / github.com/pquerna/ffjson / TestBadUnicode

Function TestBadUnicode

fflib/v1/reader_test.go:48–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func TestBadUnicode(t *testing.T) {
49 var out Buffer
50 ffr := newffReader([]byte(`\u20--"`))
51 err := ffr.SliceString(&out)
52 if err == nil {
53 t.Fatalf("expected SliceString hex decode error")
54 }
55}
56
57func TestNonUnicodeEscape(t *testing.T) {
58 var out Buffer

Callers

nothing calls this directly

Calls 3

newffReaderFunction · 0.85
SliceStringMethod · 0.80
FatalfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…