Documentation ¶
Overview ¶
Package testservice defines types to help test services.
Index ¶
- func CheckStrings(t *testing.T, serv manager.Service)
- func Expose(ctx context.Context, t *testing.T, serv manager.Exposer, timeout time.Duration) interface{}
- func TestRun(ctx context.Context, t *testing.T, serv manager.Runner, timeout time.Duration)
- func TestRunning(ctx context.Context, t *testing.T, serv manager.Runner, timeout time.Duration, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStrings ¶
CheckStrings checks that the strings returned by a service follow the convention.
func Expose ¶
func Expose(ctx context.Context, t *testing.T, serv manager.Exposer, timeout time.Duration) interface{}
Expose call the run function of the service and returns the exposed object after the service is running.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.