True asserts that the specified value is true. require.True(t, myBool)
(t TestingT, value bool, msgAndArgs ...interface{})
| 2061 | // |
| 2062 | // require.True(t, myBool) |
| 2063 | func True(t TestingT, value bool, msgAndArgs ...interface{}) { |
| 2064 | if h, ok := t.(tHelper); ok { |
| 2065 | h.Helper() |
| 2066 | } |
| 2067 | if assert.True(t, value, msgAndArgs...) { |
| 2068 | return |
| 2069 | } |
| 2070 | t.FailNow() |
| 2071 | } |
| 2072 | |
| 2073 | // Truef asserts that the specified value is true. |
| 2074 | // |