Documentation
¶
Overview ¶
Package test provides testing utilities for the WGSL minifier.
This follows esbuild's testing patterns with helper functions for assertions, diffs, and common test patterns.
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 and reports a test error if not.
func AssertEqualWithDiff ¶
AssertEqualWithDiff checks if two strings are equal and shows a diff if not.
func Diff ¶
Diff produces a line-by-line diff between two strings. Shows context around differences with +/- prefixes.
func MarkFailure ¶
MarkFailure is a wrapper that marks a test as failed with a message.
Types ¶
Click to show internal directories.
Click to hide internal directories.