Raxol.Journal.Test.MutationAnchor (Raxol Journal v2.8.0)

Copy Markdown View Source

The anchor check of a mutation-control checklist: the line a control tells a reader to mutate must still exist verbatim in the source.

For ExUnit suites: a missing anchor fails the calling test.

Summary

Functions

Fail unless the file at path still contains fragment. mutation and must_fail are the control's own text, repeated in the failure message.

Functions

assert_anchor!(path, fragment, mutation, must_fail)

@spec assert_anchor!(Path.t(), String.t(), String.t(), String.t()) :: true

Fail unless the file at path still contains fragment. mutation and must_fail are the control's own text, repeated in the failure message.