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 /tests | |
| 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 'tests')
| -rw-r--r-- | tests/stubs/cloud/controllerstub/module.go | 2 | ||||
| -rw-r--r-- | tests/stubs/edge/handlerstub/module.go | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/stubs/cloud/controllerstub/module.go b/tests/stubs/cloud/controllerstub/module.go index 1e3c419fe..89077addd 100644 --- a/tests/stubs/cloud/controllerstub/module.go +++ b/tests/stubs/cloud/controllerstub/module.go @@ -34,6 +34,8 @@ func init() { type ControllerStub struct { } +var _ core.Module = (*ControllerStub)(nil) + func (*ControllerStub) Enable() bool { return true } diff --git a/tests/stubs/edge/handlerstub/module.go b/tests/stubs/edge/handlerstub/module.go index 728699483..f559809eb 100644 --- a/tests/stubs/edge/handlerstub/module.go +++ b/tests/stubs/edge/handlerstub/module.go @@ -33,6 +33,8 @@ type HandlerStub struct { podManager *PodManager } +var _ core.Module = (*HandlerStub)(nil) + func (*HandlerStub) Enable() bool { return true } |
