Documentation

Index

Constants

View Source
const (
	DefaultEnvironmentsPath = "./environments/"
)

Variables

This section is empty.

Functions

func ProvisionCommandFactory

func ProvisionCommandFactory(meta Meta) cli.CommandFactory

func RunCommandFactory

func RunCommandFactory(meta Meta) cli.CommandFactory

Types

type EventDecoder

type EventDecoder struct {

	// contains filtered or unexported fields

}

func NewDecoder

func NewDecoder(r io.Reader) *EventDecoder

func (*EventDecoder) Decode

func (d *EventDecoder) Decode(logger hclog.Logger) (*TestReport, error)

type Meta

type Meta struct {
	Ui cli.Ui

	// contains filtered or unexported fields

}

func NewMeta

func NewMeta(ui cli.Ui, logger hclog.Logger) Meta

func (*Meta) FlagSet

func (m *Meta) FlagSet(n string) *flag.FlagSet

type Provision

type Provision struct {
	Meta
}

func (*Provision) Help

func (c *Provision) Help() string

func (*Provision) Run

func (c *Provision) Run(args []string) int

func (*Provision) Synopsis

func (c *Provision) Synopsis() string

type Run

type Run struct {
	Meta
}

func (*Run) Help

func (c *Run) Help() string

func (*Run) Run

func (c *Run) Run(args []string) int

func (*Run) Synopsis

func (c *Run) Synopsis() string

type Test

type Test struct {
	Name    string
	Output  []string
	Failed  bool
	Elapsed float64
}

type TestCase

type TestCase struct {
	Name    string
	Tests   map[string]*Test
	Failed  int
	Elapsed float64
	Output  []string
}

type TestEvent

type TestEvent struct {
	Time    time.Time // encodes as an RFC3339-format string
	Action  string
	Package string
	Test    string
	Elapsed float64 // seconds
	Output  string

	// contains filtered or unexported fields

}

type TestReport

type TestReport struct {
	Events            []*TestEvent
	Suites            map[string]*TestSuite
	TotalSuites       int
	TotalFailedSuites int
	TotalCases        int
	TotalFailedCases  int
	TotalTests        int
	TotalFailedTests  int
	Elapsed           float64
	Output            []string
}

func (*TestReport) Summary

func (r *TestReport) Summary() string

type TestSuite

type TestSuite struct {
	Name    string
	Cases   map[string]*TestCase
	Failed  int
	Elapsed float64
	Output  []string
}