| 1 | package generatorsscip-go gomod github.com/onsi/ginkgo/v2 . `github.com/onsi/ginkgo/v2/ginkgo/generators`/ |
| 2 | |
| 3 | var specTextscip-go gomod github.com/onsi/ginkgo/v2 . `github.com/onsi/ginkgo/v2/ginkgo/generators`/specText. = `{{.BuildTags}} |
| 4 | package {{.Package}} |
| 5 | |
| 6 | import ( |
| 7 | {{.GinkgoImport}} |
| 8 | {{.GomegaImport}} |
| 9 | |
| 10 | {{if .ImportPackage}}"{{.PackageImportPath}}"{{end}} |
| 11 | ) |
| 12 | |
| 13 | var _ = {{.GinkgoPackage}}Describe("{{.Subject}}", func() { |
| 14 | |
| 15 | }) |
| 16 | ` |
| 17 | |
| 18 | var agoutiSpecTextscip-go gomod github.com/onsi/ginkgo/v2 . `github.com/onsi/ginkgo/v2/ginkgo/generators`/agoutiSpecText. = `{{.BuildTags}} |
| 19 | package {{.Package}} |
| 20 | |
| 21 | import ( |
| 22 | {{.GinkgoImport}} |
| 23 | {{.GomegaImport}} |
| 24 | "github.com/sclevine/agouti" |
| 25 | . "github.com/sclevine/agouti/matchers" |
| 26 | |
| 27 | {{if .ImportPackage}}"{{.PackageImportPath}}"{{end}} |
| 28 | ) |
| 29 | |
| 30 | var _ = {{.GinkgoPackage}}Describe("{{.Subject}}", func() { |
| 31 | var page *agouti.Page |
| 32 | |
| 33 | {{.GinkgoPackage}}BeforeEach(func() { |
| 34 | var err error |
| 35 | page, err = agoutiDriver.NewPage() |
| 36 | {{.GomegaPackage}}Expect(err).NotTo({{.GomegaPackage}}HaveOccurred()) |
| 37 | }) |
| 38 | |
| 39 | {{.GinkgoPackage}}AfterEach(func() { |
| 40 | {{.GomegaPackage}}Expect(page.Destroy()).To({{.GomegaPackage}}Succeed()) |
| 41 | }) |
| 42 | }) |
| 43 | ` |