glcov/cover

Types

pub type SelectedModule {
  SelectedModule(module: String, source: String, beam: String)
}

Constructors

  • SelectedModule(module: String, source: String, beam: String)

Values

pub fn analyse(
  modules: List(SelectedModule),
) -> Result(List(#(String, String, List(#(Int, Bool)))), String)
pub fn analyse_functions(
  modules: List(SelectedModule),
) -> Result(List(#(String, String, Int, Int, Int)), String)

Function coverage rows: {source, name, line, arity, calls}.

pub fn select_modules(
  ebin: String,
  excludes: List(String),
) -> List(SelectedModule)

Pick the root package’s Gleam source modules for coverage.

Only src/**/*.gleam is included in 0.2.0. Test code, dev code, the generated <app>@@main module, Erlang sources, and user --exclude globs are skipped.

pub fn select_modules_with_prefix(
  ebin: String,
  source_prefix: String,
  excludes: List(String),
) -> List(SelectedModule)

Select modules and prefix their displayed source paths.

The prefix is used for path dependencies so lcov paths point at the dependency file rather than a source path that only exists under the root package.

pub fn start_and_compile(
  modules: List(SelectedModule),
) -> Result(Nil, String)
pub fn stop() -> Nil
✨ Search Document