In Development Package, API may change between versions.

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

Package egcoverage provides the operation that records test coverage into the analytics database.

func Into

func Into(report func(context.Context, ...*coverage.Report) error, opts ...coverage.Option) eg.OpFn

Into is Report with the sink injected, e.g.) for tests which can't dial the analytics socket.

func Report

func Report(opts ...coverage.Option) eg.OpFn

Report records the coverage the options produce into the analytics database. the options are built by the language specific packages, e.g.) eggolang.Coverage and eglcov.Coverage.

⬤