coveragebranch

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package coveragebranch joins gocove branch targets with native Go coverage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Measure

func Measure(reportJSON []byte, profile io.Reader) (int, int, error)

Measure reports covered and total branch targets.

The pinned gocove beta can associate a nested branch with an outer block. Measure instead checks each target against positive native profile ranges. Strict overlap rejects ranges that only touch a target boundary.

func MeasureExcluding

func MeasureExcluding(
	reportJSON []byte,
	profile io.Reader,
	excludedImportPaths ...string,
) (int, int, error)

MeasureExcluding reports branch coverage outside test-only packages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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