testcoverage

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(workingDir string) *Command

func (*Command) CheckoutToCommitByHash

func (c *Command) CheckoutToCommitByHash(ctx context.Context, hash string) error

func (*Command) CoveragePercent added in v1.2.2

func (c *Command) CoveragePercent(ctx context.Context) (float64, error)

func (*Command) GetCurrentCommitHash

func (c *Command) GetCurrentCommitHash(ctx context.Context) (string, error)

func (*Command) GetPreviousCommitHash

func (c *Command) GetPreviousCommitHash(ctx context.Context) (string, error)

type Coverage

type Coverage struct {
	ID      int64 `xorm:"pk autoincr"`
	Project string
	Hash    string
	Percent float64
}

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(dsnURI string) *Repo

func (*Repo) AddCoveragePercent added in v1.2.2

func (r *Repo) AddCoveragePercent(projectName string, hash string, procent float64) error

func (*Repo) GetCoveragePercent added in v1.2.2

func (r *Repo) GetCoveragePercent(projectName string, hash string) (float64, error)

func (*Repo) HasCoveragePercent added in v1.2.2

func (r *Repo) HasCoveragePercent(projectName string, hash string) (bool, error)

type TestCoverage

type TestCoverage struct {
	// contains filtered or unexported fields
}

func NewTestCoverage

func NewTestCoverage(projectName string, workingDir string, repo *Repo) *TestCoverage

func (*TestCoverage) IsUpCoverage

func (t *TestCoverage) IsUpCoverage(ctx context.Context) error

Jump to

Keyboard shortcuts

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