Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNodes ¶
type MockNodes struct { }
MockNodes contains mock dependencies
func InitializeDependenciesMock ¶
func InitializeDependenciesMock( g *zanzibar.Gateway, ctrl *gomock.Controller, ) (*module.DependenciesTree, *module.Dependencies, *MockNodes)
InitializeDependenciesMock fully initializes all dependencies in the dep tree for the echo-gateway service with leaf nodes being mocks
type MockService ¶
type MockService interface { MakeHTTPRequest( method string, url string, headers map[string]string, body io.Reader, ) (*http.Response, error) MakeTChannelRequest( ctx context.Context, thriftService string, method string, headers map[string]string, req, resp zanzibar.RWTStruct, ) (bool, map[string]string, error) Mocks() *MockNodes Server() *zanzibar.Gateway Start() Stop() }
MockService interface
func MustCreateTestService ¶
func MustCreateTestService(t *testing.T) MockService
MustCreateTestService creates a new MockService, panics if it fails doing so.
Click to show internal directories.
Click to hide internal directories.