You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
337 B
Go
18 lines
337 B
Go
9 years ago
|
package mockclient
|
||
|
|
||
|
import (
|
||
|
"reflect"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/CenturyLinkLabs/watchtower/container"
|
||
|
)
|
||
|
|
||
|
func TestMockInterface(t *testing.T) {
|
||
|
iface := reflect.TypeOf((*container.Client)(nil)).Elem()
|
||
|
mock := &MockClient{}
|
||
|
|
||
|
if !reflect.TypeOf(mock).Implements(iface) {
|
||
|
t.Fatalf("Mock does not implement the Client interface")
|
||
|
}
|
||
|
}
|