(t *testing.T)
| 1320 | } |
| 1321 | |
| 1322 | func TestCondition(t *testing.T) { |
| 1323 | mockT := new(testing.T) |
| 1324 | |
| 1325 | if !Condition(mockT, func() bool { return true }, "Truth") { |
| 1326 | t.Error("Condition should return true") |
| 1327 | } |
| 1328 | |
| 1329 | if Condition(mockT, func() bool { return false }, "Lie") { |
| 1330 | t.Error("Condition should return false") |
| 1331 | } |
| 1332 | |
| 1333 | } |
| 1334 | |
| 1335 | func TestDidPanic(t *testing.T) { |
| 1336 |