Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 1 | package spec_iterator |
2 | |||||
3 | import ( | ||||
4 | "errors" | ||||
5 | |||||
6 | "github.com/onsi/ginkgo/internal/spec" | ||||
7 | ) | ||||
8 | |||||
9 | var ErrClosed = errors.New("no more specs to run") | ||||
10 | |||||
11 | type SpecIterator interface { | ||||
12 | Next() (*spec.Spec, error) | ||||
13 | NumberOfSpecsPriorToIteration() int | ||||
14 | NumberOfSpecsToProcessIfKnown() (int, bool) | ||||
15 | NumberOfSpecsThatWillBeRunIfKnown() (int, bool) | ||||
16 | } | ||||
17 | |||||
18 | type Counter struct { | ||||
19 | Index int `json:"index"` | ||||
20 | } |