MCPcopy Create free account
hub / github.com/Soft/iter / TestChain

Function TestChain

iterator_test.go:145–151  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

143}
144
145func TestChain(t *testing.T) {
146 it := Chain(
147 Slice([]int{1, 2}),
148 Slice([]int{3, 4}),
149 )
150 equals(t, ToSlice(it), []int{1, 2, 3, 4})
151}
152
153func TestFind(t *testing.T) {
154 it := Slice([]int{1, 2, 3, 4, 5})

Callers

nothing calls this directly

Calls 4

ChainFunction · 0.85
SliceFunction · 0.85
equalsFunction · 0.85
ToSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…