MCPcopy Index your code
hub / github.com/buger/jsonparser / TestFuzzParseFloatHarnessCoverage

Function TestFuzzParseFloatHarnessCoverage

parser_test.go:2228–2235  ·  view source on GitHub ↗

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

(t *testing.T)

Source from the content-addressed store, hash-verified

2226// Verifies: SYS-REQ-013 [fuzz]
2227// MCDC SYS-REQ-013: N/A
2228func TestFuzzParseFloatHarnessCoverage(t *testing.T) {
2229 if got := FuzzParseFloat([]byte(`1.25`)); got != 1 {
2230 t.Fatalf("expected FuzzParseFloat success path to return 1, got %d", got)
2231 }
2232 if got := FuzzParseFloat([]byte(`1.2.3`)); got != 0 {
2233 t.Fatalf("expected FuzzParseFloat failure path to return 0, got %d", got)
2234 }
2235}
2236
2237// Verifies: STK-REQ-001 [boundary]
2238// MCDC STK-REQ-001: N/A

Callers

nothing calls this directly

Calls 1

FuzzParseFloatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…