(t *testing.T)
| 21 | } |
| 22 | |
| 23 | func TestMeanUsingRightShift(t *testing.T) { |
| 24 | tests := getTests() |
| 25 | for _, tv := range tests { |
| 26 | t.Run(tv.name, func(t *testing.T) { |
| 27 | result := MeanUsingRightShift(tv.a, tv.b) |
| 28 | if result != tv.result { |
| 29 | t.Errorf("Wrong result! Expected:%d, returned:%d ", tv.result, result) |
| 30 | } |
| 31 | }) |
| 32 | } |
| 33 | |
| 34 | } |
| 35 | func getTests() []struct { |
| 36 | name string |
| 37 | a int |
nothing calls this directly
no test coverage detected