20 lines
383 B
Go
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)
|
|
}
|