tip

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AppVersion = "0.5.0"
View Source
const (
	UnresolvedTestCaseName = "???"
)

Variables

This section is empty.

Functions

func SaveHistories added in v0.3.0

func SaveHistories(projectDir string, histories *Histories) error

Types

type Config added in v0.2.0

type Config struct {
	Command []string      `toml:"command"`
	History HistoryConfig `toml:"history"`
}

func LoadConfig added in v0.2.0

func LoadConfig(projectDir string) (*Config, error)

type Histories added in v0.3.0

type Histories struct {
	ProjectDir string
	Histories  []*History
}

func LoadHistories added in v0.3.0

func LoadHistories(projectDir string) (*Histories, error)

func (*Histories) Add added in v0.3.0

func (h *Histories) Add(target *Target, limit int)

type History added in v0.3.0

type History struct {
	Path            string
	PackageName     string
	TestNamePattern string
	IsPrefix        bool
	RunAt           time.Time
}

func (*History) ToTarget added in v0.5.0

func (h *History) ToTarget() *Target

type HistoryConfig added in v0.3.0

type HistoryConfig struct {
	Limit      int    `toml:"limit"`
	DateFormat string `toml:"date_format"`
}

type SubTest

type SubTest struct {
	Name                 string
	Subs                 []*SubTest
	IsUnresolvedSubTests bool
}

type Target

type Target struct {
	Path            string
	PackageName     string
	TestNamePattern string
	IsPrefix        bool
}

func NewTarget

func NewTarget(path, name string, isUnresolved bool) *Target

func (*Target) DropLastSegment

func (t *Target) DropLastSegment()

type TestFunction

type TestFunction struct {
	Name string
	Subs []*SubTest
}

Jump to

Keyboard shortcuts

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