parser_gcov

package
v0.0.0-...-e66fd96 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGCovParser

func NewGCovParser(fileReader filereader.Reader) parsers.IParser

NewGCovParser creates a new parser instance.

Types

type GCovParser

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

GCovParser implements the parsers.IParser interface for gcov reports.

func (*GCovParser) Name

func (p *GCovParser) Name() string

Name returns the unique, human-readable name of the parser.

func (*GCovParser) Parse

func (p *GCovParser) Parse(filePath string, config parsers.ParserConfig) (*parsers.ParserResult, error)

Parse reads the gcov report from disk and delegates processing to the orchestrator. It then returns the resulting flat list of file coverage data.

func (*GCovParser) SupportsFile

func (p *GCovParser) SupportsFile(filePath string) bool

SupportsFile checks if the file is a gcov report by reading its first line for the characteristic "0:Source:" marker.

Jump to

Keyboard shortcuts

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