# Functions
AddCounters is different from official go tool cover 1.
CovList converts profile to CoverageList struct.
Delta calculate two coverage delta.
Execute inject cover variables for all the .go files in the target folder.
GetChFileDeltaCov get two profile diff cov of changed files.
GetDeltaCov get two profile diff cov.
GetFullDeltaCov get full delta coverage between new and base profile.
No description provided by the author
InjectCountersHandlers generate a file _cover_http_apis.go besides the main.go file.
ListPackages list all packages under specific via go list command The argument newgopath is if you need to go list in a different GOPATH.
NewCoverageList return empty CoverageList.
NewFileBasedServer new a file based server with persistenceFile.
NewFileStore creates a store using local file.
NewMemoryBasedServer new a memory based server without persistenceFile.
NewMemoryStore creates a memory store.
NewWorker creates a worker to contact with service.
PercentStr converts a fraction number to percentage string representation.
ReadFileToCoverList coverts profile file to CoverageList struct.
TotalDelta calculate two coverage delta.
# Constants
CoverInitSystemAPI prepare a new round of testing.
CoverProfileAPI is provided by the covered service to get profiles.
CoverProfileClearAPI is provided by the covered service to clear profiles.
CoverRegisterServiceAPI register a service into service center.
CoverServicesListAPI list all the registered services.
CoverServicesRemoveAPI remove one services from the service center.
LogFile a file to save log.
# Variables
ErrCoverListFailed represents the error that fails to list package dependencies.
ErrCoverPkgFailed represents the error that fails to inject the package.
No description provided by the author
# Structs
Coverage stores test coverage summary data for one file.
CoverBuildInfo retreives some info from build.
DeltaCov contains the info of a delta coverage.
FileVar holds the name of the generated coverage variables targeting the named file.
ModuleError represents the error loading module.
ModulePublic represents the package info of a module.
Package map a package output by go list this is subset of package struct in: https://github.com/golang/go/blob/master/src/cmd/go/internal/load/pkg.go#L58.
PackageCover holds all the generate coverage variables of a package.
PackageError is the error info for a package when list failed.
ProfileParam is param of profile API.
ServiceUnderTest is a entry under being tested.
TestCover is a collection of all counters.
# Type aliases
CoverageList is a collection and summary over multiple file Coverage objects.
DeltaCovList is the list of DeltaCov.