control

package
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StubServer

type StubServer struct {
	// contains filtered or unexported fields
}

StubServer represents a running instance of a scripted bolt stub server

func NewStubServer

func NewStubServer(t *testing.T, port int, script string) *StubServer

NewStubServer launches the stub server on the given port with the given script

func (*StubServer) Close

func (server *StubServer) Close()

Close releases all process related resources

func (*StubServer) Finished

func (server *StubServer) Finished(t *testing.T) bool

Finished expects the stub server to already be exited returns whether it was exited with success code. If the process did not exit as expected, it returns false (or fails the test)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL