MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / Len

Function Len

internal/testing/cmp/cmp.go:62–64  ·  view source on GitHub ↗

Len succeeds if actual has the expected length.

(actual Slice, expected int)

Source from the content-addressed store, hash-verified

60
61// Len succeeds if actual has the expected length.
62func Len[Slice ~[]E, E any](actual Slice, expected int) Comparison {
63 return gotest.Len(actual, expected)
64}
65
66// LenMap succeeds if actual has the expected length.
67func LenMap[Map ~map[K]V, K comparable, V any](actual Map, expected int) Comparison {

Calls 1

LenMethod · 0.80

Tested by 13

TestGeneratePostgresHBAsFunction · 0.74
TestSanitizeLogDirectoryFunction · 0.74
TestOrderedHBAsFunction · 0.74
TestAddToPodFunction · 0.74
TestAdditionalVolumesFunction · 0.74
TestPGAdminDataVolumeFunction · 0.74