Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultInfluxDBHost = "http://localhost:9999"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
Test wraps the functionality of a single testcase statement, to handle its execution and its pass/fail state.
type TestReporter ¶
type TestReporter struct {
// contains filtered or unexported fields
}
TestReporter handles reporting of test results.
func NewTestReporter ¶
func NewTestReporter(verbosity int) TestReporter
NewTestReporter creates a new TestReporter with a provided verbosity.
func (*TestReporter) ReportTestRun ¶
func (t *TestReporter) ReportTestRun(test *Test)
ReportTestRun reports the result a single test run, intended to be run as each test is run.
func (*TestReporter) Summarize ¶
func (t *TestReporter) Summarize(tests []*Test)
Summarize summarizes the test run.
type TestRunner ¶
type TestRunner struct {
// contains filtered or unexported fields
}
TestRunner gathers and runs all tests.
func NewTestRunner ¶
func NewTestRunner(reporter TestReporter) TestRunner
NewTestRunner returns a new TestRunner.
func (*TestRunner) Finish ¶
func (t *TestRunner) Finish()
Finish summarizes the test run, and returns the exit code based on success for failure.
func (*TestRunner) Gather ¶
func (t *TestRunner) Gather(rootDir string, names []string) error
Gather gathers all tests from the filesystem and creates Test instances from that info.
func (*TestRunner) Run ¶
func (t *TestRunner) Run(verbosity int)
Run runs all tests, reporting their results.
Click to show internal directories.
Click to hide internal directories.