Truef asserts that the specified value is true. assert.Truef(t, myBool, "error message %s", "formatted")
(t TestingT, value bool, msg string, args ...interface{})
| 1955 | // |
| 1956 | // assert.Truef(t, myBool, "error message %s", "formatted") |
| 1957 | func Truef(t TestingT, value bool, msg string, args ...interface{}) { |
| 1958 | if h, ok := t.(tHelper); ok { |
| 1959 | h.Helper() |
| 1960 | } |
| 1961 | if assert.Truef(t, value, msg, args...) { |
| 1962 | return |
| 1963 | } |
| 1964 | t.FailNow() |
| 1965 | } |
| 1966 | |
| 1967 | // WithinDuration asserts that the two times are within duration delta of each other. |
| 1968 | // |
searching dependent graphs…