hexpm/ltest0.14.0ldoc

ltest-util

Inspect BEAM files and provide shared test-discovery and reporting helpers.

--loaded-ltest-records--/0function

--loaded-ltest-records--/0

Return 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/1

Sum the ok, skip, fail, err, and cancel counters in listener state.

beam->module/1function

beam->module/1

Read 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/1

Append .beam to each basename; for {Module, Basename} tuples, preserve Module and append the suffix to Basename.

beams->modules/1function

beams->modules/1

Read each module atom from a readable BEAM path; read errors propagate.

binary-mod->atom/1function

binary-mod->atom/1

Convert 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/1

Convert 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/1

Extract a BEAM path root from a valid quoted EUnit file descriptor; the returned path omits the .beam suffix.

file->module/1function

file->module/1

Read the module atom from the BEAM named by a valid quoted EUnit file descriptor; BEAM read errors propagate.

filter-skipped/1function

filter-skipped/1

Keep only exported {Name, 0} pairs recognized by skipped?/1, preserving their input order.

filtered/2function

filtered/2

Apply FUNC to BEAMS and remove false results while preserving the remaining result order.

get-arg/2function

get-arg/2

Return init:get_argument/1's tagged nested result; if absent, return {default, [[Default]]} rather than Default itself.

get-beam-attrs/1function

get-beam-attrs/1

Read the attributes chunk from a readable BEAM file; chunk and read errors propagate.

get-beam-behaviours/1function

get-beam-behaviours/1

Return 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/1

Read exported {Name, Arity} pairs from a readable BEAM file; read and chunk errors propagate.

get-behaviour/1function

get-behaviour/1

Read the behavior attribute, preferring behaviour and falling back to behavior; return undefined when neither spelling is present.

get-module-exports/1function

get-module-exports/1

Return 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/1

Read 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/1

Return the resolved code-path BEAM path for MODULE without .beam; the module must resolve on the current code path.

modules->beams/1function

modules->beams/1

Map modules resolvable on the current code path to unique BEAM path roots.

rebar-debug/1function

rebar-debug/1

Delegate 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/2

Call rebar_api:debug/2 with MSG and ARGS when rebar_api is available; otherwise return undefined.

skip-match?/1function

skip-match?/1

Return true for a {match, ...} result and false for nomatch.

skipped?/1function

skipped?/1

For 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.