(t *testing.T)
| 194 | } |
| 195 | |
| 196 | func TestOrderingMsgAndArgsForwarding(t *testing.T) { |
| 197 | t.Parallel() |
| 198 | |
| 199 | msgAndArgs := []interface{}{"format %s %x", "this", 0xc001} |
| 200 | expectedOutput := "format this c001\n" |
| 201 | collection := []int{1, 2, 1} |
| 202 | funcs := []func(t TestingT){ |
| 203 | func(t TestingT) { IsIncreasing(t, collection, msgAndArgs...) }, |
| 204 | func(t TestingT) { IsNonIncreasing(t, collection, msgAndArgs...) }, |
| 205 | func(t TestingT) { IsDecreasing(t, collection, msgAndArgs...) }, |
| 206 | func(t TestingT) { IsNonDecreasing(t, collection, msgAndArgs...) }, |
| 207 | } |
| 208 | for _, f := range funcs { |
| 209 | out := &outputT{buf: bytes.NewBuffer(nil)} |
| 210 | f(out) |
| 211 | Contains(t, out.buf.String(), expectedOutput) |
| 212 | } |
| 213 | } |
nothing calls this directly
no test coverage detected