Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func UnmarshalAll ¶
func UnmarshalAll(paths ...string) (map[string]*Bundle, map[string]*workflow.Desc, map[string]*execute.RawParams, utils.ErrorSlice)
UnmarshalAll attempts to read and parse all the file paths supplied, categorising the content into Bundles, Workflows and Params. Resulting maps have the path as the key.
Types ¶
type Bundle ¶
type Bundle struct { workflow.Desc execute.RawParams workflowtest.TestOpt Version string `json:"version"` Properties workflowProperties `json:"Properties"` }
A Bundle is a workflow with its inputs
func UnmarshalSingle ¶
UnmarshalSingle can either be supplied with a single bundlePath, or with both a workflowPath and a paramsPath. This slightly unusual API exists because there are a few places where due to flags or other sources of input, it is simplest to provide all possible inputs here. The bundle returned will either be constructed from the bundlePath alone, or from both the workflowPath and paramsPath. Any other combination will error.
type TestInput ¶
type TestInput struct { Dir string BundlePath string ParamsPath string WorkflowPath string Params *execute.RawParams Workflow *workflow.Desc Expected workflowtest.TestOpt }
A TestInput is a workflow, its iputs and expected output
func FindTestInputs ¶
FindTestInputs finds any test inputs under basePath.