1package spec_iterator 2 3import ( 4 "errors" 5 6 "github.com/onsi/ginkgo/internal/spec" 7) 8 9var ErrClosed = errors.New("no more specs to run") 10 11type SpecIterator interface { 12 Next() (*spec.Spec, error) 13 NumberOfSpecsPriorToIteration() int 14 NumberOfSpecsToProcessIfKnown() (int, bool) 15 NumberOfSpecsThatWillBeRunIfKnown() (int, bool) 16} 17 18type Counter struct { 19 Index int `json:"index"` 20} 21