testutils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(t *testing.T, err error, expected bool, expectedErr error) (bool, error)

CheckError checks if the error is expected or not. If the error is unexpected, it returns an error. If the function returns true, the test should return immediately.

func NewNoopLogger

func NewNoopLogger() *slog.Logger

NewNoopLogger creates a new logger that discards all logs.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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