Positive asserts that the specified element is positive require.Positive(t, 1) require.Positive(t, 1.23)
(t TestingT, e interface{}, msgAndArgs ...interface{})
| 1936 | // require.Positive(t, 1) |
| 1937 | // require.Positive(t, 1.23) |
| 1938 | func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) { |
| 1939 | if h, ok := t.(tHelper); ok { |
| 1940 | h.Helper() |
| 1941 | } |
| 1942 | if assert.Positive(t, e, msgAndArgs...) { |
| 1943 | return |
| 1944 | } |
| 1945 | t.FailNow() |
| 1946 | } |
| 1947 | |
| 1948 | // Positivef asserts that the specified element is positive |
| 1949 | // |