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

Function TestMap

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

Source from the content-addressed store, hash-verified

34}
35
36func TestMap(t *testing.T) {
37 it := Repeat(5)
38 equals(t, it.Next().Unwrap(), 5)
39 equals(t, it.Next().Unwrap(), 5)
40 equals(t, it.Next().Unwrap(), 5)
41}
42
43func TestFunc(t *testing.T) {
44 v := 0

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…