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

Function TestTake

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

Source from the content-addressed store, hash-verified

27}
28
29func TestTake(t *testing.T) {
30 it := Take(Repeat(5), 2)
31 equals(t, it.Next().Unwrap(), 5)
32 equals(t, it.Next().Unwrap(), 5)
33 equals(t, it.Next().IsNone(), true)
34}
35
36func TestMap(t *testing.T) {
37 it := Repeat(5)

Callers

nothing calls this directly

Calls 6

TakeFunction · 0.85
RepeatFunction · 0.85
equalsFunction · 0.85
UnwrapMethod · 0.80
IsNoneMethod · 0.80
NextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…