Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
36
func
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
43
func
TestFunc(t *testing.T) {
44
v := 0
Callers
nothing calls this directly
Calls
4
Repeat
Function · 0.85
equals
Function · 0.85
Unwrap
Method · 0.80
Next
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…