summaryrefslogtreecommitdiff
path: root/vendor/github.com/onsi/ginkgo/internal
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-10-16 04:37:36 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-10-16 04:38:06 -0400
commit711d4ba027e3242f3fbda5d11c0919ae5ca13f43 (patch)
treef3be136bb47ac15f0b047f91e56b55ec2cc49453 /vendor/github.com/onsi/ginkgo/internal
parentc3ecdd09ed6a9b17da9879d7f2765a6f5f3ace8a (diff)
downloadpodman-711d4ba027e3242f3fbda5d11c0919ae5ca13f43.tar.gz
podman-711d4ba027e3242f3fbda5d11c0919ae5ca13f43.tar.bz2
podman-711d4ba027e3242f3fbda5d11c0919ae5ca13f43.zip
Bump github.com/containers/common from 0.24.0 to 0.26.0
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.24.0 to 0.26.0. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.24.0...v0.26.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/onsi/ginkgo/internal')
-rw-r--r--vendor/github.com/onsi/ginkgo/internal/testingtproxy/testing_t_proxy.go42
1 files changed, 35 insertions, 7 deletions
diff --git a/vendor/github.com/onsi/ginkgo/internal/testingtproxy/testing_t_proxy.go b/vendor/github.com/onsi/ginkgo/internal/testingtproxy/testing_t_proxy.go
index 090445d08..d7bbb7a96 100644
--- a/vendor/github.com/onsi/ginkgo/internal/testingtproxy/testing_t_proxy.go
+++ b/vendor/github.com/onsi/ginkgo/internal/testingtproxy/testing_t_proxy.go
@@ -6,21 +6,34 @@ import (
)
type failFunc func(message string, callerSkip ...int)
+type skipFunc func(message string, callerSkip ...int)
+type failedFunc func() bool
+type nameFunc func() string
-func New(writer io.Writer, fail failFunc, offset int) *ginkgoTestingTProxy {
+func New(writer io.Writer, fail failFunc, skip skipFunc, failed failedFunc, name nameFunc, offset int) *ginkgoTestingTProxy {
return &ginkgoTestingTProxy{
fail: fail,
offset: offset,
writer: writer,
+ skip: skip,
+ failed: failed,
+ name: name,
}
}
type ginkgoTestingTProxy struct {
fail failFunc
+ skip skipFunc
+ failed failedFunc
+ name nameFunc
offset int
writer io.Writer
}
+func (t *ginkgoTestingTProxy) Cleanup(func()) {
+ // No-op
+}
+
func (t *ginkgoTestingTProxy) Error(args ...interface{}) {
t.fail(fmt.Sprintln(args...), t.offset)
}
@@ -37,6 +50,10 @@ func (t *ginkgoTestingTProxy) FailNow() {
t.fail("failed", t.offset)
}
+func (t *ginkgoTestingTProxy) Failed() bool {
+ return t.failed()
+}
+
func (t *ginkgoTestingTProxy) Fatal(args ...interface{}) {
t.fail(fmt.Sprintln(args...), t.offset)
}
@@ -45,6 +62,10 @@ func (t *ginkgoTestingTProxy) Fatalf(format string, args ...interface{}) {
t.fail(fmt.Sprintf(format, args...), t.offset)
}
+func (t *ginkgoTestingTProxy) Helper() {
+ // No-op
+}
+
func (t *ginkgoTestingTProxy) Log(args ...interface{}) {
fmt.Fprintln(t.writer, args...)
}
@@ -53,24 +74,31 @@ func (t *ginkgoTestingTProxy) Logf(format string, args ...interface{}) {
t.Log(fmt.Sprintf(format, args...))
}
-func (t *ginkgoTestingTProxy) Failed() bool {
- return false
+func (t *ginkgoTestingTProxy) Name() string {
+ return t.name()
}
func (t *ginkgoTestingTProxy) Parallel() {
+ // No-op
}
func (t *ginkgoTestingTProxy) Skip(args ...interface{}) {
- fmt.Println(args...)
+ t.skip(fmt.Sprintln(args...), t.offset)
}
-func (t *ginkgoTestingTProxy) Skipf(format string, args ...interface{}) {
- t.Skip(fmt.Sprintf(format, args...))
+func (t *ginkgoTestingTProxy) SkipNow() {
+ t.skip("skip", t.offset)
}
-func (t *ginkgoTestingTProxy) SkipNow() {
+func (t *ginkgoTestingTProxy) Skipf(format string, args ...interface{}) {
+ t.skip(fmt.Sprintf(format, args...), t.offset)
}
func (t *ginkgoTestingTProxy) Skipped() bool {
return false
}
+
+func (t *ginkgoTestingTProxy) TempDir() string {
+ // No-op
+ return ""
+}