package detectors import ( "testing" "github.com/stretchr/testify/assert" ) func TestEmbeddedEndpointSetter(t *testing.T) { type Scanner struct{ EndpointSetter } var s Scanner assert.Equal(t, []string{"baz"}, s.Endpoints("baz")) assert.NoError(t, s.SetConfiguredEndpoints("foo", "bar")) assert.Error(t, s.SetConfiguredEndpoints()) assert.Equal(t, []string{"foo", "bar"}, s.Endpoints("baz")) }