(t *testing.T)
| 1502 | } |
| 1503 | |
| 1504 | func TestCondition(t *testing.T) { |
| 1505 | t.Parallel() |
| 1506 | |
| 1507 | mockT := new(testing.T) |
| 1508 | |
| 1509 | if !Condition(mockT, func() bool { return true }, "Truth") { |
| 1510 | t.Error("Condition should return true") |
| 1511 | } |
| 1512 | |
| 1513 | if Condition(mockT, func() bool { return false }, "Lie") { |
| 1514 | t.Error("Condition should return false") |
| 1515 | } |
| 1516 | } |
| 1517 | |
| 1518 | func TestDidPanic(t *testing.T) { |
| 1519 | t.Parallel() |