testruntime

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IsTesting       = testing.Testing()
	IsGithubActions = os.Getenv("GITHUB_ACTIONS") == "true"
	IsDrone         = os.Getenv("DRONE") == "true"
	StdoutWriter    = lo.Ternary[io.Writer](IsTesting, ginkgo.GinkgoWriter, os.Stdout)
	StderrWriter    = lo.Ternary[io.Writer](IsTesting, ginkgo.GinkgoWriter, os.Stderr)
)

Functions

func EnableIfCI added in v0.9.2

func EnableIfCI[T any](decorator T) any

func IfIntegration added in v0.9.2

func IfIntegration(f func())

func IfLabelFilterMatches added in v0.9.2

func IfLabelFilterMatches(labels ginkgo.Labels, f func())

Types

type IfExpr added in v0.9.2

type IfExpr[T any] struct {
	// contains filtered or unexported fields
}

func IfCI

func IfCI[T any](t T) IfExpr[T]

func IfTesting

func IfTesting[T any](t T) IfExpr[T]

func (IfExpr[T]) Else added in v0.9.2

func (e IfExpr[T]) Else(t T) T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL