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{})
| 911 | // |
| 912 | // a.Len(mySlice, 3) |
| 913 | func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) { |
| 914 | if h, ok := a.t.(tHelper); ok { |
| 915 | h.Helper() |
| 916 | } |
| 917 | Len(a.t, object, length, msgAndArgs...) |
| 918 | } |
| 919 | |
| 920 | // Lenf asserts that the specified object has specific length. |
| 921 | // Lenf also fails if the object has a type that len() not accept. |