Files
traefik-lazyload/pkg/containers/util_test.go
Christopher LaPointe 6c8e52d24e Make unit tests work
2023-06-03 16:19:56 -04:00

13 lines
262 B
Go

package containers
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestSliceContainers(t *testing.T) {
assert.True(t, strSliceContains([]string{"hello", "thar"}, "thar"))
assert.False(t, strSliceContains([]string{"hello", "thar"}, "th"))
}