cover

package
v0.0.0-...-4e6bda9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package cover implements set operations on slices (arrays of coverage PCs).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDifference

func HasDifference(cov0, cov1 Cover) bool

HasDifference returns true if cov0 has some coverage that is not present in cov1. This is called on fuzzer hot path.

func Minimize

func Minimize(corpus []Cover) []int

Minimize returns a minimal set of inputs that give the same coverage as the full corpus.

func RestorePC

func RestorePC(pc uint32, base uint32) uint64

func SignalAdd

func SignalAdd(base map[uint32]struct{}, signal []uint32)

func SignalDiff

func SignalDiff(base map[uint32]struct{}, signal []uint32) (diff []uint32)

func SignalNew

func SignalNew(base map[uint32]struct{}, signal []uint32) bool

Types

type Cover

type Cover []uint32

func Canonicalize

func Canonicalize(cov []uint32) Cover

Canonicalize sorts and removes duplicates.

func Copy

func Copy(cov Cover) Cover

func Difference

func Difference(cov0, cov1 Cover) Cover

func Intersection

func Intersection(cov0, cov1 Cover) Cover

func SymmetricDifference

func SymmetricDifference(cov0, cov1 Cover) Cover

func Union

func Union(cov0, cov1 Cover) Cover

func (Cover) Len

func (a Cover) Len() int

func (Cover) Less

func (a Cover) Less(i, j int) bool

func (Cover) Swap

func (a Cover) Swap(i, j int)

Jump to

Keyboard shortcuts

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