(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestMin(t *testing.T) { |
| 42 | for _, test := range getTestCases() { |
| 43 | t.Run(test.name, func(t *testing.T) { |
| 44 | actualMin := Int(test.numbers...) |
| 45 | if actualMin != test.min { |
| 46 | t.Errorf("Wrong result! Expected:%v, returned:%v ", test.min, actualMin) |
| 47 | } |
| 48 | }) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func BenchmarkTestMinInt(b *testing.B) { |
| 53 | for i := 0; i < b.N; i++ { |
nothing calls this directly
no test coverage detected