Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicLoader ¶
type BasicLoader struct{}
func (*BasicLoader) LoadGlobalMockCase ¶
func (l *BasicLoader) LoadGlobalMockCase(filePath string) ([]*interact.ImposterMockCase, error)
type CaseLoader ¶
type Config ¶
type Config struct { TaskFileSuffix string `yaml:"taskFileSuffix"` // the default test case suffix name. example: ".case.json" CaseFiles []string `yaml:"caseFiles"` WatchCases bool `yaml:"watcherCases"` // whether to enable file listening MockFiles []string `yaml:"mockFiles"` // mock file. WatchMock bool `yaml:"watcherMock"` // whether to enable mock file listening }
func (*Config) RegisterFlagsWithPrefix ¶
RegisterFlagsWithPrefix is used to register flags
type Provider ¶
type Provider interface { // GetAllCaseFromItfName Get all cases form the interface serviceName. GetAllCaseFromItfName(serviceName string) []*mbcase.CaseTask GetAllCaseFromCaseName(serviceName, caseName string) *mbcase.CaseTask GetItfInfoFromItfName(serviceName string) *mbcase.TaskInfo // GetAllItfInfo Get all interface info. GetAllItfInfo() []*mbcase.TaskInfo // GetAllItf Get all interface. GetAllItf() []*mbcase.ItfTask // GetAllItfWithFileInfo the interface that carries the file information GetAllItfWithFileInfo() []*mbcase.ItfTaskWithFileInfo // GetItfSetupCommand Get the Setup Commands of a type under the interface. GetItfSetupCommand(serviceName string) []*mbcase.Command // GetItfTearDownCommand Get the TearDown Commands of a type under the interface. GetItfTearDownCommand(serviceName string) []*mbcase.Command GetCaseSetupCommand(serviceName, caseName string) []*mbcase.Command GetCaseTearDownCommand(serviceName, caseName string) []*mbcase.Command GetMockCasesFromGlobals() []*interact.ImposterMockCase GetMockCasesFromItf(serviceName string) []*interact.ImposterMockCase GetMockCasesFromCase(serviceName, caseName string) []*interact.ImposterMockCase }
Click to show internal directories.
Click to hide internal directories.