Positive asserts that the specified element is positive assert.Positive(t, 1) assert.Positive(t, 1.23)
(t TestingT, e interface{}, msgAndArgs ...interface{})
| 436 | // assert.Positive(t, 1) |
| 437 | // assert.Positive(t, 1.23) |
| 438 | func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) bool { |
| 439 | if h, ok := t.(tHelper); ok { |
| 440 | h.Helper() |
| 441 | } |
| 442 | zero := reflect.Zero(reflect.TypeOf(e)) |
| 443 | return compareTwoValues(t, e, zero.Interface(), []compareResult{compareGreater}, "\"%v\" is not positive", msgAndArgs...) |
| 444 | } |
| 445 | |
| 446 | // Negative asserts that the specified element is negative |
| 447 | // |
searching dependent graphs…