- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestIntFlagOverflow (0.16 sec)
-
src/flag/flag_test.go
fs.PrintDefaults() got := buf.String() if got != defaultOutput { t.Errorf("got:\n%q\nwant:\n%q", got, defaultOutput) } } // Issue 19230: validate range of Int and Uint flag values. func TestIntFlagOverflow(t *testing.T) { if strconv.IntSize != 32 { return } ResetForTesting(nil) Int("i", 0, "") Uint("u", 0, "") if err := Set("i", "2147483648"); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 22K bytes - Viewed (0)