Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERR_DEP_REQ_UNEQUAL_INSERT string = "the stored external dependency output is not for the current dependency request call. Insert the new mock" ERR_DEP_REQ_UNEQUAL_REMOVE string = "a set of dependency calls are removed. Remove the adjacent set of mocks from the mock file" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
Mock is a service to read-write mocks during record and replay in unit-tests only.
func (*Mock) FileExists ¶ added in v0.5.2
type Service ¶
type Service interface { Put(ctx context.Context, path string, doc *proto.Mock, meta interface{}, remove []string, replace map[string]string) error GetAll(ctx context.Context, path string, name string) ([]models.Mock, error) FileExists(ctx context.Context, path string, overWrite bool) (bool, error) }
Click to show internal directories.
Click to hide internal directories.