Documentation
¶
Overview ¶
Package robottestutils provides helper functions in testing
Index ¶
- func Connect(port string) (*grpc.ClientConn, error)
- func CreateBaseOptionsAndListener(tb testing.TB) (weboptions.Options, net.Listener, string)
- func MakeTempConfig(t *testing.T, cfg *config.Config, logger logging.Logger) (string, error)
- func NewRobotClient(tb testing.TB, logger logging.Logger, addr string, dur time.Duration) *client.RobotClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶ added in v0.3.0
func Connect(port string) (*grpc.ClientConn, error)
Connect creates a new grpc.ClientConn server running on localhost:port.
func CreateBaseOptionsAndListener ¶ added in v0.0.9
CreateBaseOptionsAndListener creates a new web options with random port as listener.
func MakeTempConfig ¶ added in v0.3.0
MakeTempConfig writes a config.Config object to a temporary file for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.