Len asserts that the specified object has specific length. Len also fails if the object has a type that len() not accept. a.Len(mySlice, 3)
(object interface{}, length int, msgAndArgs ...interface{})
| 948 | // |
| 949 | // a.Len(mySlice, 3) |
| 950 | func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) { |
| 951 | if h, ok := a.t.(tHelper); ok { |
| 952 | h.Helper() |
| 953 | } |
| 954 | Len(a.t, object, length, msgAndArgs...) |
| 955 | } |
| 956 | |
| 957 | // Lenf asserts that the specified object has specific length. |
| 958 | // Lenf also fails if the object has a type that len() not accept. |
no test coverage detected