- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestIntMask (0.07 sec)
-
src/crypto/rand/util_test.go
if reader.n != expected { t.Errorf("Int(reader, %d) should read %d bytes, but it read: %d", max, expected, reader.n) } }) } } // Test that Int does not mask out valid return values func TestIntMask(t *testing.T) { for max := 1; max <= 256; max++ { t.Run(fmt.Sprintf("max=%d", max), func(t *testing.T) { for i := 0; i < max; i++ { if testing.Short() && i == 0 { i = max - 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 01:35:39 UTC 2022 - 3.5K bytes - Viewed (0)