Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dut = flag.Bool("dut", false, "run command/device under test")
Functions ¶
Types ¶
type CommandFixtureTest ¶ added in v0.7.1
type CommandFixtureTest struct {
Name string
T *testing.T
Args []string
ExitCode int
NoNestedWorkspace bool
StdoutSubs []string
NoStdoutSub string
StderrSub string
NoStderrSub string
Eval func(t *testing.T, stdout, stderr string)
Fixture *Setup
FixturePath string
}
func (*CommandFixtureTest) Run ¶ added in v0.7.1
func (ft *CommandFixtureTest) Run()
Run executes the fixture test - do not forget to call this one
type Setup ¶
type Setup struct {
Workspace leeway.Workspace `yaml:"workspace"`
Components []Component `yaml:"components"`
Files map[string]string `yaml:"files"`
}
func LoadFromYAML ¶
LoadFromYAML loads a workspace setup from a YAML file
func (Setup) Materialize ¶
Materialize produces a leeway workspace according to the setup spec
Click to show internal directories.
Click to hide internal directories.