Documentation ¶
Index ¶
- func Execute()
- func NewNetworkList(current *net.IPNet) *networkList
- func TestLogger(testID string, out io.Writer) *log.Logger
- func VmshedStandardLogFormatter() *log.TextFormatter
- func XMLLog(resultsDir, testName string, testRes TestResulter, testLog []byte) error
- type BiasedStringSlice
- type StandardLoggerHook
- type TestResulter
- type TestStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetworkList ¶ added in v0.11.0
func TestLogger ¶ added in v0.14.2
TestLogger creates a Logger for use in test runs. Logs will be written to the standard logger, with the ID attached, and to the given Writer, without the ID.
func VmshedStandardLogFormatter ¶ added in v0.14.2
func VmshedStandardLogFormatter() *log.TextFormatter
VmshedStandardLogFormatter creates a Formatter with vmshed specific customizations.
Types ¶
type BiasedStringSlice ¶ added in v0.14.2
type BiasedStringSlice []string
BiasedStringSlice implements sort.Interface with a fixed set of preferred strings.
func (BiasedStringSlice) Len ¶ added in v0.14.2
func (s BiasedStringSlice) Len() int
func (BiasedStringSlice) Less ¶ added in v0.14.2
func (s BiasedStringSlice) Less(i, j int) bool
func (BiasedStringSlice) Swap ¶ added in v0.14.2
func (s BiasedStringSlice) Swap(i, j int)
type StandardLoggerHook ¶ added in v0.4.0
type StandardLoggerHook struct {
// contains filtered or unexported fields
}
StandardLoggerHook duplicates log messages to the standard logger, adding an ID field
func (*StandardLoggerHook) Fire ¶ added in v0.4.0
func (hook *StandardLoggerHook) Fire(entry *log.Entry) error
func (*StandardLoggerHook) Levels ¶ added in v0.4.0
func (hook *StandardLoggerHook) Levels() []log.Level
Intercept all levels, whether or not they are actually output.
type TestResulter ¶
type TestStatus ¶ added in v0.7.0
type TestStatus string
const ( StatusSkipped TestStatus = "SKIPPED" StatusSuccess TestStatus = "SUCCESS" StatusCanceled TestStatus = "CANCELED" StatusFailedTimeout TestStatus = "FAILED(TO)" StatusFailed TestStatus = "FAILED" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.