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

Function TestRemoval1_Unescape_ConsecutiveEscapes

dead_code_audit_test.go:778–786  ·  view source on GitHub ↗

Verifies: SYS-REQ-014 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

776
777// Verifies: SYS-REQ-014 [boundary]
778func TestRemoval1_Unescape_ConsecutiveEscapes(t *testing.T) {
779 out, err := Unescape([]byte(`\n\t\r`), make([]byte, 64))
780 if err != nil {
781 t.Fatalf("unexpected error: %v", err)
782 }
783 if string(out) != "\n\t\r" {
784 t.Fatalf("unexpected result: %q", out)
785 }
786}
787
788// Verifies: SYS-REQ-014 [boundary]
789func TestRemoval1_Unescape_EscapedQuote(t *testing.T) {

Callers

nothing calls this directly

Calls 1

UnescapeFunction · 0.85

Tested by

no test coverage detected