package encodecounter
Import Path
internal/coverage/encodecounter (on go.dev)
Dependency Relation
imports 10 packages, and imported by one package
Involved Source Files
encode.go
Package-Level Type Names (total 3)
CounterVisitor describes a helper object used during counter file
writing; when writing counter data files, clients pass a
CounterVisitor to the write/emit routines, then the expectation is
that the VisitFuncs method will then invoke the callback "f" with
data for each function to emit to the file.
( CounterVisitor) VisitFuncs(f CounterVisitorFn) error
func (*CoverageDataWriter).AppendSegment(args map[string]string, visitor CounterVisitor) error
func (*CoverageDataWriter).Write(metaFileHash [16]byte, args map[string]string, visitor CounterVisitor) error
CounterVisitorFn describes a callback function invoked when writing
coverage counter data.
func CounterVisitor.VisitFuncs(f CounterVisitorFn) error
AppendSegment appends a new segment to a counter data, with a new
args section followed by a payload of counter data clauses.
Write writes the contents of the count-data file to the writer
previously supplied to NewCoverageDataWriter. Returns an error
if something went wrong somewhere with the write.
func NewCoverageDataWriter(w io.Writer, flav coverage.CounterFlavor) *CoverageDataWriter
Package-Level Functions (only one)
func NewCoverageDataWriter(w io.Writer, flav coverage.CounterFlavor) *CoverageDataWriter
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |