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

Function TestParseBooleanEmpty

deep_spec_test.go:573–578  ·  view source on GitHub ↗

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

(t *testing.T)

Source from the content-addressed store, hash-verified

571// Verifies: SYS-REQ-066 [boundary]
572// ParseBoolean on empty input shall return MalformedValueError.
573func TestParseBooleanEmpty(t *testing.T) {
574 _, err := ParseBoolean([]byte(``))
575 if !errors.Is(err, MalformedValueError) {
576 t.Fatalf("ParseBoolean(empty) error = %v, want %v", err, MalformedValueError)
577 }
578}
579
580// =============================================================================
581// ParseString empty and escape edge cases (SYS-REQ-067, SYS-REQ-060, SYS-REQ-061, SYS-REQ-062, SYS-REQ-063)

Callers

nothing calls this directly

Calls 1

ParseBooleanFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…