coverage

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: 5 Imported by: 0

Documentation

Overview

Package coverage contains an API for working with unit test coverage analysis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API contains methods for analyzing unit test coverage.

func New

func New(packageAPI interfaces.PackageAPI, analysisAPI interfaces.AnalysisAPI, profileAPI interfaces.ProfileAPI, reportAPI interfaces.ReportAPI) *API

New returns a reference to a new coverage API.

func (*API) AnalyzeUnitTestCoverage

func (a *API) AnalyzeUnitTestCoverage(exclusionPatterns []string, coverageStandard float64, suppressProfile bool, coverageProfileName string, suppressPercentageFile bool) (err error)

AnalyzeUnitTestCoverage analyzes unit test coverage across all packages.

Source Files

  • api.go

Directories

Path Synopsis
Package analysis contains methods for building coverage statistics.
Package analysis contains methods for building coverage statistics.
analysistypes
Package analysistypes contains types used by the analysis package.
Package analysistypes contains types used by the analysis package.
raw
Package raw exposes lower level methods that interact with the 'go' CLI.
Package raw exposes lower level methods that interact with the 'go' CLI.
Package coverageerrors contains error types specific to coverage analysis.
Package coverageerrors contains error types specific to coverage analysis.
Package host contains wrappers around OS and IO methods.
Package host contains wrappers around OS and IO methods.
Package packages exposes methods for listing packages URIs, filenames, etc...
Package packages exposes methods for listing packages URIs, filenames, etc...
Package pckg contains high level representations of package coverage statistics.
Package pckg contains high level representations of package coverage statistics.
Package profile exposes methods for working with coverage profile files and other profile related files.
Package profile exposes methods for working with coverage profile files and other profile related files.
Package report exposes methods for generating a coverage report.
Package report exposes methods for generating a coverage report.

Jump to

Keyboard shortcuts

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