KogenCredo.CoreSupport.Tests (KogenCredo v0.1.0)
View SourceExUnit-source helpers shared by the test-quality checks.
A test block is a test "name" do ... end call; an assertion is a call to
assert, refute, assert_* or refute_*. This is purely name-based.
Summary
Functions
Name-based assertion test.
Assertion calls in the AST as {name, args, meta}.
All test blocks with a body, as %{name: ast, meta: keyword, body: ast}.
True when the filename ends with one of the suffixes (default test file suffix is _test.exs).
Unwraps a trailing {:__block__, _, [expr]}.
Functions
Name-based assertion test.
Assertion calls in the AST as {name, args, meta}.
All test blocks with a body, as %{name: ast, meta: keyword, body: ast}.
True when the filename ends with one of the suffixes (default test file suffix is _test.exs).
Unwraps a trailing {:__block__, _, [expr]}.