MCPcopy Create free account
hub / github.com/corestoreio/pkg / LenBetween

Function LenBetween

util/assert/assertions.go:676–685  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

getLenFunction · 0.85
FailFunction · 0.85

Tested by

no test coverage detected