Documentation
¶
Overview ¶
Package itertest defines test functions to verify that `iter.Seq` and `iter.Seq2` implementations properly stop iterating when `yield()` returns false.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifySeq2CanStopAfterN ¶
VerifySeq2CanStopAfterN iterates over seq, breaks after n elements, recovers from any panic and reports the error to `t`. A well-behaved iter.Seq2 must not call yield() again after it has returned false.
func VerifySeqCanStopAfterN ¶
VerifySeqCanStopAfterN iterates over seq, breaks after n elements, recovers from any panic and reports the error to `t`. A well-behaved iter.Seq must not call yield() again after it has returned false.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.