2
0
Files
puddle/internal_test.go
T
Jack Christensen 40069f25d6 Remove compat layer and use generics directly
Backwards compatibility is not required since moving to v2.
2022-07-30 11:26:33 -05:00

13 lines
372 B
Go

package puddle
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRemoveResourcePanicsWithBugReportIfResourceDoesNotExist(t *testing.T) {
s := []*Resource[any]{new(Resource[any]), new(Resource[any]), new(Resource[any])}
assert.PanicsWithValue(t, "BUG: removeResource could not find res in slice", func() { removeResource(s, new(Resource[any])) })
}