Documentation ¶
Overview ¶
Package wait provides functionalities for mocking testcontainers-go/wait.
Index ¶
- Variables
- type Strategy
- type StrategyMocker
- type StrategyTarget
- func (_m *StrategyTarget) Exec(_a0 context.Context, _a1 []string, _a2 ...exec.ProcessOption) (int, io.Reader, error)
- func (_m *StrategyTarget) Host(_a0 context.Context) (string, error)
- func (_m *StrategyTarget) Inspect(_a0 context.Context) (*types.ContainerJSON, error)
- func (_m *StrategyTarget) Logs(_a0 context.Context) (io.ReadCloser, error)
- func (_m *StrategyTarget) MappedPort(_a0 context.Context, _a1 nat.Port) (nat.Port, error)
- func (_m *StrategyTarget) Ports(ctx context.Context) (nat.PortMap, error)
- func (_m *StrategyTarget) State(_a0 context.Context) (*types.ContainerState, error)
- type StrategyTargetMocker
Constants ¶
This section is empty.
Variables ¶
var NopStrategy = MockStrategy()
NopStrategy is no mock Strategy.
var NopStrategyTarget = MockStrategyTarget()
NopStrategyTarget is no mock StrategyTarget.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
Strategy is an autogenerated mock type for the Strategy type
func NewStrategy ¶ added in v0.7.0
NewStrategy creates a new instance of Strategy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Strategy) WaitUntilReady ¶
WaitUntilReady provides a mock function with given fields: _a0, _a1
type StrategyMocker ¶
StrategyMocker is Strategy mocker.
func MockStrategy ¶
func MockStrategy(mocks ...func(s *Strategy)) StrategyMocker
MockStrategy creates Strategy mock with cleanup to ensure all the expectations are met.
type StrategyTarget ¶
StrategyTarget is an autogenerated mock type for the StrategyTarget type
func NewStrategyTarget ¶ added in v0.7.0
func NewStrategyTarget(t interface { mock.TestingT Cleanup(func()) }) *StrategyTarget
NewStrategyTarget creates a new instance of StrategyTarget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StrategyTarget) Exec ¶
func (_m *StrategyTarget) Exec(_a0 context.Context, _a1 []string, _a2 ...exec.ProcessOption) (int, io.Reader, error)
Exec provides a mock function with given fields: _a0, _a1, _a2
func (*StrategyTarget) Host ¶
func (_m *StrategyTarget) Host(_a0 context.Context) (string, error)
Host provides a mock function with given fields: _a0
func (*StrategyTarget) Inspect ¶ added in v0.14.0
func (_m *StrategyTarget) Inspect(_a0 context.Context) (*types.ContainerJSON, error)
Inspect provides a mock function with given fields: _a0
func (*StrategyTarget) Logs ¶
func (_m *StrategyTarget) Logs(_a0 context.Context) (io.ReadCloser, error)
Logs provides a mock function with given fields: _a0
func (*StrategyTarget) MappedPort ¶
MappedPort provides a mock function with given fields: _a0, _a1
func (*StrategyTarget) Ports ¶ added in v0.6.0
Ports provides a mock function with given fields: ctx
func (*StrategyTarget) State ¶
func (_m *StrategyTarget) State(_a0 context.Context) (*types.ContainerState, error)
State provides a mock function with given fields: _a0
type StrategyTargetMocker ¶
type StrategyTargetMocker func(tb testing.TB) *StrategyTarget
StrategyTargetMocker is StrategyTarget mocker.
func MockStrategyTarget ¶
func MockStrategyTarget(mocks ...func(t *StrategyTarget)) StrategyTargetMocker
MockStrategyTarget creates StrategyTarget mock with cleanup to ensure all the expectations are met.