Verifies: SYS-REQ-076 [boundary] GetInt on overflow value shall return overflow error.
(t *testing.T)
| 721 | // Verifies: SYS-REQ-076 [boundary] |
| 722 | // GetInt on overflow value shall return overflow error. |
| 723 | func 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. |
nothing calls this directly
no test coverage detected
searching dependent graphs…