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{})
| 773 | // assert.Positivef(t, 1, "error message %s", "formatted") |
| 774 | // assert.Positivef(t, 1.23, "error message %s", "formatted") |
| 775 | func Positivef(t TestingT, e interface{}, msg string, args ...interface{}) bool { |
| 776 | if h, ok := t.(tHelper); ok { |
| 777 | h.Helper() |
| 778 | } |
| 779 | return Positive(t, e, append([]interface{}{msg}, args...)...) |
| 780 | } |
| 781 | |
| 782 | // Regexpf asserts that a specified regexp matches a string. |
| 783 | // |