import "github.com/egdaemon/eg/runtime/wasi/egunsafe/fficoverage"

func Report

func Report(ctx context.Context, q sqlx.Queryer, batch ...*Coverage) error

Report inserts batch into the analytics database q, e.g.) the one egdb.Open returns, q belongs to the caller and is not closed. the time allowed is proportional to the size of the batch.

type Coverage

Coverage is a coverage measurement for a file, or for a function within it when Fnname is set.

type Coverage = coverage.Report
⬤