code_coverage

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const SourcecovAddonName = "sourcecov"

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeCoverage

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

func New

func New(options ...Option) *CodeCoverage

func (*CodeCoverage) Cancel

Cancel Cancel record

func (*CodeCoverage) End

End End record

func (*CodeCoverage) EndCallBack

EndCallBack Record end callBack

func (*CodeCoverage) GetCodeCoverageRecord

func (svc *CodeCoverage) GetCodeCoverageRecord(id uint64) (*apistructs.CodeCoverageExecRecordDto, error)

GetCodeCoverageRecord Get code coverage record

func (*CodeCoverage) GetCodeCoverageRecordStatus added in v1.4.0

func (svc *CodeCoverage) GetCodeCoverageRecordStatus(projectID uint64, workspace string) (*apistructs.CodeCoverageExecRecordDetail, error)

func (*CodeCoverage) GetCodeCoverageSetting added in v1.4.0

func (svc *CodeCoverage) GetCodeCoverageSetting(projectID uint64, workspace string) (*apistructs.CodeCoverageSetting, error)

func (*CodeCoverage) JudgeCanEnd

func (svc *CodeCoverage) JudgeCanEnd(projectID uint64, workspace string) (bool, error)

func (*CodeCoverage) JudgeRunningRecordExist

func (svc *CodeCoverage) JudgeRunningRecordExist(projectID uint64, workspace string) error

JudgeRunningRecordExist Judge running record exist

func (*CodeCoverage) JudgeSourcecovAddon added in v1.4.0

func (svc *CodeCoverage) JudgeSourcecovAddon(projectID uint64, orgID uint64, workspace string) (bool, error)

func (*CodeCoverage) ListCodeCoverageRecord

func (svc *CodeCoverage) ListCodeCoverageRecord(req apistructs.CodeCoverageListRequest) (data apistructs.CodeCoverageExecRecordData, err error)

ListCodeCoverageRecord list code coverage record

func (*CodeCoverage) ReadyCallBack

func (svc *CodeCoverage) ReadyCallBack(req apistructs.CodeCoverageUpdateRequest) error

ReadyCallBack Record ready callBack

func (*CodeCoverage) ReportCallBack

func (svc *CodeCoverage) ReportCallBack(req apistructs.CodeCoverageUpdateRequest) error

ReportCallBack Record report callBack

func (*CodeCoverage) SaveCodeCoverageSetting added in v1.4.0

func (svc *CodeCoverage) SaveCodeCoverageSetting(saveSettingRequest apistructs.SaveCodeCoverageSettingRequest) (*apistructs.CodeCoverageSetting, error)

func (*CodeCoverage) Start

Start Start record

type Option

type Option func(*CodeCoverage)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

func WithEnvConfig

func WithEnvConfig(envConfig *environment.EnvConfig) Option

Jump to

Keyboard shortcuts

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