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

Function TestParseIntEmpty

deep_spec_test.go:547–552  ·  view source on GitHub ↗

Verifies: SYS-REQ-064 [boundary] ParseInt on empty input shall return MalformedValueError.

(t *testing.T)

Source from the content-addressed store, hash-verified

545// Verifies: SYS-REQ-064 [boundary]
546// ParseInt on empty input shall return MalformedValueError.
547func TestParseIntEmpty(t *testing.T) {
548 _, err := ParseInt([]byte(``))
549 if !errors.Is(err, MalformedValueError) {
550 t.Fatalf("ParseInt(empty) error = %v, want %v", err, MalformedValueError)
551 }
552}
553
554// =============================================================================
555// ParseFloat empty (SYS-REQ-065)

Callers

nothing calls this directly

Calls 1

ParseIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…