kubernetes: k8s.io/kubernetes/test/e2e/framework/ginkgowrapper Index | Files

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

Package Files

wrapper.go

func Fail Uses

func Fail(message string, callerSkip ...int)

Fail wraps ginkgo.Fail so that it panics with more useful information about the failure. This function will panic with a FailurePanic.

func Skip Uses

func Skip(message string, callerSkip ...int)

Skip wraps ginkgo.Skip so that it panics with more useful information about why the test is being skipped. This function will panic with a SkipPanic.

type FailurePanic Uses

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 Uses

func (FailurePanic) String() string

String makes FailurePanic look like the old Ginkgo panic when printed.

type SkipPanic Uses

type SkipPanic 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
}

SkipPanic is the value that will be panicked from Skip.

func (SkipPanic) String Uses

func (SkipPanic) String() string

String makes SkipPanic look like the old Ginkgo panic when printed.

Package ginkgowrapper imports 7 packages (graph) and is imported by 126 packages. Updated 2017-10-28. Refresh now. Tools for package owners.