(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestIsPerfectNumber(t *testing.T) { |
| 140 | for _, tc := range getIsPerfectNumberTestCases() { |
| 141 | if math.IsPerfectNumber(tc.number) != tc.isPerfect { |
| 142 | t.Errorf("Unexpected output for %d", tc.number) |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | func BenchmarkIsPerfectNumber(b *testing.B) { |
| 148 | for i := 0; i < b.N; i++ { |
nothing calls this directly
no test coverage detected