(b *testing.B)
| 33 | } |
| 34 | |
| 35 | func BenchmarkCos(b *testing.B) { |
| 36 | for i := 0; i < b.N; i++ { |
| 37 | algmath.Cos(180) |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // BenchmarkMathCos is slower because the standard library `math.Cos` calculates a more accurate value. |
| 42 | func BenchmarkMathCos(b *testing.B) { |
nothing calls this directly
no outgoing calls
no test coverage detected