Positive asserts that the specified element is positive require.Positive(t, 1) require.Positive(t, 1.23)
(t TestingT, e interface{}, msgAndArgs ...interface{})
| 1888 | // require.Positive(t, 1) |
| 1889 | // require.Positive(t, 1.23) |
| 1890 | func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) { |
| 1891 | if h, ok := t.(tHelper); ok { |
| 1892 | h.Helper() |
| 1893 | } |
| 1894 | if assert.Positive(t, e, msgAndArgs...) { |
| 1895 | return |
| 1896 | } |
| 1897 | t.FailNow() |
| 1898 | } |
| 1899 | |
| 1900 | // Positivef asserts that the specified element is positive |
| 1901 | // |