Certitudo.Coverage.Runtime (certitudo v0.1.1)

Copy Markdown View Source

Runtime access to Erlang :cover data for snapshot construction.

Summary

Functions

Lists the module names physically compiled into beam_dirs, derived from .beam filenames (which Mix names Elixir.Module.Name.beam verbatim) — not from any naming convention. Pure filesystem fact, callable before :cover is even started.

Functions

import_coverdata!(coverdata_path, prefixes, ignore_modules, beam_dirs, own_modules \\ MapSet.new())

@spec import_coverdata!(
  binary(),
  [binary()],
  [module() | Regex.t() | binary()],
  [binary()],
  MapSet.t(String.t())
) :: {[module()], [{module(), integer(), non_neg_integer()}]}

keep_module?(mod, prefixes, ignore_modules, own_modules \\ MapSet.new())

@spec keep_module?(
  module(),
  [binary()],
  [module() | Regex.t() | binary()],
  MapSet.t(String.t())
) ::
  boolean()

own_module_names(beam_dirs)

@spec own_module_names([binary()]) :: MapSet.t(String.t())

Lists the module names physically compiled into beam_dirs, derived from .beam filenames (which Mix names Elixir.Module.Name.beam verbatim) — not from any naming convention. Pure filesystem fact, callable before :cover is even started.