Description

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, "The size of slice is not 3")

Returns whether the assertion was successful (true) or not (false).