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

Function TestInvalidEscape

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

Source from the content-addressed store, hash-verified

64}
65
66func TestInvalidEscape(t *testing.T) {
67 var out Buffer
68 ffr := newffReader([]byte(`\x134"`))
69 err := ffr.SliceString(&out)
70 if err == nil {
71 t.Fatalf("expected SliceString escape decode error")
72 }
73}

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…