(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestSort(t *testing.T) { |
| 27 | for _, tt := range funcs { |
| 28 | t.Run(tt.name, func(t *testing.T) { |
| 29 | arr := utils.RandArray(10) |
| 30 | |
| 31 | tt.f(arr) |
| 32 | |
| 33 | if !sort.IntsAreSorted(arr) { |
| 34 | t.Errorf("%v is not sorted", arr) |
| 35 | } |
| 36 | }) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func BenchmarkSort(b *testing.B) { |
| 41 | for _, tt := range funcs { |
nothing calls this directly
no outgoing calls
no test coverage detected