testutil

package
v0.1.0-M4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0, EPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertContainsString

func AssertContainsString(t *testing.T, str string, substring string)

AssertContainsString asserts that a string contains a substring

func AssertEqual

func AssertEqual(t *testing.T, expected interface{}, actual interface{})

AssertEqual asserts that the expected and actual values are deeply equal

func AssertError

func AssertError(t *testing.T, expected error, actual error)

AssertError asserts that the expected and actual errors are the same

func AssertFalse

func AssertFalse(t *testing.T, actual bool)

AssertFalse sserts that the actual value is false

func AssertNil

func AssertNil(t *testing.T, value interface{})

AssertNil asserts that a value is nil

func AssertNotEqual

func AssertNotEqual(t *testing.T, expected interface{}, actual interface{})

AssertNotEqual asserts that the expected and actual values are not deeply equal

func AssertNotNil

func AssertNotNil(t *testing.T, value interface{})

AssertNotNil asserts that a value is not nil

func AssertTrue

func AssertTrue(t *testing.T, actual bool)

AssertTrue asserts that the actual value is true

func AssertWithTimeout

func AssertWithTimeout(t *testing.T, waitGroup *sync.WaitGroup, testTimeout time.Duration)

AssertWithTimeout asserts that an operation is completed within a certain period of time

func IsNil

func IsNil(v interface{}) bool

IsNil checks if a value is nil

Types

This section is empty.

Directories

Path Synopsis
mocks
api/services/containers
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
api/services/sysinfo
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
cli
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
client
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
containerd
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
context
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
ctr
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
ctrd
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
events
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
io
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
logger
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mgr
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
network
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
registry
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
streams
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
sysinfo
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
things
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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