Positivef asserts that the specified element is positive assert.Positivef(t, 1, "error message %s", "formatted") assert.Positivef(t, 1.23, "error message %s", "formatted")
(t TestingT, e interface{}, msg string, args ...interface{})
| 1839 | // assert.Positivef(t, 1, "error message %s", "formatted") |
| 1840 | // assert.Positivef(t, 1.23, "error message %s", "formatted") |
| 1841 | func Positivef(t TestingT, e interface{}, msg string, args ...interface{}) { |
| 1842 | if h, ok := t.(tHelper); ok { |
| 1843 | h.Helper() |
| 1844 | } |
| 1845 | if assert.Positivef(t, e, msg, args...) { |
| 1846 | return |
| 1847 | } |
| 1848 | t.FailNow() |
| 1849 | } |
| 1850 | |
| 1851 | // Regexp asserts that a specified regexp matches a string. |
| 1852 | // |