| 1 |
package spechierarchy_test |
| 2 |
|
| 3 |
import ( |
| 4 |
"testing" |
| 5 |
|
| 6 |
. "github.com/onsi/ginkgo/v2" |
| 7 |
. "github.com/onsi/gomega" |
| 8 |
) |
| 9 |
|
| 10 |
func TestSpecHierarchy(t *testing.T) { |
| 11 |
RegisterFailHandler(Fail) |
| 12 |
RunSpecs(t, "SpecHierarchy Suite", SemVerConstraint("> 2.0.0")) |
| 13 |
} |
| 14 |
|
| 15 |
var _ = Describe("Spec Hierarchy Semantic Version Filtering", func() { |
| 16 |
It("should inherit spec constraint", func() {}) |
| 17 |
|
| 18 |
It("should narrow down spec constraint", SemVerConstraint(">= 3.0.0, < 4.0.0"), func() {}) |
| 19 |
|
| 20 |
It("should integrate with component constraint", ComponentSemVerConstraint("compA", ">= 12.0.0"), func() {}) |
| 21 |
}) |