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

Method Lenf

internal/testify/assert/assertion_forward.go:922–927  ·  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

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

Callers

nothing calls this directly

Calls 2

LenfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected