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

Method Len

internal/testify/require/require_forward.go:913–918  ·  view source on GitHub ↗

Len asserts that the specified object has specific length. Len also fails if the object has a type that len() not accept. a.Len(mySlice, 3)

(object interface{}, length int, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

911//
912// a.Len(mySlice, 3)
913func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) {
914 if h, ok := a.t.(tHelper); ok {
915 h.Helper()
916 }
917 Len(a.t, object, length, msgAndArgs...)
918}
919
920// Lenf asserts that the specified object has specific length.
921// Lenf also fails if the object has a type that len() not accept.

Callers

nothing calls this directly

Calls 2

LenFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected