(b *testing.B)
| 57 | } |
| 58 | |
| 59 | func BenchmarkFactorial(b *testing.B) { |
| 60 | for _, input := range []int{5, 10, 15} { |
| 61 | for implName, implFunction := range implementations { |
| 62 | b.Run(fmt.Sprintf("%s_%d", implName, input), func(b *testing.B) { |
| 63 | for i := 0; i < b.N; i++ { |
| 64 | _, _ = implFunction(input) |
| 65 | } |
| 66 | }) |
| 67 | } |
| 68 | } |
| 69 | } |
nothing calls this directly
no outgoing calls
no test coverage detected