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

Function Lenf

internal/testify/require/require.go:1167–1175  ·  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

1165//
1166// assert.Lenf(t, mySlice, 3, "error message %s", "formatted")
1167func Lenf(t TestingT, object interface{}, length int, msg string, args ...interface{}) {
1168 if h, ok := t.(tHelper); ok {
1169 h.Helper()
1170 }
1171 if assert.Lenf(t, object, length, msg, args...) {
1172 return
1173 }
1174 t.FailNow()
1175}
1176
1177// Less asserts that the first element is less than the second
1178//

Callers 1

LenfMethod · 0.70

Calls 3

LenfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…