coverage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanCollect

func CanCollect() bool

CanCollect returns whether coverage can be collected.

func GetCoverage

func GetCoverage() float64

GetCoverage returns the total coverage percentage for the test package

func InitializeCoverage

func InitializeCoverage(m *testing.M)

InitializeCoverage initializes the runtime coverage.

Types

type TestCoverage

type TestCoverage interface {
	// CollectCoverageBeforeTestExecution collects coverage before test execution.
	CollectCoverageBeforeTestExecution()
	// CollectCoverageAfterTestExecution collects coverage after test execution.
	CollectCoverageAfterTestExecution()
}

TestCoverage is the interface for collecting test coverage.

func NewTestCoverage

func NewTestCoverage(sessionID, moduleID, suiteID, testID uint64, testFile string) TestCoverage

NewTestCoverage creates a new test coverage.

Jump to

Keyboard shortcuts

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