In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/eglcov"

Package eglcov provides the coverage of lcov files, recorded with egcoverage.Report.

func Coverage

func Coverage(dir string) coverage.Options

Coverage is the coverage of the lcov files within a directory, with paths relative to the workspace. lcov paths are relative to the project that wrote them, which is taken to be the parent of dir, e.g.) the project of console/coverage is console. use Root to anchor them elsewhere, e.g.) Coverage(dir).Root(egenv.WorkingDirectory("other")).

func CoverageFrom

func CoverageFrom(r io.Reader) coverage.Options

CoverageFrom is the coverage of an lcov document, see Coverage.

⬤