Documentation ¶
Index ¶
- func IsReportTypeNotSupportError(err error) bool
- type Service
- func (s *Service) Find(ctx context.Context, t core.ReportType, path string) (string, error)
- func (s *Service) Open(ctx context.Context, t core.ReportType, path string) (io.Reader, error)
- func (s *Service) Report(ctx context.Context, t core.ReportType, r io.Reader) (*core.CoverageReport, error)
- func (s *Service) TrimFileNamePrefix(ctx context.Context, report *core.CoverageReport, prefixes ...string) error
- func (s *Service) TrimFileNames(ctx context.Context, report *core.CoverageReport, filters core.FileNameFilters) error
- type TypeCoverageService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReportTypeNotSupportError ¶
IsReportTypeNotSupportError check
Types ¶
type Service ¶
type Service struct{}
Service of coverage report
func (*Service) Report ¶
func (s *Service) Report(ctx context.Context, t core.ReportType, r io.Reader) (*core.CoverageReport, error)
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
Click to show internal directories.
Click to hide internal directories.