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

Function TestGetIntMalformedInput

deep_spec_test.go:714–719  ·  view source on GitHub ↗

============================================================================= GetInt edge cases (SYS-REQ-075, SYS-REQ-076, SYS-REQ-077, SYS-REQ-078) ============================================================================= Verifies: SYS-REQ-075 [malformed] GetInt on malformed input shall propaga

(t *testing.T)

Source from the content-addressed store, hash-verified

712// Verifies: SYS-REQ-075 [malformed]
713// GetInt on malformed input shall propagate Get error.
714func TestGetIntMalformedInput(t *testing.T) {
715 _, err := GetInt([]byte(`{"a"::`), "a")
716 if err == nil {
717 t.Fatal("GetInt on malformed input should return error")
718 }
719}
720
721// Verifies: SYS-REQ-076 [boundary]
722// GetInt on overflow value shall return overflow error.

Callers

nothing calls this directly

Calls 1

GetIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…