echogatewayservicegeneratedmock

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL