Positivef asserts that the specified element is positive require.Positivef(t, 1, "error message %s", "formatted") require.Positivef(t, 1.23, "error message %s", "formatted")
(t TestingT, e interface{}, msg string, args ...interface{})
| 1950 | // require.Positivef(t, 1, "error message %s", "formatted") |
| 1951 | // require.Positivef(t, 1.23, "error message %s", "formatted") |
| 1952 | func Positivef(t TestingT, e interface{}, msg string, args ...interface{}) { |
| 1953 | if h, ok := t.(tHelper); ok { |
| 1954 | h.Helper() |
| 1955 | } |
| 1956 | if assert.Positivef(t, e, msg, args...) { |
| 1957 | return |
| 1958 | } |
| 1959 | t.FailNow() |
| 1960 | } |
| 1961 | |
| 1962 | // Regexp asserts that a specified regexp matches a string. |
| 1963 | // |