Skip to main content

Module testing

Module testing 

Source

Constants§

DEFAULT_TEXT_SNAPSHOT_CHARACTER_LIMIT
Limit how many characters we persist/compare for large text snapshots.
REWRITE_SERIALISED_JSON_MAX_LINES
Limit how many lines of the rewrite serialisation we persist/compare in integration tests.

Functions§

assert_eq_any_order
minion_solutions_from_json
read_default_rule_trace
Reads a default rule trace text file.
read_model_json
read_model_json_prefix
Reads only the first max_lines from a serialised model JSON file.
read_solutions_essence
save_model_json
save_solutions_essence
Writes solutions in Conjure’s multi-solution Essence format.
save_stats_json
serialize_domains
serialize_model
truncate_to_first_chars