(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestIsPowerOfTwoLeftShift(t *testing.T) { |
| 52 | tests := getTestsForPowerOfTwo() |
| 53 | for _, tv := range tests { |
| 54 | t.Run(tv.name, func(t *testing.T) { |
| 55 | result := IsPowerOfTwoLeftShift(uint(tv.a)) |
| 56 | t.Log(tv.a, " ", result) |
| 57 | if result != tv.missing { |
| 58 | t.Errorf("Wrong result! Expected:%v, returned:%v ", tv.missing, result) |
| 59 | } |
| 60 | }) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func TestIsPowOfTwoUseLog(t *testing.T) { |
| 65 | tests := getTestsForPowerOfTwo() |
nothing calls this directly
no test coverage detected