mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-10-29 09:22:47 +00:00
Besides simply staying up-to-date, ginkgo v2.13.0 adds a `PreviewSpecs` which will be used for introspection of the E2E test suites.
29 lines
411 B
Go
29 lines
411 B
Go
package global
|
|
|
|
import (
|
|
"github.com/onsi/ginkgo/v2/internal"
|
|
)
|
|
|
|
var Suite *internal.Suite
|
|
var Failer *internal.Failer
|
|
var backupSuite *internal.Suite
|
|
|
|
func init() {
|
|
InitializeGlobals()
|
|
}
|
|
|
|
func InitializeGlobals() {
|
|
Failer = internal.NewFailer()
|
|
Suite = internal.NewSuite()
|
|
}
|
|
|
|
func PushClone() error {
|
|
var err error
|
|
backupSuite, err = Suite.Clone()
|
|
return err
|
|
}
|
|
|
|
func PopClone() {
|
|
Suite = backupSuite
|
|
}
|