github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/spiceerrors/bug_test.go (about) 1 package spiceerrors 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 "github.com/stretchr/testify/require" 8 ) 9 10 func TestMustBug(t *testing.T) { 11 require.True(t, IsInTests()) 12 assert.Panics(t, func() { 13 err := MustBugf("some error") 14 require.NotNil(t, err) 15 }, "The code did not panic") 16 }