mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 09:06:58 +02:00
Simplify interface implementation test for targetFilterSource
This commit is contained in:
parent
42dde17b1b
commit
3dbcb9cba1
@ -19,7 +19,6 @@ package source
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
|
|
||||||
@ -91,7 +90,7 @@ func TestTargetFilterSource(t *testing.T) {
|
|||||||
|
|
||||||
// TestTargetFilterSourceImplementsSource tests that targetFilterSource is a valid Source.
|
// TestTargetFilterSourceImplementsSource tests that targetFilterSource is a valid Source.
|
||||||
func TestTargetFilterSourceImplementsSource(t *testing.T) {
|
func TestTargetFilterSourceImplementsSource(t *testing.T) {
|
||||||
assert.Implements(t, (*Source)(nil), new(targetFilterSource))
|
var _ Source = &targetFilterSource{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTargetFilterSourceEndpoints(t *testing.T) {
|
func TestTargetFilterSourceEndpoints(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user