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

Function TestFuzzSetHarnessCoverage

set_spec_test.go:56–63  ·  view source on GitHub ↗

Verifies: SYS-REQ-009 [fuzz] MCDC SYS-REQ-009: N/A

(t *testing.T)

Source from the content-addressed store, hash-verified

54// Verifies: SYS-REQ-009 [fuzz]
55// MCDC SYS-REQ-009: N/A
56func TestFuzzSetHarnessCoverage(t *testing.T) {
57 if got := FuzzSet([]byte(`{"test":"input"}`)); got != 1 {
58 t.Fatalf("expected FuzzSet success path to return 1, got %d", got)
59 }
60 if got := FuzzSet([]byte(``)); got != 0 {
61 t.Fatalf("expected FuzzSet failure path to return 0, got %d", got)
62 }
63}
64
65// TestSetArrayIndexUnderObjectMalformedJSON_KI3 is the class witness for the
66// failure mode tracked as KnownIssue KI-3 / DEFECT-260726-MFPA. Historically,

Callers

nothing calls this directly

Calls 1

FuzzSetFunction · 0.85

Tested by

no test coverage detected