Documentation ¶
Overview ¶
Package response provides a way to accumulate and summarize the response for a request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Summarize ¶
func Summarize(tss []*Invocation) *steps.ExecuteResponse
Summarize summarizes the response from a list of Invocations.
Types ¶
type Invocation ¶
type Invocation struct { Name string // contains filtered or unexported fields }
Invocation accumulates the response for a single invocation
func NewInvocation ¶
func NewInvocation(name string) *Invocation
NewInvocation returns a new Invocation with the given name.
func (*Invocation) LifeCycle ¶
func (t *Invocation) LifeCycle() test_platform.TaskState_LifeCycle
LifeCycle returns the test_platform TaskState LifeCycle for this invocation.
func (*Invocation) MarkNotRunnable ¶
func (t *Invocation) MarkNotRunnable(rejectedTaskDims []types.TaskDimKeyVal)
MarkNotRunnable marks this invocation as being unable to run.
When the invocation is not runnable because of unsatisfiable dependencies, the rejected dimensions should be supplied as the rejectedTaskDims argument.
func (*Invocation) NotifyTask ¶
func (t *Invocation) NotifyTask(task *testrunner.Build)
NotifyTask notifies the test task set of a new task for the test.
func (*Invocation) Verdict ¶
func (t *Invocation) Verdict() test_platform.TaskState_Verdict
Verdict returns the test_platform TaskState Verdict for this invocation.