template/pkg/assert/assert_disabled_test.go
2026-07-29 18:57:39 +00:00

20 lines
383 B
Go

//go:build assert_disable
package assert_test
import (
"testing"
"gitea.djmil.dev/go/template/pkg/assert"
)
// In a disabled build, That and Thatf must not panic regardless of condition.
func TestThat_disabled(t *testing.T) {
assert.That(false, "must be silently ignored")
}
func TestThatf_disabled(t *testing.T) {
assert.Thatf(false, "must be silently ignored: %d", 42)
}