diff options
| author | KubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com> | 2021-11-16 20:24:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-16 20:24:16 +0800 |
| commit | db7f482c039d82a4142524ba10abc380eb9a3d10 (patch) | |
| tree | 75b2b26389ab91736b9c4a8654ebd7e5c6b3dcfc /edge/test | |
| parent | Merge pull request #3291 from chenchunxiu/b4-cleanup-vars (diff) | |
| parent | Add type check for each implementation of Module interface (diff) | |
| download | kubeedge-db7f482c039d82a4142524ba10abc380eb9a3d10.tar.gz | |
Merge pull request #3297 from hainesc/type_check
Add type check for each implementation of Module interface
Diffstat (limited to 'edge/test')
| -rw-r--r-- | edge/test/cloudhub/stub.go | 2 | ||||
| -rw-r--r-- | edge/test/test.go | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/edge/test/cloudhub/stub.go b/edge/test/cloudhub/stub.go index dec21dd85..1fb44cda0 100644 --- a/edge/test/cloudhub/stub.go +++ b/edge/test/cloudhub/stub.go @@ -31,6 +31,8 @@ type stubCloudHub struct { enable bool } +var _ core.Module = (*stubCloudHub)(nil) + func (*stubCloudHub) Name() string { return "stubCloudHub" } diff --git a/edge/test/test.go b/edge/test/test.go index 234901aa4..5941a225d 100644 --- a/edge/test/test.go +++ b/edge/test/test.go @@ -33,6 +33,8 @@ type testManager struct { enable bool } +var _ core.Module = (*testManager)(nil) + func (tm *testManager) Name() string { return name } |
