| 1 |
package nondeterministic_fixture_test |
| 2 |
|
| 3 |
import ( |
| 4 |
. "github.com/onsi/ginkgo/v2" |
| 5 |
) |
| 6 |
|
| 7 |
var specGenerator = map[string]bool{ |
| 8 |
"map-A": true, |
| 9 |
"map-B": true, |
| 10 |
"map-C": true, |
| 11 |
"map-D": true, |
| 12 |
"map-E": true, |
| 13 |
"map-F": true, |
| 14 |
"map-G": true, |
| 15 |
"map-H": true, |
| 16 |
"map-I": true, |
| 17 |
"map-J": true, |
| 18 |
} |
| 19 |
|
| 20 |
var _ = Describe("some tests, that include a test generated by iterating over a map", func() { |
| 21 |
Describe("some tests", func() { |
| 22 |
It("runs A", func() { |
| 23 |
|
| 24 |
}) |
| 25 |
It("runs B", func() { |
| 26 |
|
| 27 |
}) |
| 28 |
}) |
| 29 |
|
| 30 |
When("iterating over a map", func() { |
| 31 |
for key := range specGenerator { |
| 32 |
It("runs "+key, func() { |
| 33 |
|
| 34 |
}) |
| 35 |
} |
| 36 |
}) |
| 37 |
|
| 38 |
It("runs some other tests", func() { |
| 39 |
|
| 40 |
}) |
| 41 |
}) |