Documentation ¶
Index ¶
- Variables
- type BeforeSuiteState
- type Client
- type ParallelIndexCounter
- type RPCServer
- func (server *RPCServer) Address() string
- func (server *RPCServer) Close()
- func (server *RPCServer) GetOutputDestination() io.Writer
- func (server *RPCServer) GetSuiteDone() chan interface{}
- func (server *RPCServer) RegisterAlive(node int, alive func() bool)
- func (server *RPCServer) SetOutputDestination(w io.Writer)
- func (server *RPCServer) Start()
- type Server
- type ServerHandler
- func (handler *ServerHandler) Abort(_ Void, _ *Void) error
- func (handler *ServerHandler) AggregatedNonprimaryProcsReport(_ Void, report *types.Report) error
- func (handler *ServerHandler) BeforeSuiteCompleted(beforeSuiteState BeforeSuiteState, _ *Void) error
- func (handler *ServerHandler) BeforeSuiteState(_ Void, beforeSuiteState *BeforeSuiteState) error
- func (handler *ServerHandler) Counter(_ Void, counter *int) error
- func (handler *ServerHandler) DidRun(report types.SpecReport, _ *Void) error
- func (handler *ServerHandler) EmitOutput(output []byte, n *int) error
- func (handler *ServerHandler) HaveNonprimaryProcsFinished(_ Void, _ *Void) error
- func (handler *ServerHandler) ShouldAbort(_ Void, shouldAbort *bool) error
- func (handler *ServerHandler) SpecSuiteDidEnd(report types.Report, _ *Void) error
- func (handler *ServerHandler) SpecSuiteWillBegin(report types.Report, _ *Void) error
- type Void
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorEarly = fmt.Errorf("early")
View Source
var ErrorFailed = fmt.Errorf("failed")
View Source
var ErrorGone = fmt.Errorf("gone")
View Source
var POLLING_INTERVAL = 50 * time.Millisecond
Functions ¶
This section is empty.
Types ¶
type BeforeSuiteState ¶
type Client ¶
type Client interface { Connect() bool Close() error PostSuiteWillBegin(report types.Report) error PostDidRun(report types.SpecReport) error PostSuiteDidEnd(report types.Report) error PostSynchronizedBeforeSuiteCompleted(state types.SpecState, data []byte) error BlockUntilSynchronizedBeforeSuiteData() (types.SpecState, []byte, error) BlockUntilNonprimaryProcsHaveFinished() error BlockUntilAggregatedNonprimaryProcsReport() (types.Report, error) FetchNextCounter() (int, error) PostAbort() error ShouldAbort() bool Write(p []byte) (int, error) }
type ParallelIndexCounter ¶
type ParallelIndexCounter struct {
Index int
}
type RPCServer ¶
type RPCServer struct {
// contains filtered or unexported fields
}
RPCServer spins up on an automatically selected port and listens for communication from the forwarding reporter. It then forwards that communication to attached reporters.
func (*RPCServer) Address ¶
The address the server can be reached it. Pass this into the `ForwardingReporter`.
func (*RPCServer) GetOutputDestination ¶
func (*RPCServer) GetSuiteDone ¶
func (server *RPCServer) GetSuiteDone() chan interface{}
func (*RPCServer) RegisterAlive ¶
func (*RPCServer) SetOutputDestination ¶
type Server ¶
type ServerHandler ¶
type ServerHandler struct {
// contains filtered or unexported fields
}
func (*ServerHandler) AggregatedNonprimaryProcsReport ¶
func (handler *ServerHandler) AggregatedNonprimaryProcsReport(_ Void, report *types.Report) error
func (*ServerHandler) BeforeSuiteCompleted ¶
func (handler *ServerHandler) BeforeSuiteCompleted(beforeSuiteState BeforeSuiteState, _ *Void) error
func (*ServerHandler) BeforeSuiteState ¶
func (handler *ServerHandler) BeforeSuiteState(_ Void, beforeSuiteState *BeforeSuiteState) error
func (*ServerHandler) DidRun ¶
func (handler *ServerHandler) DidRun(report types.SpecReport, _ *Void) error
func (*ServerHandler) EmitOutput ¶
func (handler *ServerHandler) EmitOutput(output []byte, n *int) error
func (*ServerHandler) HaveNonprimaryProcsFinished ¶
func (handler *ServerHandler) HaveNonprimaryProcsFinished(_ Void, _ *Void) error
func (*ServerHandler) ShouldAbort ¶
func (handler *ServerHandler) ShouldAbort(_ Void, shouldAbort *bool) error
func (*ServerHandler) SpecSuiteDidEnd ¶
func (handler *ServerHandler) SpecSuiteDidEnd(report types.Report, _ *Void) error
func (*ServerHandler) SpecSuiteWillBegin ¶
func (handler *ServerHandler) SpecSuiteWillBegin(report types.Report, _ *Void) error
Click to show internal directories.
Click to hide internal directories.