LessOrEqual asserts that the first element is less than or equal to the second assert.LessOrEqual(t, 1, 2) assert.LessOrEqual(t, 2, 2) assert.LessOrEqual(t, "a", "b") assert.LessOrEqual(t, "b", "b")
(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
| 425 | // assert.LessOrEqual(t, "a", "b") |
| 426 | // assert.LessOrEqual(t, "b", "b") |
| 427 | func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool { |
| 428 | if h, ok := t.(tHelper); ok { |
| 429 | h.Helper() |
| 430 | } |
| 431 | return compareTwoValues(t, e1, e2, []compareResult{compareLess, compareEqual}, "\"%v\" is not less than or equal to \"%v\"", msgAndArgs...) |
| 432 | } |
| 433 | |
| 434 | // Positive asserts that the specified element is positive |
| 435 | // |
searching dependent graphs…