LenBetween asserts that the specified object has a length between a lower and an upper bound. LenBetween also fails if the object has a type that len() not accept. assert.MaxLen(t, mySlice, 3, "The size of slice is not 3") assert.MaxLen(t, myInt, 5, "The value of myInt is not smaller or equal to 5"
(t TestingT, object interface{}, min, maxLength int, msgAndArgs ...interface{})