rebar3_mutate_runner (rebar3_mutate v0.5.0)

View Source

Summary

Types

test_spec/0

-type test_spec() :: eunit | {ct, atom()}.

verdict/0

-type verdict() :: killed | survived | timed_out | {compile_error, term()} | {skipped, term()}.

Functions

compile_mutant(Module, MutatedForms)

-spec compile_mutant(atom(), [erl_parse:abstract_form()]) -> {ok, binary()} | {compile_error, term()}.

has_tests(Module, _)

-spec has_tests(atom(), test_spec()) -> boolean().

load_and_test(Module, Binary, TestSpec, Timeout)

-spec load_and_test(atom(), binary(), test_spec(), pos_integer()) -> verdict().

run_baseline(Module, TestSpec, Timeout)

-spec run_baseline(atom(), test_spec(), pos_integer()) ->
                      {ok, non_neg_integer()} | no_tests | {failed, term()}.

run_mutant(Module, MutatedForms, TestSpec, Timeout)

-spec run_mutant(atom(), [erl_parse:abstract_form()], test_spec(), pos_integer()) -> verdict().