Lenf asserts that the specified object has specific length. Lenf also fails if the object has a type that len() not accept. a.Lenf(mySlice, 3, "error message %s", "formatted")
(object interface{}, length int, msg string, args ...interface{})
| 922 | // |
| 923 | // a.Lenf(mySlice, 3, "error message %s", "formatted") |
| 924 | func (a *Assertions) Lenf(object interface{}, length int, msg string, args ...interface{}) { |
| 925 | if h, ok := a.t.(tHelper); ok { |
| 926 | h.Helper() |
| 927 | } |
| 928 | Lenf(a.t, object, length, msg, args...) |
| 929 | } |
| 930 | |
| 931 | // Less asserts that the first element is less than the second |
| 932 | // |