cover

package
v0.0.0-...-f0d17a2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cover provides types for working with coverage information (arrays of covered PCs).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreviousInstructionPC

func PreviousInstructionPC(arch string, pc uint64) uint64

func RestorePC

func RestorePC(pc uint32, base uint32) uint64

Types

type Cover

type Cover map[uint32]struct{}

func (*Cover) Merge

func (cov *Cover) Merge(raw []uint32)

func (Cover) Serialize

func (cov Cover) Serialize() []uint32

type ReportGenerator

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

func MakeReportGenerator

func MakeReportGenerator(vmlinux, srcDir, arch string) (*ReportGenerator, error)

func (*ReportGenerator) Do

func (rg *ReportGenerator) Do(w io.Writer, pcs []uint64) error

Jump to

Keyboard shortcuts

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