encodemeta

package
v0.0.0-...-187095f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashFuncDesc

func HashFuncDesc(f *coverage.FuncDesc) [16]byte

HashFuncDesc computes an md5 sum of a coverage.FuncDesc and returns a digest for it.

Types

type CoverageMetaDataBuilder

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

func NewCoverageMetaDataBuilder

func NewCoverageMetaDataBuilder(pkgpath string, pkgname string, modulepath string) (*CoverageMetaDataBuilder, error)

func (*CoverageMetaDataBuilder) AddFunc

AddFunc registers a new function with the meta data builder.

func (*CoverageMetaDataBuilder) Emit

func (b *CoverageMetaDataBuilder) Emit(w io.WriteSeeker) ([16]byte, error)

Emit writes the meta-data accumulated so far in this builder to 'w'. Returns a hash of the meta-data payload and an error.

type CoverageMetaFileWriter

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

func NewCoverageMetaFileWriter

func NewCoverageMetaFileWriter(mfname string, w io.Writer) *CoverageMetaFileWriter

func (*CoverageMetaFileWriter) Write

func (m *CoverageMetaFileWriter) Write(finalHash [16]byte, blobs [][]byte, mode coverage.CounterMode, granularity coverage.CounterGranularity) error

Jump to

Keyboard shortcuts

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