MCPcopy Index your code
hub / github.com/expr-lang/expr / Lenf

Method Lenf

internal/testify/require/require_forward.go:924–929  ·  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

922//
923// a.Lenf(mySlice, 3, "error message %s", "formatted")
924func (a *Assertions) Lenf(object interface{}, length int, msg string, args ...interface{}) {
925 if h, ok := a.t.(tHelper); ok {
926 h.Helper()
927 }
928 Lenf(a.t, object, length, msg, args...)
929}
930
931// Less asserts that the first element is less than the second
932//

Callers

nothing calls this directly

Calls 2

LenfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected