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{})
| 947 | // |
| 948 | // a.Len(mySlice, 3) |
| 949 | func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) bool { |
| 950 | if h, ok := a.t.(tHelper); ok { |
| 951 | h.Helper() |
| 952 | } |
| 953 | return Len(a.t, object, length, msgAndArgs...) |
| 954 | } |
| 955 | |
| 956 | // Lenf asserts that the specified object has specific length. |
| 957 | // Lenf also fails if the object has a type that len() not accept. |