testflags

package
v1.10.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadUnitTestWithSideEffects

func BadUnitTestWithSideEffects(t *testing.T)

BadUnitTestWithSideEffects will run the test its called from iff the `-unit` or `-short` flag is passed when calling `go test`. Otherwise the test will be skipped. BadUnitTestWithSideEffects will run the test its called serially. Tests that use this flag are bad an should feel bad.

func BenchUnitTest

func BenchUnitTest(t *testing.B)

BenchUnitTest will run the test its called from iff the `-unit` or `-short` flag is passed when calling `go test`. Otherwise the test will be skipped. UnitTest will run the test its called from in parallel.

func BinaryPath

func BinaryPath() (string, bool)

BinaryPath will return the path to the user provided binary. The call is expected to check if the return path points to an actual file. If the user did not provide a value an empty string will be returned along with a false for the second return value.

func DeploymentTest

func DeploymentTest(t *testing.T) string

DeploymentTest will run the test its called from iff the `-deployment` flag is passed when calling `go test`. Otherwise the test will be skipped. DeploymentTest will run the test its called from in parallel. The network under test will be returned.

func FunctionalTest

func FunctionalTest(t *testing.T)

FunctionalTest will run the test its called from iff the `-functional` flag is passed when calling `go test`. Otherwise the test will be skipped. FunctionalTest will run the test its called from in parallel.

func IntegrationTest

func IntegrationTest(t *testing.T)

IntegrationTest will run the test its called from iff the `-integration` flag is passed when calling `go test`. Otherwise the test will be skipped. IntegrationTest will run the test its called from in parallel.

func UnitTest

func UnitTest(t *testing.T)

UnitTest will run the test its called from iff the `-unit` or `-short` flag is passed when calling `go test`. Otherwise the test will be skipped. UnitTest will run the test its called from in parallel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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