Truef asserts that the specified value is true. assert.Truef(t, myBool, "error message %s", "formatted")
(t TestingT, value bool, msg string, args ...interface{})
| 772 | // |
| 773 | // assert.Truef(t, myBool, "error message %s", "formatted") |
| 774 | func Truef(t TestingT, value bool, msg string, args ...interface{}) bool { |
| 775 | if h, ok := t.(tHelper); ok { |
| 776 | h.Helper() |
| 777 | } |
| 778 | return True(t, value, append([]interface{}{msg}, args...)...) |
| 779 | } |
| 780 | |
| 781 | // WithinDurationf asserts that the two times are within duration delta of each other. |
| 782 | // |