pitest

package
v0.31.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pitest provides helper functions for writing unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertSpriteEqual

func AssertSpriteEqual(t *testing.T, expected, actual pi.Sprite)

AssertSpriteEqual asserts that two sprites have equal fields and reference the same source

func AssertSurfaceEqual

func AssertSurfaceEqual[T comparable](t *testing.T, expected, actual pi.Surface[T]) (equal bool)

AssertSurfaceEqual asserts that two surfaces are equal: they have the same size and identical data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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