summaryrefslogtreecommitdiff
path: root/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2019-06-24 11:29:13 +0200
committerValentin Rothberg <rothberg@redhat.com>2019-06-24 13:20:59 +0200
commitd697456dc90adbaf68224ed7c115b38d5855e582 (patch)
tree5fd88c48b34e7bead0028fa97e39f43f03880642 /vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests
parenta3211b73c62a9fcc13f09305bf629ef507b26d34 (diff)
downloadpodman-d697456dc90adbaf68224ed7c115b38d5855e582.tar.gz
podman-d697456dc90adbaf68224ed7c115b38d5855e582.tar.bz2
podman-d697456dc90adbaf68224ed7c115b38d5855e582.zip
migrate to go-modules
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests')
-rw-r--r--vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags.go9
-rw-r--r--vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_suite_test.go13
-rw-r--r--vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_test.go97
3 files changed, 0 insertions, 119 deletions
diff --git a/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags.go b/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags.go
deleted file mode 100644
index a440abdaa..000000000
--- a/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package flags
-
-func Tested() string {
- return "tested"
-}
-
-func Untested() string {
- return "untested"
-}
diff --git a/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_suite_test.go b/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_suite_test.go
deleted file mode 100644
index 0b3071f62..000000000
--- a/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_suite_test.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package flags_test
-
-import (
- . "github.com/onsi/ginkgo"
- . "github.com/onsi/gomega"
-
- "testing"
-)
-
-func TestFlags(t *testing.T) {
- RegisterFailHandler(Fail)
- RunSpecs(t, "Flags Suite")
-}
diff --git a/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_test.go b/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_test.go
deleted file mode 100644
index 27dadf19c..000000000
--- a/vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_test.go
+++ /dev/null
@@ -1,97 +0,0 @@
-package flags_test
-
-import (
- "flag"
- "fmt"
- remapped "math"
- _ "math/cmplx"
- "time"
-
- . "github.com/onsi/ginkgo"
- . "github.com/onsi/ginkgo/integration/_fixtures/flags_tests"
- . "github.com/onsi/gomega"
-)
-
-var customFlag string
-
-func init() {
- flag.StringVar(&customFlag, "customFlag", "default", "custom flag!")
-}
-
-var _ = Describe("Testing various flags", func() {
- FDescribe("the focused set", func() {
- Measure("a measurement", func(b Benchmarker) {
- b.RecordValue("a value", 3)
- }, 3)
-
- It("should honor -cover", func() {
- Ω(Tested()).Should(Equal("tested"))
- })
-
- It("should allow gcflags", func() {
- fmt.Printf("NaN returns %T\n", remapped.NaN())
- })
-
- PIt("should honor -failOnPending and -noisyPendings")
-
- Describe("smores", func() {
- It("should honor -skip: marshmallow", func() {
- println("marshmallow")
- })
-
- It("should honor -focus: chocolate", func() {
- println("chocolate")
- })
- })
-
- It("should detect races", func(done Done) {
- var a string
- go func() {
- a = "now you don't"
- close(done)
- }()
- a = "now you see me"
- println(a)
- })
-
- It("should randomize A", func() {
- println("RANDOM_A")
- })
-
- It("should randomize B", func() {
- println("RANDOM_B")
- })
-
- It("should randomize C", func() {
- println("RANDOM_C")
- })
-
- It("should honor -slowSpecThreshold", func() {
- time.Sleep(100 * time.Millisecond)
- })
-
- It("should pass in additional arguments after '--' directly to the test process", func() {
- fmt.Printf("CUSTOM_FLAG: %s", customFlag)
- })
- })
-
- Describe("more smores", func() {
- It("should not run these unless -focus is set", func() {
- println("smores")
- })
- })
-
- Describe("a failing test", func() {
- It("should fail", func() {
- Ω(true).Should(Equal(false))
- })
- })
-
- Describe("a flaky test", func() {
- runs := 0
- It("should only pass the second time it's run", func() {
- runs++
- Ω(runs).Should(BeNumerically("==", 2))
- })
- })
-})