Lines Matching +full:formatting +full:- +full:error +full:- +full:messages
8 assertions that are easy to understand and give actionable error messages.
10 The basic way it works is wrapping a value in a type-specific object that
11 provides type-specific assertion methods. This style provides several benefits:
15 * Error messages with more informative context
16 * Promotes code reuses at the type-level.
36 access sub-values of it, or otherwise augment interacting with the wrapped
52 easier to, for example, ignore a platform-specific file extension.
56 does, which allows for more intelligible error messages.
72 For top-level subjects, a method named `that_foo()` should be added to the
75 For child-subjects, an appropriately named method should be added to the
83 child-subjects for other cases.
89 the provided error message information. Otherwise an assertion is free to
94 For example, `contains_flag("--foo")` -- does this check that "--flag" was
98 values, comparing them, and generating error messages. Helpers of particular
101 * `_check_*`: These functions implement comparison, error formatting, and
102 error reporting.
105 * `_format_failure_*`: These functions create human-friendly messages