mirror of
https://github.com/containrrr/watchtower.git
synced 2024-12-15 09:14:13 +02:00
18 lines
327 B
Go
18 lines
327 B
Go
package mockclient
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
|
|
"github.com/v2tec/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")
|
|
}
|
|
}
|