intest

package
v1.1.0-beta.0...-0763fed Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnableAssert = false

EnableAssert checks if the code is running in integration test.

View Source
var EnableInternalCheck = false

EnableInternalCheck is a general switch to enable internal check.

View Source
var InTest = false

InTest checks if the code is running in test.

Functions

func Assert

func Assert(cond bool, msgAndArgs ...any)

Assert asserts a condition is true

func AssertFunc

func AssertFunc(fn func() bool, msgAndArgs ...any)

AssertFunc asserts a function condition

func AssertNoError

func AssertNoError(err error, msgAndArgs ...any)

AssertNoError asserts an error is nil

func AssertNotNil

func AssertNotNil(obj any, msgAndArgs ...any)

AssertNotNil asserts an object is not nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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