Documentation ¶
Index ¶
- func Execute()
- func NewNetworkList(currentV4, currentV6 *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 TemplateFlag
- 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 TemplateFlag ¶ added in v0.20.0
func (*TemplateFlag) Set ¶ added in v0.20.0
func (t *TemplateFlag) Set(s string) error
func (*TemplateFlag) String ¶ added in v0.20.0
func (t *TemplateFlag) String() string
func (*TemplateFlag) Type ¶ added in v0.20.0
func (t *TemplateFlag) Type() string
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" StatusError TestStatus = "ERROR" // Error running test )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.