coverage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReportTypeNotSupportError

func IsReportTypeNotSupportError(err error) bool

IsReportTypeNotSupportError check

Types

type Service

type Service struct{}

Service of coverage report

func (*Service) Find

func (s *Service) Find(ctx context.Context, t core.ReportType, path string) (string, error)

Find coverage report data from given path

func (*Service) Open

func (s *Service) Open(ctx context.Context, t core.ReportType, path string) (io.Reader, error)

Open coverage report with given path

func (*Service) Report

Report coverage from reader data

func (*Service) TrimFileNamePrefix added in v0.2.0

func (s *Service) TrimFileNamePrefix(ctx context.Context, report *core.CoverageReport, prefixes ...string) error

TrimFileNamePrefix for all files in coverage report

func (*Service) TrimFileNames

func (s *Service) TrimFileNames(ctx context.Context, report *core.CoverageReport, filters core.FileNameFilters) error

TrimFileNames for all files in coverage report

type TypeCoverageService

type TypeCoverageService interface {
	Report(ctx context.Context, data io.Reader) (*core.CoverageReport, error)
	Find(ctx context.Context, path string) (string, error)
	Open(ctx context.Context, path string) (io.Reader, error)
}

TypeCoverageService defines a coverage service for a language

Jump to

Keyboard shortcuts

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