Truef asserts that the specified value is true. a.Truef(myBool, "error message %s", "formatted")
(value bool, msg string, args ...interface{})
| 1542 | // |
| 1543 | // a.Truef(myBool, "error message %s", "formatted") |
| 1544 | func (a *Assertions) Truef(value bool, msg string, args ...interface{}) bool { |
| 1545 | if h, ok := a.t.(tHelper); ok { |
| 1546 | h.Helper() |
| 1547 | } |
| 1548 | return Truef(a.t, value, msg, args...) |
| 1549 | } |
| 1550 | |
| 1551 | // WithinDuration asserts that the two times are within duration delta of each other. |
| 1552 | // |