Documentation ¶
Index ¶
- type Error
- type Loader
- type Mocks
- type RequestConstraintError
- type ServiceMock
- func (m *ServiceMock) EndRunningContext() []error
- func (m *ServiceMock) ResetDefinition()
- func (m *ServiceMock) ResetRunningContext()
- func (m *ServiceMock) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (m *ServiceMock) ServerAddr() string
- func (m *ServiceMock) SetDefinition(newDefinition *definition)
- func (m *ServiceMock) ShutdownServer()
- func (m *ServiceMock) StartServer() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mocks ¶
type Mocks struct {
// contains filtered or unexported fields
}
func New ¶
func New(mocks ...*ServiceMock) *Mocks
func (*Mocks) EndRunningContext ¶
func (*Mocks) ResetDefinitions ¶
func (m *Mocks) ResetDefinitions()
func (*Mocks) ResetRunningContext ¶
func (m *Mocks) ResetRunningContext()
func (*Mocks) Service ¶
func (m *Mocks) Service(serviceName string) *ServiceMock
type RequestConstraintError ¶
type RequestConstraintError struct { Constraint verifier Request *http.Request // contains filtered or unexported fields }
func (*RequestConstraintError) Error ¶
func (e *RequestConstraintError) Error() string
type ServiceMock ¶
func NewServiceMock ¶
func NewServiceMock(serviceName string, mock *definition) *ServiceMock
func (*ServiceMock) EndRunningContext ¶
func (m *ServiceMock) EndRunningContext() []error
func (*ServiceMock) ResetDefinition ¶
func (m *ServiceMock) ResetDefinition()
func (*ServiceMock) ResetRunningContext ¶
func (m *ServiceMock) ResetRunningContext()
func (*ServiceMock) ServeHTTP ¶
func (m *ServiceMock) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*ServiceMock) ServerAddr ¶
func (m *ServiceMock) ServerAddr() string
func (*ServiceMock) SetDefinition ¶
func (m *ServiceMock) SetDefinition(newDefinition *definition)
func (*ServiceMock) ShutdownServer ¶
func (m *ServiceMock) ShutdownServer()
func (*ServiceMock) StartServer ¶
func (m *ServiceMock) StartServer() error
Click to show internal directories.
Click to hide internal directories.