cover

package
Version: v0.0.0-...-a099a93 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL