1
0
mirror of https://github.com/containrrr/watchtower.git synced 2025-01-20 18:28:27 +02:00

18 lines
327 B
Go
Raw Normal View History

2015-07-21 19:37:18 +00:00
package mockclient
import (
"reflect"
"testing"
2017-01-24 19:07:25 +01:00
"github.com/v2tec/watchtower/container"
2015-07-21 19:37:18 +00:00
)
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")
}
}