Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Soft/iter
/ TestEmpty
Function
TestEmpty
iterator_test.go:60–63 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
58
}
59
60
func
TestEmpty(t *testing.T) {
61
it := Empty[int]()
62
equals(t, it.Next().IsNone(), true)
63
}
64
65
func
TestOnce(t *testing.T) {
66
it := Once[int](10)
Callers
nothing calls this directly
Calls
3
equals
Function · 0.85
IsNone
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…