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

Method Len

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

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

Callers 12

isOrderedFunction · 0.45
TestLenWrapperFunction · 0.45
copyExportedFieldsFunction · 0.45
isEmptyFunction · 0.45
getLenFunction · 0.45
containsElementFunction · 0.45
SubsetFunction · 0.45
NotSubsetFunction · 0.45
diffListsFunction · 0.45
InDeltaSliceFunction · 0.45
InDeltaMapValuesFunction · 0.45
InEpsilonSliceFunction · 0.45

Calls 2

LenFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestLenWrapperFunction · 0.36