Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result is returned from a `Spec.Run` execution. It serves two purposes: 1) to return the error, if any, from the Run execution and 2) to pass back information about the Run that can be injected into the context's `PriorRun` cache. Some plugins, e.g. the gdt-http plugin, use cached data from a previous run in order to construct current Run fixtures. In the case of the gdt=http plugin, the previous `nethttp.Response` is returned in the Result and the `Scenario.Run` method injects that information into the context that is supplied to the next Spec's `Run`.
type ResultModifier ¶
type ResultModifier func(*Result)
func WithData ¶
func WithData(key string, val interface{}) ResultModifier
WithData modifies the Result with the supplied run data key and value
func WithError ¶
func WithError(err error) ResultModifier
WithError modifies the Result with the supplied error