package ginkgowrapper
import "k8s.io/kubernetes/test/e2e/framework/ginkgowrapper"
Package ginkgowrapper wraps Ginkgo Fail and Skip functions to panic with structured data instead of a constant string.
Index ¶
Functions ¶
func Fail ¶
Fail wraps ginkgo.Fail so that it panics with more useful information about the failure. This function will panic with a FailurePanic.
Types ¶
type FailurePanic ¶
type FailurePanic struct { Message string // The failure message passed to Fail Filename string // The filename that is the source of the failure Line int // The line number of the filename that is the source of the failure FullStackTrace string // A full stack trace starting at the source of the failure }
FailurePanic is the value that will be panicked from Fail.
func (FailurePanic) String ¶
func (FailurePanic) String() string
String makes FailurePanic look like the old Ginkgo panic when printed.
Source Files ¶
wrapper.go
- Version
- v1.20.4
- Published
- Feb 18, 2021
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 13 minutes ago –
Tools for package owners.