mock

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllMocks

func GetAllMocks(ctx context.Context, req *proto.GetMockReq) ([]*proto.Mock, error)

func GetHttpHeader

func GetHttpHeader(m map[string]*proto.StrArr) map[string][]string

func GetProtoMap

func GetProtoMap(m map[string][]string) map[string]*proto.StrArr

func NewContext

func NewContext(conf Config) context.Context

func PostHttpMock added in v0.5.3

func PostHttpMock(ctx context.Context, path string, mock *proto.Mock) bool

func StartRecordingMocks added in v0.5.3

func StartRecordingMocks(ctx context.Context, path, mode, name string, overWrite bool) bool

Types

type Config

type Config struct {
	Mode      keploy.Mode     //Default: Test
	Name      string          //Default: Auto generated during record mode and required in test mode
	CTX       context.Context //Default: Empty
	Path      string          //Default: ./mocks
	OverWrite bool            //Default: false
}

Jump to

Keyboard shortcuts

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