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

Function TestGetIntEmptyInput

deep_spec_test.go:770–775  ·  view source on GitHub ↗

Verifies: SYS-REQ-078 [boundary] GetInt on empty input shall return error.

(t *testing.T)

Source from the content-addressed store, hash-verified

768// Verifies: SYS-REQ-078 [boundary]
769// GetInt on empty input shall return error.
770func TestGetIntEmptyInput(t *testing.T) {
771 _, err := GetInt([]byte(``), "a")
772 if err == nil {
773 t.Fatal("GetInt on empty input should return error")
774 }
775}
776
777// =============================================================================
778// GetBoolean partial literal (SYS-REQ-079)

Callers

nothing calls this directly

Calls 1

GetIntFunction · 0.85

Tested by

no test coverage detected