MCPcopy Index your code
hub / github.com/coder/coder / TestInt63

Function TestInt63

cryptorand/numbers_test.go:11–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestInt63(t *testing.T) {
12 t.Parallel()
13
14 for i := 0; i < 20; i++ {
15 v, err := cryptorand.Int63()
16 require.NoError(t, err, "unexpected error from Int63")
17 t.Logf("value: %v <- random?", v)
18 require.True(t, v >= 0, "values must be positive")
19 }
20}
21
22func TestInt63n(t *testing.T) {
23 t.Parallel()

Callers

nothing calls this directly

Calls 2

Int63Function · 0.92
LogfMethod · 0.65

Tested by

no test coverage detected