functions

TestWidget
Edited: Sunday 25 January 2026

TestWidget

Category: Utilities
File: testing_helpers.go
Package: ui

Signature

1func TestWidget(t *testing.T, name string, widget W)

Description

TestWidget runs a visual regression test for a widget
If UPDATE_GOLDEN=1 environment variable is set, updates the golden image

Examples

No examples available yet. See the test files for usage.

To add an example for this function, create an ExampleTestWidget function in the test files.


This documentation is auto-generated. To update, run make docs

Backlinks