Discover Packages
github.com/stratumn/go-node
core
manager
testservice
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 13, 2019
License: AGPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
CheckStrings(t, serv)
Expose(ctx, t, serv, timeout)
TestRun(ctx, t, serv, timeout)
TestRunning(ctx, t, serv, timeout, fn)
Types
Source Files
Documentation
Documentation
¶
Package testservice defines types to help test services.
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, ...)
CheckStrings checks that the strings returned by a service follow the
convention.
Expose call the run function of the service and returns the exposed object
after the service is running.
TestRun makes sure the Run function of a service calls the running and
stopping functions properly, and that it doesn't return an error.
TestRunning runs a function while the service is running.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.