(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestSumOfProperDivisors(t *testing.T) { |
| 92 | for _, tc := range getSumOfProperDivisorsTestCases() { |
| 93 | actual := math.SumOfProperDivisors(tc.input) |
| 94 | if actual != tc.expected { |
| 95 | t.Errorf( |
| 96 | "Expected SumOfProperDivisors(%d) to be: %d, but got: %d", |
| 97 | tc.input, tc.expected, actual) |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | func BenchmarkSumOfProperDivisors(b *testing.B) { |
| 103 | for i := 0; i < b.N; i++ { |
nothing calls this directly
no test coverage detected