MCPcopy
hub / github.com/stretchr/testify / Lenf

Method Lenf

assert/assertion_forward.go:960–965  ·  view source on GitHub ↗

Lenf asserts that the specified object has specific length. Lenf also fails if the object has a type that len() not accept. a.Lenf(mySlice, 3, "error message %s", "formatted")

(object interface{}, length int, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

958//
959// a.Lenf(mySlice, 3, "error message %s", "formatted")
960func (a *Assertions) Lenf(object interface{}, length int, msg string, args ...interface{}) bool {
961 if h, ok := a.t.(tHelper); ok {
962 h.Helper()
963 }
964 return Lenf(a.t, object, length, msg, args...)
965}
966
967// Less asserts that the first element is less than the second
968//

Callers

nothing calls this directly

Calls 2

LenfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected