testutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package testutils have helper functions to ease testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(expect any, msg string) assert.ValueAssertionFunc

Equal asserts that two objects are equal.

func ErrorContains

func ErrorContains(contains string, msgAndArgs ...any) assert.ErrorAssertionFunc

ErrorContains asserts that a specified error contains a substring.

func ErrorIs

func ErrorIs(targetError error, msgAndArgs ...any) assert.ErrorAssertionFunc

ErrorIs asserts that a specified error is the same as a target error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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