internal

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTestRunIgnore = errors.New("test run error")

Functions

func GetConfig

func GetConfig() (config, error)

func InitConfig

func InitConfig() error

Creates a config file in the current path with default values

func PrintHelp

func PrintHelp()

func PrintVersion

func PrintVersion(version string)

func RunTests

func RunTests(opts RunTestsOpts) error

Types

type AzureBody added in v1.1.0

type AzureBody struct {
	Status   int            `json:"status"`
	Comments []AzureComment `json:"comments"`
}

type AzureComment added in v1.1.0

type AzureComment struct {
	ParentCommentID int    `json:"parentCommentId"`
	Content         string `json:"content"`
	CommentType     int    `json:"commentType"`
}

type AzureConf added in v1.1.0

type AzureConf struct {
	URL, Auth string
}

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

type Package added in v1.0.0

type Package struct {
	Dir        string
	ImportPath string
	Name       string
}

type RunInitEmptyOpts added in v1.0.0

type RunInitEmptyOpts struct {
	TestPath string
	Excludes []string
}

type RunTestsOpts

type RunTestsOpts struct {
	TestPath         string
	FlagColor        bool
	FlagCache        bool
	FlagCover        bool
	FlagCoverReport  bool
	FlagCoverProfile string
	FlagVerbose      bool
	FlagListIgnored  bool
	FlagSkipEmpty    bool
	FlagListEmpty    bool
	FlagFullCoverage bool
	Excludes         []string
	FlagTestOutput   string

	Azure AzureConf
}

type TestEvent added in v1.0.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL