(t *testing.T)
| 1436 | } |
| 1437 | |
| 1438 | func TestCondition(t *testing.T) { |
| 1439 | mockT := new(testing.T) |
| 1440 | |
| 1441 | if !Condition(mockT, func() bool { return true }, "Truth") { |
| 1442 | t.Error("Condition should return true") |
| 1443 | } |
| 1444 | |
| 1445 | if Condition(mockT, func() bool { return false }, "Lie") { |
| 1446 | t.Error("Condition should return false") |
| 1447 | } |
| 1448 | |
| 1449 | } |
| 1450 | |
| 1451 | func TestDidPanic(t *testing.T) { |
| 1452 |