mocks

package
v0.0.0-...-e1839d5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGinContext

func GetGinContext(param *Parameter) (*gin.Context, *httptest.ResponseRecorder)

Types

type MockAwsHelper

type MockAwsHelper struct {
	mock.Mock
}

mock of AwsInterface

func ProvideMockAwsHelper

func ProvideMockAwsHelper() *MockAwsHelper

func (*MockAwsHelper) CreateSess

func (service *MockAwsHelper) CreateSess() *session.Session

func (*MockAwsHelper) LoadParameters

func (service *MockAwsHelper) LoadParameters(sess *session.Session) map[string]string

type MockFileService

type MockFileService struct {
	mock.Mock
}

func (*MockFileService) ReadLines

func (service *MockFileService) ReadLines(path string) []string

type Parameter

type Parameter struct {
	Query   string
	Headers map[string][]string
	Body    interface{}
	Params  map[string]string
}

Jump to

Keyboard shortcuts

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