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

Function TestFuzzParseFloatHarnessCoverage

parser_test.go:2257–2264  ·  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

2255// Verifies: SYS-REQ-013 [fuzz]
2256// MCDC SYS-REQ-013: N/A
2257func TestFuzzParseFloatHarnessCoverage(t *testing.T) {
2258 if got := FuzzParseFloat([]byte(`1.25`)); got != 1 {
2259 t.Fatalf("expected FuzzParseFloat success path to return 1, got %d", got)
2260 }
2261 if got := FuzzParseFloat([]byte(`1.2.3`)); got != 0 {
2262 t.Fatalf("expected FuzzParseFloat failure path to return 0, got %d", got)
2263 }
2264}
2265
2266// Verifies: STK-REQ-001 [boundary]
2267// MCDC STK-REQ-001: N/A

Callers

nothing calls this directly

Calls 1

FuzzParseFloatFunction · 0.85

Tested by

no test coverage detected