MCPcopy
hub / github.com/git-lfs/git-lfs / TestOrderedSetCardinality

Function TestOrderedSetCardinality

tools/ordered_set_test.go:158–163  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func TestOrderedSetCardinality(t *testing.T) {
159 s1 := NewOrderedSetFromSlice([]string{"a", "b"})
160
161 assert.Equal(t, 2, s1.Cardinality(),
162 "tools: expected cardinality of [a, b] to equal 2")
163}
164
165func TestOrderedSetIter(t *testing.T) {
166 s1 := NewOrderedSetFromSlice([]string{"a", "b", "c"})

Callers

nothing calls this directly

Calls 3

NewOrderedSetFromSliceFunction · 0.85
EqualMethod · 0.45
CardinalityMethod · 0.45

Tested by

no test coverage detected