From 28df7c855784e784fb0e614c1cca0e565a7ef75f Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Mon, 22 Oct 2018 14:45:21 +0200 Subject: 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 --- adapter/mock/mock_adapter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'adapter/mock') 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. -- cgit 1.2.3-korg