vars

package
v2.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator interface {
	Eval(req *mock.Request, m *mock.Definition)
}

type Fake

type Fake struct {
	Fake fake.Generator
}

Fake parses the data looking for fake data tags or request data tags

func (Fake) Fill

func (fv Fake) Fill(holders []string) map[string][]string

type Filler

type Filler interface {
	Fill(holders []string) map[string][]string
}

type FillerFactory

type FillerFactory interface {
	CreateRequestFiller(req *mock.Request, mock *mock.Definition) Filler
	CreateFakeFiller() Filler
	CreateStreamFiller() Filler
}

type MockFillerFactory

type MockFillerFactory struct {
	FakeDataProvider fake.Generator
}

func NewFillerFactory

func NewFillerFactory(fdp fake.Generator) *MockFillerFactory

func (MockFillerFactory) CreateFakeFiller

func (mff MockFillerFactory) CreateFakeFiller() Filler

func (MockFillerFactory) CreateRequestFiller

func (mff MockFillerFactory) CreateRequestFiller(req *mock.Request, mock *mock.Definition) Filler

func (MockFillerFactory) CreateStreamFiller

func (mff MockFillerFactory) CreateStreamFiller() Filler

type Request

type Request struct {
	Mock    *mock.Definition
	Request *mock.Request
}

func (Request) Fill

func (rp Request) Fill(holders []string) map[string][]string

type ResponseMessageEvaluator

type ResponseMessageEvaluator struct {
	FillerFactory FillerFactory
}

func NewResponseMessageEvaluator

func NewResponseMessageEvaluator(fp FillerFactory) *ResponseMessageEvaluator

func (ResponseMessageEvaluator) Eval

type Stream

type Stream struct {
}

func (Stream) Fill

func (st Stream) Fill(holders []string) map[string][]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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