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{})
| 958 | // |
| 959 | // a.Lenf(mySlice, 3, "error message %s", "formatted") |
| 960 | func (a *Assertions) Lenf(object interface{}, length int, msg string, args ...interface{}) bool { |
| 961 | if h, ok := a.t.(tHelper); ok { |
| 962 | h.Helper() |
| 963 | } |
| 964 | return Lenf(a.t, object, length, msg, args...) |
| 965 | } |
| 966 | |
| 967 | // Less asserts that the first element is less than the second |
| 968 | // |