21 lines
380 B
Go
21 lines
380 B
Go
|
package spec_iterator
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
|
||
|
"github.com/onsi/ginkgo/internal/spec"
|
||
|
)
|
||
|
|
||
|
var ErrClosed = errors.New("no more specs to run")
|
||
|
|
||
|
type SpecIterator interface {
|
||
|
Next() (*spec.Spec, error)
|
||
|
NumberOfSpecsPriorToIteration() int
|
||
|
NumberOfSpecsToProcessIfKnown() (int, bool)
|
||
|
NumberOfSpecsThatWillBeRunIfKnown() (int, bool)
|
||
|
}
|
||
|
|
||
|
type Counter struct {
|
||
|
Index int `json:"index"`
|
||
|
}
|