MCPcopy
hub / github.com/expr-lang/expr / Lenf

Function Lenf

internal/testify/assert/assertion_format.go:463–468  ·  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. assert.Lenf(t, mySlice, 3, "error message %s", "formatted")

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

Source from the content-addressed store, hash-verified

461//
462// assert.Lenf(t, mySlice, 3, "error message %s", "formatted")
463func Lenf(t TestingT, object interface{}, length int, msg string, args ...interface{}) bool {
464 if h, ok := t.(tHelper); ok {
465 h.Helper()
466 }
467 return Len(t, object, length, append([]interface{}{msg}, args...)...)
468}
469
470// Lessf asserts that the first element is less than the second
471//

Callers 2

LenfFunction · 0.92
LenfMethod · 0.70

Calls 2

LenFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…