diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2018-10-22 14:45:21 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2018-10-22 14:56:09 +0200 |
commit | 28df7c855784e784fb0e614c1cca0e565a7ef75f (patch) | |
tree | 7d2eb1b3522d57680df8a6f576356f9dd4dc706c /adapter/mock | |
parent | 62d19032621c7db801b313a1e19e787cfb1fbc3e (diff) |
Introduce StatsAPI and it's initial implementation
- this implementation is basically Go wrapper around VPP's vppapiclient C library
Change-Id: I6f53dc3e228868834bf3a8a00c686ad05e22f3dd
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'adapter/mock')
-rw-r--r-- | adapter/mock/mock_adapter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/adapter/mock/mock_adapter.go b/adapter/mock/mock_adapter.go index cdf2081..9783651 100644 --- a/adapter/mock/mock_adapter.go +++ b/adapter/mock/mock_adapter.go @@ -37,7 +37,7 @@ const ( useReplyHandlers // use reply handler ) -// VppAdapter represents a mock VPP adapter that can be used for unit/integration testing instead of the vppapiclient adapter. +// VppAPI represents a mock VPP adapter that can be used for unit/integration testing instead of the vppapiclient adapter. type VppAdapter struct { callback adapter.MsgCallback @@ -107,8 +107,8 @@ func (a *VppAdapter) Connect() error { } // Disconnect emulates disconnecting the process from VPP. -func (a *VppAdapter) Disconnect() { - // no op +func (a *VppAdapter) Disconnect() error { + return nil } // GetMsgNameByID returns message name for specified message ID. |