interfaces

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisAPI

type AnalysisAPI interface {
	GetCoverageStatistics(packages []string) (results analysistypes.GetCoverageStatisticsOutput, err error)
}

AnalysisAPI represents anything that knows how to deal with coverage statistics.

type PackageAPI

type PackageAPI interface {
	GetPackages(exclusionPatterns []string) ([]string, error)
	GetFileNamesForPackage(pkg string) ([]string, error)
}

PackageAPI describes anything that knows how to interact with packages.

type ProfileAPI

type ProfileAPI interface {
	BuildAndSaveCoverageProfile(allPackages pckg.Group, coverageProfileName string) error
	OutputPercentageFile(coveragePercentage float64) error
}

ProfileAPI represents anything that knows how to work with coverage profiles.

type ReportAPI

type ReportAPI interface {
	BuildCoverageReport(allPackages pckg.Group, exclusionPatterns []string) (string, error)
}

ReportAPI represents anything that knows how to work with coverage reports.

Source Files

  • analysisapi.go
  • packageapi.go
  • profileapi.go
  • reportapi.go

Jump to

Keyboard shortcuts

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