chetest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireEqual

func RequireEqual[T any](t TestingInterface, input T, expected T, options ...TestOption)

RequireEqual Fails the test if "input" and "expected" are not deeply equal. Returns true otherwise. You can also pass an extra message to show using the "WithExtraMessage" option.

Types

type TestOption

type TestOption func(options *testOptions)

func WithExtraMessage

func WithExtraMessage(message string, messageArgs ...any) TestOption

type TestingInterface

type TestingInterface interface {
	Errorf(format string, args ...any)
}

Jump to

Keyboard shortcuts

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