testcoverage

package
v0.0.0-...-a7f2131 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 9 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(hash string) error

func (*Command) CoverageProcent

func (c *Command) CoverageProcent() (float64, error)

func (*Command) GetCurrentCommitHash

func (c *Command) GetCurrentCommitHash() (string, error)

func (*Command) GetPreviousCommitHash

func (c *Command) GetPreviousCommitHash() (string, error)

type Coverage

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

type Repo

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

func NewRepo

func NewRepo(dsnURI string) *Repo

func (*Repo) AddCoverageProcent

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

func (*Repo) GetCoverageProcent

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

func (*Repo) HasCoverageProcent

func (r *Repo) HasCoverageProcent(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() error

Jump to

Keyboard shortcuts

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