(t *testing.T, cond bool, msg string, args ...interface{})
| 20 | } |
| 21 | |
| 22 | func errorIfFalse(t *testing.T, cond bool, msg string, args ...interface{}) { |
| 23 | if !cond { |
| 24 | if len(args) > 0 { |
| 25 | t.Errorf("%v %v", positionString(1), fmt.Sprintf(msg, args...)) |
| 26 | } else { |
| 27 | t.Errorf("%v %v", positionString(1), msg) |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func errorIfNotNil(t *testing.T, v1 interface{}) { |
| 33 | if fmt.Sprint(v1) != "<nil>" { |
no test coverage detected
searching dependent graphs…