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

Function TestGetIntOverflow

deep_spec_test.go:723–728  ·  view source on GitHub ↗

Verifies: SYS-REQ-076 [boundary] GetInt on overflow value shall return overflow error.

(t *testing.T)

Source from the content-addressed store, hash-verified

721// Verifies: SYS-REQ-076 [boundary]
722// GetInt on overflow value shall return overflow error.
723func TestGetIntOverflow(t *testing.T) {
724 _, err := GetInt([]byte(`{"a":9223372036854775808}`), "a")
725 if !errors.Is(err, OverflowIntegerError) {
726 t.Fatalf("GetInt(overflow) error = %v, want %v", err, OverflowIntegerError)
727 }
728}
729
730// Verifies: SYS-REQ-077 [boundary]
731// GetInt on non-number value shall return type-mismatch 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…