MCPcopy Create free account
hub / github.com/buger/jsonparser / TestRemoval1_Unescape_InvalidEscape

Function TestRemoval1_Unescape_InvalidEscape

dead_code_audit_test.go:770–775  ·  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

768
769// Verifies: SYS-REQ-014 [boundary]
770func TestRemoval1_Unescape_InvalidEscape(t *testing.T) {
771 _, err := Unescape([]byte(`\z`), make([]byte, 64))
772 if err == nil {
773 t.Fatal("expected MalformedStringEscapeError for \\z")
774 }
775}
776
777// Verifies: SYS-REQ-014 [boundary]
778func TestRemoval1_Unescape_ConsecutiveEscapes(t *testing.T) {

Callers

nothing calls this directly

Calls 1

UnescapeFunction · 0.85

Tested by

no test coverage detected