testing

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Integration

func Integration() bool

Integration returns true if running in integration test mode. Integration tests may require external services like databases, message queues, etc.

func SkipIfIntegration

func SkipIfIntegration(t *testing.T, message ...string)

SkipIfIntegration skips the test if running in integration test mode.

func SkipIfUnit

func SkipIfUnit(t *testing.T, message ...string)

SkipIfUnit skips the test if running in unit test mode.

func Unit

func Unit() bool

Unit returns true if running in unit test mode. Unit tests should be fast and not require external services. This is determined by checking if the -short flag is set or if OMNI_UNIT_TESTS_ONLY environment variable is set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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