(tb testing.TB, i interface{})
| 234 | } |
| 235 | |
| 236 | func NotNil(tb testing.TB, i interface{}) { |
| 237 | if i == nil { |
| 238 | fmt.Printf("%s: expected value, got nil\n", caller()) |
| 239 | tb.FailNow() |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | // equals fails the test if exp is not equal to act. |
| 244 | func Equals(tb testing.TB, exp, act interface{}) { |