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

Function TestEscapeEmptyString

escape_test.go:434–438  ·  view source on GitHub ↗

Verifies: SYS-REQ-014 (escape handling) reqproof:proptest:skip targeted witness/regression test; not a property-test subject

(t *testing.T)

Source from the content-addressed store, hash-verified

432// Verifies: SYS-REQ-014 (escape handling)
433// reqproof:proptest:skip targeted witness/regression test; not a property-test subject
434func TestEscapeEmptyString(t *testing.T) {
435 if got, want := string(Escape("")), `""`; got != want {
436 t.Fatalf("Escape(\"\") = %q; want %q", got, want)
437 }
438}
439
440// Verifies: SYS-REQ-009 (Set)
441// Verifies: SYS-REQ-009 (Set)

Callers

nothing calls this directly

Calls 1

EscapeFunction · 0.85

Tested by

no test coverage detected