Truef asserts that the specified value is true. assert.Truef(t, myBool, "error message %s", "formatted")
(t TestingT, value bool, msg string, args ...interface{})
| 798 | // |
| 799 | // assert.Truef(t, myBool, "error message %s", "formatted") |
| 800 | func Truef(t TestingT, value bool, msg string, args ...interface{}) bool { |
| 801 | if h, ok := t.(tHelper); ok { |
| 802 | h.Helper() |
| 803 | } |
| 804 | return True(t, value, append([]interface{}{msg}, args...)...) |
| 805 | } |
| 806 | |
| 807 | // WithinDurationf asserts that the two times are within duration delta of each other. |
| 808 | // |