MCPcopy
hub / github.com/buger/jsonparser / TestRemoval1_Unescape_InvalidEscape

Function TestRemoval1_Unescape_InvalidEscape

dead_code_audit_test.go:764–769  ·  view source on GitHub ↗

============================================================================= ADDITIONAL: Test that the Unescape loop change doesn't affect error handling ============================================================================= Verifies: SYS-REQ-014 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

762
763// Verifies: SYS-REQ-014 [boundary]
764func TestRemoval1_Unescape_InvalidEscape(t *testing.T) {
765 _, err := Unescape([]byte(`\z`), make([]byte, 64))
766 if err == nil {
767 t.Fatal("expected MalformedStringEscapeError for \\z")
768 }
769}
770
771// Verifies: SYS-REQ-014 [boundary]
772func TestRemoval1_Unescape_ConsecutiveEscapes(t *testing.T) {

Callers

nothing calls this directly

Calls 1

UnescapeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…