assert

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package assert provides simple assertion utilities for internal unit tests. It is designed for use within the internal codebase and is not intended to be imported or used by external packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual[T comparable](t *testing.T, actual, expected T)

AssertEqual checks if two values are equal

func AssertIsClose

func AssertIsClose(t *testing.T, actual, expected, tolerance float64)

AssertIsClose checks if a value is close to another value within a tolerance

func AssertNil

func AssertNil(t *testing.T, value any)

AssertNil checks if a value is nil

func AssertNotEqual

func AssertNotEqual[T comparable](t *testing.T, actual, unexpected T)

AssertNotEqual checks if two values are not equal

func AssertPanic

func AssertPanic(t *testing.T, f func())

AssertTrue checks if a condition is true

func AssertTrue

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

AssertTrue checks if a condition is true

Types

This section is empty.

Jump to

Keyboard shortcuts

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