metamon/transform
Named, deterministic input transformations. The name is surfaced
in failure messages so a metamorphic relation always reports which
transformation produced the follow-up input.
Types
Values
pub fn constant(name: String, value: a) -> Transform(a)
A transform that ignores its input and always returns value.
Use sparingly — most metamorphic relations want a real
transformation rather than a constant.
pub fn new(name: String, apply: fn(a) -> a) -> Transform(a)
Construct a transform from a name and a function.
pub fn rename(t: Transform(a), name: String) -> Transform(a)
Override the name of a transform. The behaviour of apply is not
changed — only the label that appears in failure reports.