Debian Codegraph @

common/dice/dice_test.go

raw symbols SCIP
1 package dice_testscip-go gomod v2ray.com/core . `v2ray.com/core/common/dice_test`/
2
3 import (
4 "math/randscip-go gomod github.com/golang/go/src go1.15 `math/rand`/"
5 "testingscip-go gomod github.com/golang/go/src go1.15 testing/"
6
7 . "v2ray.com/core/common/dicescip-go gomod v2ray.com/core . `v2ray.com/core/common/dice`/"
8 )
9
10 func BenchmarkRoll1scip-go gomod v2ray.com/core . `v2ray.com/core/common/dice_test`/BenchmarkRoll1().(b *testingscip-go gomod github.com/golang/go/src go1.15 testing/.Bscip-go gomod github.com/golang/go/src go1.15 testing/B#) {
11 for i := 0; i < b.Nscip-go gomod github.com/golang/go/src go1.15 testing/B#N.; i++ {
12 Rollscip-go gomod v2ray.com/core . `v2ray.com/core/common/dice`/Roll().(1)
13 }
14 }
15
16 func BenchmarkRoll20scip-go gomod v2ray.com/core . `v2ray.com/core/common/dice_test`/BenchmarkRoll20().(b *testingscip-go gomod github.com/golang/go/src go1.15 testing/.Bscip-go gomod github.com/golang/go/src go1.15 testing/B#) {
17 for i := 0; i < b.Nscip-go gomod github.com/golang/go/src go1.15 testing/B#N.; i++ {
18 Rollscip-go gomod v2ray.com/core . `v2ray.com/core/common/dice`/Roll().(20)
19 }
20 }
21
22 func BenchmarkIntn1scip-go gomod v2ray.com/core . `v2ray.com/core/common/dice_test`/BenchmarkIntn1().(b *testingscip-go gomod github.com/golang/go/src go1.15 testing/.Bscip-go gomod github.com/golang/go/src go1.15 testing/B#) {
23 for i := 0; i < b.Nscip-go gomod github.com/golang/go/src go1.15 testing/B#N.; i++ {
24 randscip-go gomod github.com/golang/go/src go1.15 `math/rand`/.Intnscip-go gomod github.com/golang/go/src go1.15 `math/rand`/Intn().(1)
25 }
26 }
27
28 func BenchmarkIntn20scip-go gomod v2ray.com/core . `v2ray.com/core/common/dice_test`/BenchmarkIntn20().(b *testingscip-go gomod github.com/golang/go/src go1.15 testing/.Bscip-go gomod github.com/golang/go/src go1.15 testing/B#) {
29 for i := 0; i < b.Nscip-go gomod github.com/golang/go/src go1.15 testing/B#N.; i++ {
30 randscip-go gomod github.com/golang/go/src go1.15 `math/rand`/.Intnscip-go gomod github.com/golang/go/src go1.15 `math/rand`/Intn().(20)
31 }
32 }
33
34 func BenchmarkInt63scip-go gomod v2ray.com/core . `v2ray.com/core/common/dice_test`/BenchmarkInt63().(b *testingscip-go gomod github.com/golang/go/src go1.15 testing/.Bscip-go gomod github.com/golang/go/src go1.15 testing/B#) {
35 for i := 0; i < b.Nscip-go gomod github.com/golang/go/src go1.15 testing/B#N.; i++ {
36 _ = uint16(randscip-go gomod github.com/golang/go/src go1.15 `math/rand`/.Int63scip-go gomod github.com/golang/go/src go1.15 `math/rand`/Int63().() >> 47)
37 }
38 }
39
40 func BenchmarkInt31scip-go gomod v2ray.com/core . `v2ray.com/core/common/dice_test`/BenchmarkInt31().(b *testingscip-go gomod github.com/golang/go/src go1.15 testing/.Bscip-go gomod github.com/golang/go/src go1.15 testing/B#) {
41 for i := 0; i < b.Nscip-go gomod github.com/golang/go/src go1.15 testing/B#N.; i++ {
42 _ = uint16(randscip-go gomod github.com/golang/go/src go1.15 `math/rand`/.Int31scip-go gomod github.com/golang/go/src go1.15 `math/rand`/Int31().() >> 15)
43 }
44 }
45
46 func BenchmarkIntnscip-go gomod v2ray.com/core . `v2ray.com/core/common/dice_test`/BenchmarkIntn().(b *testingscip-go gomod github.com/golang/go/src go1.15 testing/.Bscip-go gomod github.com/golang/go/src go1.15 testing/B#) {
47 for i := 0; i < b.Nscip-go gomod github.com/golang/go/src go1.15 testing/B#N.; i++ {
48 _ = uint16(randscip-go gomod github.com/golang/go/src go1.15 `math/rand`/.Intnscip-go gomod github.com/golang/go/src go1.15 `math/rand`/Intn().(65536))
49 }
50 }