ltest-util
Inspect BEAM files and provide shared test-discovery and reporting helpers.
--loaded-ltest-records--/0function
--loaded-ltest-records--/0Return ok. This dummy function marks the end of the include so the REPL prints its name as the last function loaded.
all-tests/1function
all-tests/1Sum the ok, skip, fail, err, and cancel counters in listener state.
beam->module/1function
beam->module/1Read and return the module atom from a readable BEAM path; this does not load the module, and BEAM errors propagate.
beams->files/1function
beams->files/1Append .beam to each basename; for {Module, Basename} tuples, preserve Module and append the suffix to Basename.
beams->modules/1function
beams->modules/1Read each module atom from a readable BEAM path; read errors propagate.
binary-mod->atom/1function
binary-mod->atom/1Convert the stripped bytes of a quoted module name to an atom; no UTF-8 decoding or Erlang escape parsing is performed.
binary-mod->str/1function
binary-mod->str/1Convert the binary bytes to a character list and strip apostrophes at both edges; this does not decode UTF-8 or Erlang escapes.
file->beam/1function
file->beam/1Extract a BEAM path root from a valid quoted EUnit file descriptor; the returned path omits the .beam suffix.
file->module/1function
file->module/1Read the module atom from the BEAM named by a valid quoted EUnit file descriptor; BEAM read errors propagate.
filter-skipped/1function
filter-skipped/1Keep only exported {Name, 0} pairs recognized by skipped?/1, preserving their input order.
filtered/2function
filtered/2Apply FUNC to BEAMS and remove false results while preserving the remaining result order.
get-arg/2function
get-arg/2Return init:get_argument/1's tagged nested result; if absent, return {default, [[Default]]} rather than Default itself.
get-beam-attrs/1function
get-beam-attrs/1Read the attributes chunk from a readable BEAM file; chunk and read errors propagate.
get-beam-behaviours/1function
get-beam-behaviours/1Return the behavior attribute from a readable BEAM; a missing behavior attribute yields [], while BEAM read or chunk errors propagate.
get-beam-exports/1function
get-beam-exports/1Read exported {Name, Arity} pairs from a readable BEAM file; read and chunk errors propagate.
get-behaviour/1function
get-behaviour/1Read the behavior attribute, preferring behaviour and falling back to behavior; return undefined when neither spelling is present.
get-module-exports/1function
get-module-exports/1Return exports from the BEAM resolved for MODULE on the current code path; the module need not already be loaded.
get-skip-tests/1function
get-skip-tests/1Read skip exports from a valid EUnit file descriptor or quoted module descriptor. Other inputs return []; failures for recognized malformed descriptors or unreadable BEAM files propagate.
module->beam/1function
module->beam/1Return the resolved code-path BEAM path for MODULE without .beam; the module must resolve on the current code path.
modules->beams/1function
modules->beams/1Map modules resolvable on the current code path to unique BEAM path roots.
rebar-debug/1function
rebar-debug/1Delegate to rebar-debug/2 with an empty argument list; when rebar_api is available that function calls rebar_api:debug/2.
rebar-debug/2function
rebar-debug/2Call rebar_api:debug/2 with MSG and ARGS when rebar_api is available; otherwise return undefined.
skip-match?/1function
skip-match?/1Return true for a {match, ...} result and false for nomatch.
skipped?/1function
skipped?/1For a valid {Name, Arity} pair, return true only when NAME is an atom ending in _skip and ARITY is 0. Intended for exported pairs; other input shapes are outside this function's contract.