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

Function TestParseFloatEmpty

deep_spec_test.go:560–565  ·  view source on GitHub ↗

============================================================================= ParseFloat empty (SYS-REQ-065) ============================================================================= Verifies: SYS-REQ-065 [boundary] ParseFloat on empty input shall return MalformedValueError.

(t *testing.T)

Source from the content-addressed store, hash-verified

558// Verifies: SYS-REQ-065 [boundary]
559// ParseFloat on empty input shall return MalformedValueError.
560func TestParseFloatEmpty(t *testing.T) {
561 _, err := ParseFloat([]byte(``))
562 if !errors.Is(err, MalformedValueError) {
563 t.Fatalf("ParseFloat(empty) error = %v, want %v", err, MalformedValueError)
564 }
565}
566
567// =============================================================================
568// ParseBoolean empty (SYS-REQ-066)

Callers

nothing calls this directly

Calls 1

ParseFloatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…