We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab61328 commit 03e4d0fCopy full SHA for 03e4d0f
coderd/authz/authztest/set_test.go
@@ -61,10 +61,13 @@ func TestRole(t *testing.T) {
61
62
var total uint64
63
for _, c := range testCases {
64
- fmt.Println(c.Name)
65
- fmt.Printf("\tSize=%d\n", c.Permutations.Size)
66
total += uint64(c.Permutations.Size)
67
}
+
+ for _, c := range testCases {
68
+ fmt.Printf("%s: Size=%10d, %10f%% of total\n",
69
+ c.Name, c.Permutations.Size, 100*(float64(c.Permutations.Size)/float64(total)))
70
+ }
71
fmt.Printf("Total cases=%d\n", total)
72
73
// This is how you run the test cases
0 commit comments