Files
LearnGO/go/pkg/mod/github.com/jackc/puddle@v1.3.0/internal_test.go
T
2024-09-19 21:38:24 -04:00

13 lines
347 B
Go

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