(b *testing.B)
| 38 | } |
| 39 | |
| 40 | func BenchmarkSort(b *testing.B) { |
| 41 | for _, tt := range funcs { |
| 42 | arrs := make([][]int, 0) |
| 43 | |
| 44 | for n := 0; n < b.N; n++ { |
| 45 | arrs = append(arrs, utils.RandArray(10)) |
| 46 | } |
| 47 | |
| 48 | b.Run(tt.name, func(b *testing.B) { |
| 49 | for n := 0; n < len(arrs); n++ { |
| 50 | tt.f(arrs[n]) |
| 51 | } |
| 52 | }) |
| 53 | } |
| 54 | } |
nothing calls this directly
no outgoing calls
no test coverage detected