Expand description
§Assertables: Rust crate of assert macros for testing
Assertables is a Rust crate that provides many assert macros to improve your compile-time tests and run-time reliability.
- Crate: https://crates.io/crates/assertables
- Docs: https://docs.rs/assertables/
- Repo: https://github.com/sixarm/assertables-rust-crate/
- Contact: joel@joelparkerhenderson.com
§Introduction
The Assertables Rust crate provides many assert macros that can help you develop, test, and debug.
- Test values with assert_lt, assert_gt, etc.
- Test strings with assert_starts_with, assert_ends_with, etc.
- Test groups with assert_all, assert_any, etc.
There are many more for results, options, polls, matches, iterators, sets, files, bytes, commands, etc.
To use this crate, add it to your file Cargo.toml:
assertables = "9.1.0"Top benefits:
- You can write better tests to improve reliability and maintainability.
- You can handle more corner cases without needing to write custom code.
- You can troubleshoot faster because error messages show specifics.
Top features:
- Easy to use: everything is well-documented with runnable examples.
- Zero overhead: if you don’t use a macro, then it’s not compiled.
- Multiple forms: for debugging, for results, and for success returns.
Help:
- Documentation
- Frequently asked questions
- Examples
- Upgrade from version 8 to 9
- Comparisons to more_asserts, cool_asserts, assert2, claims, etc.
§Highlights
Values:
assert_eq!(a, b)// a == bassert_ne!(a, b)// a != bassert_lt!(a, b)// a < bassert_le!(a, b)// a <= bassert_gt!(a, b)// a > bassert_ge!(a, b)// a >= b
Differences:
assert_approx_eq!(a, b)// |a-b| <= 1e-6assert_abs_diff_eq!(a, b, delta)// |a-b| == Δassert_in_delta!(a, b, delta)// |a-b| <= Δassert_in_epsilon!(a, b, epsilon)// |a-b| <= ε min(a,b)
Groups for iterators, chars, etc.:
assert_all!(group, predicate)// group.all(predicate)assert_any!(group, predicate)// group.any(predicate)
Infix for order operators, logic operators, etc.:
assert_infix!(a == b)// order operators: == != < <= > >=assert_infix!(a && b)// logic operators: && || ^ & |
Lengths and counts for strings, vectors, iterators, etc.:
assert_len_eq!(item, x)// item.len() == xassert_count_eq!(item, x)// item.count() == xassert_is_empty!(item)// item.is_empty()
Matching:
assert_starts_with!(whole, part)// whole.starts_with(part)assert_ends_with!(whole, part)// whole.ends_with(part)assert_contains!(container, x)// container.contains(x)assert_matches!(expr, pattern)// matches!(expr, pattern)assert_is_match!(matcher, x)// matcher.is_match(x)
Results:
assert_ok!(a)// a is Okassert_ok_eq_x!(a, 1)// a is Ok(1)assert_err!(a)// a is Err
Options:
assert_some!(a)// a is Someassert_some_eq_x!(a, 1)// a is Some(1)assert_none!(a)// a is None
Polls:
assert_ready!(a)// a is Readyassert_ready_eq_x!(a, 1)// a is Ready(1)assert_pending!(a)// a is Pending
Readers:
assert_fs_read_to_string_eq!(a_path, b_path)// read a_path == read b_pathassert_io_read_to_string_eq!(a_bytes, b_bytes)// read a_bytes == read b_bytes
Commands:
assert_command_stdout_eq!(a_command, b_command)// a_command stdout == b_command stdoutassert_program_args_stderr_eq!(a_program, a_args, b_program, b_args)// a_program a_args stderr == b_program b_args stderr
Collections:
assert_iter_eq!(a, b)// a into iter == b into iterassert_set_eq!(a, b)// a into set == b into setassert_bag_eq!(a, b)// a into bag == = b into bag
For a complete list of modules and macros, see the docs
§Forms
The Assertables macros have a variety of forms to help you write the tests that matter most to you.
All the macros have forms for an optional message:
assert_gt!(a, b)// default messageassert_gt!(a, b, "your text")// custom message
All the macros have forms for different outcomes:
assert_gt!(a, b)// panicassert_gt_as_result!(a, b)// return Result, no panicdebug_assert_gt!(a, b)// special use in debug mode
Many of the macros have a “solo” form for comparing one item to an expression, and a “pair” form for comparing two items to each other:
assert_ok_eq!(a, x))// a.unwrap() == xassert_ok_eq!(a, b)// a.unwrap() == b.unwrap()
Many of the macros has a “success return”, which means the macro returns data that you can optionally use for more testing.
let inner = assert_ok!(result)let string = assert_fs_read_to_string_ne!("alfa.txt", "")let stdout = assert_command_stdout_gt!("ls", vec![b' '])
§Tracking
- Package: assertables-rust-crate
- Version: 9.1.0
- Created: 2021-03-30T15:47:49Z
- Updated: 2024-10-29T20:21:37Z
- License: MIT or Apache-2.0 or GPL-2.0 or GPL-3.0 or contact us for more
- Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)
Modules§
- Assert a condition is true.
- Assert for comparing absolute differences.
- Assert every element of the iterator matches a predicate.
- Assert every element of the iterator matches a predicate.
- Assert for approximations.
- Assert for comparing bag collections.
- Assert for comparing commands and their stdout & stderr.
- Assert for a container and a containee.
- Assert for comparing counts.
- Assert for a whole that may end with a part.
- Assert an expression is equal to another expression.
- Assert for Err(…) items.
- Assert for comparing functions.
- Assert for comparing functions that return errors.
- Assert for comparing functions that return Result::Ok.
- Assert for comparing file system path contents.
- Assert an expression is greater than or equal to another expression.
- Assert an expression is greater than another expression.
- Assert in nearness.
- Assert a infix operator, such as assert_infix!(a == b).
- Assert for comparing input/output reader streams.
- Assert for method is_empty().
- Assert for method is_match(…).
- Assert for comparing iter collections.
- Assert an expression is less than or equal to another expression.
- Assert for comparing lengths.
- Assert an expression is less than another expression.
- Assert matches for verifying an item matches a condition.
- Assert an expression is not equal to another expression.
- Assert for None items.
- Assert for Ok(…) items.
- Assert for
Option{Some,None} - Assert for Pending items.
- Assert for
Poll{Ready,Pending} - Assert for comparing programs with arguments.
- Assert for Ready(_) items.
- Assert for
Result{Ok,Err} - Assert for comparing set collections.
- Assert for Some(_) items.
- Assert for a whole that may start with a part.
Macros§
- Assert an absolute difference is equal to a delta expression.
- Assert an absolute difference is equal to a delta expression.
- Assert an absolute difference is greater than or equal to a delta expression.
- Assert an absolute difference is greater than or equal to a delta expression.
- Assert an absolute difference is greater than a delta expression.
- Assert an absolute difference is greater than a delta expression.
- Assert an absolute difference is less than or equal to a delta expression.
- Assert an absolute difference is less than or equal to a delta expression.
- Assert an absolute difference is less than a delta expression.
- Assert an absolute difference is less than a delta expression.
- Assert an absolute difference is not equal to a delta expression.
- Assert an absolute difference is not equal to a delta expression.
- Assert every element of the iterator matches a predicate.
- Assert every element of the iterator matches a predicate.
- Assert every element of the iterator matches a predicate.
- Assert every element of the iterator matches a predicate.
- Assert a number is approximately equal to another number.
- Assert a number is approximately equal to another number.
- Assert a number is approximately not equal to another number.
- Assert a number is approximately not equal to another number.
- Assert a condition is true.
- Assert a bag is equal to another.
- Assert a bag is equal to another.
- Assert bag implementation preparation.
- Assert a bag is not equal to another.
- Assert a bag is not equal to another.
- Assert a bag is a subbag of another.
- Assert a bag is a subbag of another.
- Assert a bag is a superbag of another.
- Assert a bag is a superbag of another.
- assert_
command_ stderr_ contains Deprecated Assert a command stderr string contains a given containee. - assert_
command_ stderr_ contains_ as_ result Deprecated intoassert_command_stderr_string_contains. Assert a command stderr string contains a given containee. - Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to an expression.
- assert_
command_ stderr_ is_ match Deprecated Assert a command stderr string is a match to a regex. - assert_
command_ stderr_ is_ match_ as_ result Deprecated Assert a command stderr string is a match to a regex. - Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string contains a given containee.
- Assert a command stderr string contains a given containee.
- Assert a command stderr string is a match to a regex.
- Assert a command stderr string is a match to a regex.
- assert_
command_ stdout_ contains Deprecated Assert a command stdout string contains a given containee. - assert_
command_ stdout_ contains_ as_ result Deprecated Assert a command stdout string contains a given containee. - Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to an expression.
- assert_
command_ stdout_ is_ match Deprecated Assert a command stdout string is a match to a regex. - assert_
command_ stdout_ is_ match_ as_ result Deprecated Assert a command stdout string is a match to a regex. - Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string contains a given containee.
- Assert a command stdout string contains a given containee.
- Assert a command stdout string is a match to a regex.
- Assert a command stdout string is a match to a regex.
- Assert a container is a match for an expression.
- Assert an expression (such as a string) contains an expression (such as a substring).
- Assert a count is equal to another count.
- Assert a count is equal to another count.
- Assert a count is equal to an expression.
- Assert a count is equal to an expression.
- Assert a count is greater than or equal to another count.
- Assert a count is greater than or equal to another count.
- Assert a count is greater than or equal to an expression.
- Assert a count is greater than or equal to an expression.
- Assert a count is greater than another count.
- Assert a count is greater than another count.
- Assert a count is greater than an expression.
- Assert a count is greater than an expression.
- Assert a count is less than or equal to another count.
- Assert a count is less than or equal to another count.
- Assert a count is less than or equal to an expression.
- Assert a count is less than or equal to an expression.
- Assert a count is less than another count.
- Assert a count is less than another count.
- Assert a count is less than an expression.
- Assert a count is less than an expression.
- Assert a count is equal to another count.
- Assert a count is equal to another count.
- Assert a count is equal to an expression.
- Assert a count is equal to an expression.
- Assert an expression (such as a string) ends with an expression (such as a string).
- Assert an expression (such as a string) ends with an expression (such as a substring).
- Assert an expression is equal to another expression.
- Assert expression is Err.
- Assert expression is Err.
- Assert two expressions are Err and their values are equal.
- Assert two expressions are Err and their values are equal.
- Assert an expression is Err and its value is equal to an expression.
- Assert an expression is Err and its value is equal to an expression.
- Assert two expressions are Err and their values are not equal.
- Assert two expressions are Err and their values are not equal.
- Assert an expression is Err and its value is equal to an expression.
- Assert an expression is Err and its value is equal to an expression.
- Assert a function output is equal to another function output.
- Assert a function output is equal to another function output.
- Assert a function output is equal to an expression.
- Assert a function output is equal to an expression.
- Assert a function error is equal to another.
- Assert a function error is equal to another.
- Assert a function error is equal to an expression.
- Assert a function error is equal to an expression.
- Assert a function error is greater than or equal to another.
- Assert a function error is greater than or equal to another.
- Assert a function error is greater than or equal to an expression.
- Assert a function error is greater than or equal to an expression.
- Assert a function error is greater than another.
- Assert a function error is greater than another.
- Assert a function error is greater than an expression.
- Assert a function error is greater than an expression.
- Assert a function error is less than or equal to another.
- Assert a function error is less than or equal to another.
- Assert a function error is less than or equal to an expression.
- Assert a function error is less than or equal to an expression.
- Assert a function error is less than another.
- Assert a function error is less than another.
- Assert a function error is less than an expression.
- Assert a function error is less than an expression.
- Assert a function error is not equal to another.
- Assert a function error is not equal to another.
- Assert a function error is not equal to an expression.
- Assert a function error is not equal to an expression.
- Assert a function output is greater than or equal to another.
- Assert a function output is greater than or equal to another.
- Assert a function output is greater than or equal to an expression.
- Assert a function output is greater than or equal to an expression.
- Assert a function output is greater than another.
- Assert a function output is greater than another.
- Assert a function output is greater than an expression.
- Assert a function output is greater than an expression.
- Assert a function output is less than or equal to another.
- Assert a function output is less than or equal to another.
- Assert a function output is less than or equal to an expression.
- Assert a function output is less than or equal to an expression.
- Assert a function output is less than another.
- Assert a function output is less than another.
- Assert a function output is less than an expression.
- Assert a function output is less than an expression.
- Assert a function output is not equal to another.
- Assert a function output is not equal to another.
- Assert a function output is not equal to an expression.
- Assert a function output is not equal to an expression.
- Assert a function Ok(…) is equal to another.
- Assert a function Ok(…) is equal to another.
- Assert a function Ok(…) is equal to an expression.
- Assert a function Ok(…) is equal to an expression.
- Assert a function Ok(…) is greater than or equal to another.
- Assert a function Ok(…) is greater than or equal to another.
- Assert a function Ok(…) is greater than or equal to an expression.
- Assert a function Ok(…) is greater than or equal to an expression.
- Assert a function Ok(…) is greater than another.
- Assert a function Ok(…) is greater than another.
- Assert a function Ok(…) is greater than an expression.
- Assert a function Ok(…) is greater than an expression.
- Assert a function Ok(…) is less than or equal to another.
- Assert a function Ok(…) is less than or equal to another.
- Assert a function Ok(…) is less than or equal to an expression.
- Assert a function Ok(…) is less than or equal to an expression.
- Assert a function Ok(…) is less than another.
- Assert a function Ok(…) is less than another.
- Assert a function Ok(…) is less than an expression.
- Assert a function Ok(…) is less than an expression.
- Assert a function Ok(…) is not equal to another.
- Assert a function Ok(…) is not equal to another.
- Assert a function Ok(…) is not equal to an expression.
- Assert a function Ok(…) is not equal to an expression.
- Assert a ::std::fs::read_to_string(path) contains a pattern.
- Assert a ::std::fs::read_to_string(path) contains a pattern.
- Assert a ::std::fs::read_to_string(path) value is equal to another.
- Assert a ::std::fs::read_to_string(path) is equal to another.
- Assert a ::std::fs::read_to_string(path) value is equal to an expression.
- Assert a ::std::fs::read_to_string(path) value is equal to an expression.
- Assert a ::std::fs::read_to_string(path) value is greater than or equal to another.
- Assert a ::std::fs::read_to_string(path) value is greater than or equal to another.
- Assert a ::std::fs::read_to_string(path) value is greater than or equal to an expression.
- Assert a ::std::fs::read_to_string(path) value is greater than or equal to an expression.
- Assert a ::std::fs::read_to_string(path) value is greater than another.
- Assert a ::std::fs::read_to_string(path) value is greater than another.
- Assert a ::std::fs::read_to_string(path) value is greater than an expression.
- Assert a ::std::fs::read_to_string(path) value is greater than an expression.
- Assert a ::std::fs::read_to_string(path) is a match to a regex.
- Assert a ::std::fs::read_to_string(path) is a match to a regex.
- Assert a ::std::fs::read_to_string(path) value is less than or equal to another.
- Assert a ::std::fs::read_to_string(path) value is less than or equal to another.
- Assert a ::std::fs::read_to_string(path) value is less than or equal to an expression.
- Assert a ::std::fs::read_to_string(path) value is less than or equal to an expression.
- Assert a ::std::fs::read_to_string(path) value is less than another.
- Assert a ::std::fs::read_to_string(path) value is less than another.
- Assert a ::std::fs::read_to_string(path) value is less than an expression.
- Assert a ::std::fs::read_to_string(path) value is less than an expression.
- assert_
fs_ read_ to_ string_ matches Deprecated Assert a ::std::fs::read_to_string(path) is a match to a regex. - Assert a ::std::fs::read_to_string(path) is a match to a regex.
- Assert a ::std::fs::read_to_string(path) is not equal to another.
- Assert a ::std::fs::read_to_string(path) is not equal to another.
- Assert a ::std::fs::read_to_string(path) is not equal to an expression.
- Assert a ::std::fs::read_to_string(path) is not equal to an expression.
- Assert an expression is greater than or equal to another expression.
- Assert an expression is greater than or equal to another expression.
- Assert an expression is greater than another expression.
- Assert an expression is greater than another expression.
- Assert a number is within delta of another number.
- Assert a number is within delta of another number.
- Assert a number is within epsilon of another number.
- Assert a number is within epsilon of another number.
- Assert a infix operator, such as assert_infix!(a == b).
- Assert a infix operator, such as assert_infix!(a == b).
- Assert a ::std::io::Read read_to_string() contains a pattern.
- Assert a ::std::io::Read read_to_string() contains a pattern.
- Assert a ::std::io::Read read_to_string() value is equal to another.
- Assert a ::std::io::Read read_to_string() is equal to another.
- Assert a ::std::io::Read read_to_string() value is equal to an expression.
- Assert a ::std::io::Read read_to_string() value is equal to an expression.
- Assert a ::std::io::Read read_to_string() value is greater than or equal to another.
- Assert a ::std::io::Read read_to_string() value is greater than or equal to another.
- Assert a ::std::io::Read read_to_string() value is greater than or equal to an expression.
- Assert a ::std::io::Read read_to_string() value is greater than or equal to an expression.
- Assert a ::std::io::Read read_to_string() value is greater than another.
- Assert a ::std::io::Read read_to_string() value is greater than another.
- Assert a ::std::io::Read read_to_string() value is greater than an expression.
- Assert a ::std::io::Read read_to_string() value is greater than an expression.
- Assert a ::std::io::Read read_to_string() is a match to a regex.
- Assert a ::std::io::Read read_to_string() is a match to a regex.
- Assert a ::std::io::Read read_to_string() value is less than or equal to another.
- Assert a ::std::io::Read read_to_string() value is less than or equal to another.
- Assert a ::std::io::Read read_to_string() value is less than or equal to an expression.
- Assert a ::std::io::Read read_to_string() value is less than or equal to an expression.
- Assert a ::std::io::Read read_to_string() value is less than another.
- Assert a ::std::io::Read read_to_string() value is less than another.
- Assert a ::std::io::Read read_to_string() value is less than an expression.
- Assert a ::std::io::Read read_to_string() value is less than an expression.
- assert_
io_ read_ to_ string_ matches Deprecated Assert a ::std::io::read_to_string(path) is a match to a regex. - Assert a ::std::io::read_to_string(path) is a match to a regex.
- Assert a ::std::io::Read read_to_string() is not equal to another.
- Assert a ::std::io::Read read_to_string() is not equal to another.
- Assert a ::std::io::Read read_to_string() is not equal to an expression.
- Assert a ::std::io::Read read_to_string() is not equal to an expression.
- Assert an expression (such as a string or array) is empty.
- Assert an expression (such as a regex) is a match for an expression (such as a string).
- Assert a matcher is a match for an expression.
- Assert an expression (such as a regex) is a match for an expression (such as a string).
- Assert an iterable is equal to another.
- Assert an iterable is equal to another.
- Assert an iterable is greater than or equal to another.
- Assert an iterable is greater than or equal to another.
- Assert an iterable is greater than another.
- Assert an iterable is greater than another.
- Assert an iterable is less than or equal to another.
- Assert an iterable is less than or equal to another.
- Assert an iterable is less than another.
- Assert an iterable is less than another.
- Assert an iterable is not equal to another.
- Assert an iterable is not equal to another.
- Assert an expression is less than or equal to another expression.
- Assert an expression is less than or equal to another expression.
- Assert a length is equal to another length.
- Assert a length is equal to another length.
- Assert a length is equal to an expression.
- Assert a length is equal to an expression.
- Assert a length is greater than or equal to another length.
- Assert a length is greater than or equal to another length.
- Assert a length is greater than or equal to an expression.
- Assert a length is greater than or equal to an expression.
- Assert a length is greater than another length.
- Assert a length is greater than another length.
- Assert a length is greater than an expression.
- Assert a length is greater than an expression.
- Assert a length is less than or equal to another length.
- Assert a length is less than or equal to another length.
- Assert a length is less than or equal to an expression.
- Assert a length is less than or equal to an expression.
- Assert a length is less than another length.
- Assert a length is less than another length.
- Assert a length is less than an expression.
- Assert a length is less than an expression.
- Assert a length is equal to another length.
- Assert a length is equal to another length.
- Assert a length is equal to an expression.
- Assert a length is equal to an expression.
- Assert an expression is less than another expression.
- Assert an expression is less than another expression.
- Assert expression is Some.
- Assert expression matches a case.
- Assert an expression is not equal to another expression.
- Assert expression is None.
- Assert an expression is None.
- Assert an expression (such as a string) does not contain an expression (such as a substring).
- Assert an expression (such as a string) does not contain an expression (such as a substring).
- Assert an expression (such as a string or array) is not empty.
- Assert an expression (such as a string or array) is not empty.
- Assert an expression (such as a string) does not end with an expression (such as a string).
- Assert an expression (such as a string) does not end with an expression (such as a substring).
- Assert an expression (such as a regex) is not a match for an expression (such as a string).
- Assert an expression (such as a regex) is not a match for an expression (such as a string).
- Assert expression is Some.
- Assert expression matches a case.
- Assert an expression (such as a string) does not start with an expression (such as a string).
- Assert an expression (such as a string) does not start with an expression (such as a substring).
- Assert expression is Ok.
- Assert expression is Ok.
- Assert two expressions are Ok and their values are equal.
- Assert two expressions are Ok and their values are equal.
- Assert an expression is Ok and its value is equal to an expression.
- Assert an expression is Ok and its value is equal to an expression.
- Assert two expressions are Ok and their values are not equal.
- Assert two expressions are Ok and their values are not equal.
- Assert an expression is Ok and its value is equal to an expression.
- Assert an expression is Ok and its value is equal to an expression.
- assert_
option_ none Deprecated Assert expression is None. - assert_
option_ none_ as_ result Deprecated Assert expression is None. - assert_
option_ some Deprecated Assert expression is Some. - assert_
option_ some_ as_ result Deprecated Assert expression is Some. - assert_
option_ some_ eq Deprecated Assert two expressions are Some and their values are equal. - assert_
option_ some_ eq_ as_ result Deprecated Assert two expressions are Some and their values are equal. - assert_
option_ some_ ne Deprecated Assert two expressions are Some and their values are not equal. - assert_
option_ some_ ne_ as_ result Deprecated Assert two expressions are Some and their values are not equal. - Assert an expression is Pending.
- Assert an expression.is_pending() is true.
- assert_
poll_ pending Deprecated Assert an expression is Pending. - assert_
poll_ pending_ as_ result Deprecated Assert an expression.is_pending() is true. - assert_
poll_ ready Deprecated Assert an expression is Ready. - assert_
poll_ ready_ as_ result Deprecated Assert an expression is Ready. - assert_
poll_ ready_ eq Deprecated Assert two expressions are Ready(_) and their values are equal. - assert_
poll_ ready_ eq_ as_ result Deprecated Assert two expressions are Ready(_) and their values are equal. - assert_
poll_ ready_ ne Deprecated Assert two expressions are Ready(_) and their values are not equal. - assert_
poll_ ready_ ne_ as_ result Deprecated Assert two expressions are Ready(_) and their values are not equal. - Assert program args implementation preparation.
- assert_
program_ args_ stderr_ contains Deprecated Assert a command (built with program and args) stderr string contains a given containee. - Assert a command (built with program and args) stderr string contains a given containee.
- Assert a command (built with program and args) stderr string is equal to another.
- Assert a command (built with program and args) stderr string is equal to another.
- Assert a command (built with program and args) stderr string is equal to an expression.
- Assert a command (built with program and args) stderr string is equal to an expression.
- Assert a command (built with program and args) stderr string is greater than or equal to another.
- Assert a command (built with program and args) stderr string is greater than or equal to another.
- Assert a command (built with program and args) stderr string is greater than or equal to an expression.
- Assert a command (built with program and args) stderr string is greater than or equal to an expression.
- Assert a command (built with program and args) stderr string is greater than to another.
- Assert a command (built with program and args) stderr string is greater than another.
- Assert a command (built with program and args) stderr string is greater than an expression.
- Assert a command (built with program and args) stderr string is greater than an expression.
- assert_
program_ args_ stderr_ is_ match Deprecated Assert a command (built with program and args) stderr string is a match to a regex. - Assert a command (built with program and args) stderr string is a match to a regex.
- Assert a command (built with program and args) stderr string is less than or equal to another.
- Assert a command (built with program and args) stderr string is less than or equal to another.
- Assert a command (built with program and args) stderr string is less than or equal to an expression.
- Assert a command (built with program and args) stderr string is less than or equal to an expression.
- Assert a command (built with program and args) stderr string is less than another.
- Assert a command (built with program and args) stderr string is less than another.
- Assert a command (built with program and args) stderr string is less than an expression.
- Assert a command (built with program and args) stderr string is less than an expression.
- Assert a command (built with program and args) stderr string is not equal to another.
- Assert a command (built with program and args) stderr string is not equal to another.
- Assert a command (built with program and args) stderr string is not equal to an expression.
- Assert a command (built with program and args) stderr string is not equal to an expression.
- Assert a command (built with program and args) stderr string contains a given containee.
- Assert a command (built with program and args) stderr string contains a given containee.
- Assert a command (built with program and args) stderr string is a match to a regex.
- Assert a command (built with program and args) stderr string is a match to a regex.
- assert_
program_ args_ stdout_ contains Deprecated Assert a command (built with program and args) stdout string contains a given containee. - Assert a command (built with program and args) stdout string contains a given containee.
- Assert a command (built with program and args) stdout string is equal to another.
- Assert a command (built with program and args) stdout string is equal to another.
- Assert a command (built with program and args) stdout string is equal to an expression.
- Assert a command (built with program and args) stdout string is equal to an expression.
- Assert a command (built with program and args) stdout string is greater than or equal to another.
- Assert a command (built with program and args) stdout string is greater than or equal to another.
- Assert a command (built with program and args) stdout string is greater than or equal to an expression.
- Assert a command (built with program and args) stdout string is greater than or equal to an expression.
- Assert a command (built with program and args) stdout string is greater than another.
- Assert a command (built with program and args) stdout string is greater than to another.
- Assert a command (built with program and args) stdout string is greater than an expression.
- Assert a command (built with program and args) stdout string is greater than an expression.
- assert_
program_ args_ stdout_ is_ match Deprecated Assert a command (built with program and args) stdout string is a match to a regex. - Assert a command (built with program and args) stdout string is a match to a regex.
- Assert a command (built with program and args) stdout string is less than or equal to another.
- Assert a command (built with program and args) stdout string is less than or equal to another.
- Assert a command (built with program and args) stdout string is less than or equal to an expression.
- Assert a command (built with program and args) stdout string is less than or equal to an expression.
- Assert a command (built with program and args) stdout string is less than another.
- Assert a command (built with program and args) stdout string is less than another.
- Assert a command (built with program and args) stdout string is less than an expression.
- Assert a command (built with program and args) stdout string is less than an expression.
- Assert a command (built with program and args) stdout string is not equal to another.
- Assert a command (built with program and args) stdout string is not equal to another.
- Assert a command (built with program and args) stdout string is not equal to an expression.
- Assert a command (built with program and args) stdout string is not equal to an expression.
- Assert a command (built with program and args) stdout string contains a given containee.
- Assert a command (built with program and args) stdout string contains a given containee.
- Assert a command (built with program and args) stdout string is a match to a regex.
- Assert a command (built with program and args) stdout string is a match to a regex.
- Assert an expression is Ready.
- Assert an expression is Ready.
- Assert two expressions are Ready and their values are equal.
- Assert two expressions are Ready and their values are equal.
- Assert an expression is Ready and its value is equal to an expression.
- Assert an expression is Ready and its value is equal to an expression.
- Assert two expressions are Ready and their values are not equal.
- Assert two expressions are Ready and their values are not equal.
- Assert an expression is Ready and its value is not equal to an expression.
- Assert an expression is Ready and its value is not equal to an expression.
- assert_
result_ err Deprecated Assert expression is Err. - assert_
result_ err_ as_ result Deprecated Assert expression is Err. - assert_
result_ ok Deprecated Assert expression is Ok. - assert_
result_ ok_ as_ result Deprecated Assert expression is Ok. - assert_
result_ ok_ eq Deprecated Assert two expressions are Ok and their values are equal. - assert_
result_ ok_ eq_ as_ result Deprecated Assert two expressions are Ok and their values are equal. - assert_
result_ ok_ ne Deprecated Assert two expressions are Ok and their values are not equal. - assert_
result_ ok_ ne_ as_ result Deprecated Assert two expressions are Ok and their values are not equal. - Assert a set is disjoint with another.
- Assert a set is disjoint with another.
- Assert a set is equal to another.
- Assert a set is equal to another.
- Assert set implementation preparation.
- Assert a set is joint with another.
- Assert a set is joint with another.
- Assert a set is not equal to another.
- Assert a set is not equal to another.
- Assert a set is a subset of another.
- Assert a set is a subset of another.
- Assert a set is a superset of another.
- Assert a set is a superset of another.
- Assert expression is Some.
- Assert an expression.is_some() is true.
- Assert two expressions are Some and their values are equal.
- Pseudocode:
(a ⇒ Some(a1) ⇒ a1) = (b ⇒ Some(b1) ⇒ b1) - Assert an expression is Some and its value is equal to an expression.
- Assert a.is_some() and a.unwrap() are equal to another.
- Assert two expressions are Some and their values are not equal.
- Assert two expressions are Some and their values are not equal.
- Assert an expression is Some and its value is not equal to an expression.
- Assert a.is_some() and a.unwrap() are equal to another.
- Assert an expression (such as a string) starts with an expression (such as a string).
- Assert an expression (such as a string) starts with an expression (such as a substring).
- Assert an absolute difference is equal to a delta expression.
- Assert an absolute difference is greater than or equal to a delta expression.
- Assert an absolute difference is greater than a delta expression.
- Assert an absolute difference is less than or equal to a delta expression.
- Assert an absolute difference is less than a delta expression.
- Assert an absolute difference is not equal to a delta expression.
- Assert every element of the iterator matches a predicate.
- Assert every element of the iterator matches a predicate.
- Assert a number is approximately equal to another number.
- Assert a number is approximately not equal to another number.
- Assert a bag is equal to another.
- Assert a bag is not equal to another.
- Assert a bag is a subbag of another.
- Assert a bag is a superbag of another.
- debug_
assert_ command_ stderr_ contains Deprecated Assert a command stderr string contains a given containee. - Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- debug_
assert_ command_ stderr_ is_ match Deprecated Assert a command stderr string is a match to a regex. - Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string is equal to another.
- Assert a command stderr string is equal to an expression.
- Assert a command stderr string contains a given containee.
- Assert a command stderr string is a match to a regex.
- debug_
assert_ command_ stdout_ contains Deprecated Assert a command stdout string contains a given containee. - Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- debug_
assert_ command_ stdout_ is_ match Deprecated Assert a command stdout string is a match to a regex. - Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string is equal to another.
- Assert a command stdout string is equal to an expression.
- Assert a command stdout string contains a given containee.
- Assert a command stdout string is a match to a regex.
- Assert a container is a match for an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert an expression (such as a string) ends with an expression (such as a string).
- Assert expression is Err.
- Assert two expressions are Err and their values are equal.
- Assert an expression is Err and its value is equal to an expression.
- Assert two expressions are Err and their values are not equal.
- Assert an expression is Err and its value is equal to an expression.
- Assert a function output is equal to another function output.
- Assert a function output is equal to an expression.
- Assert a function error is equal to another.
- Assert a function error is equal to an expression.
- Assert a function error is greater than or equal to another.
- Assert a function error is greater than or equal to an expression.
- Assert a function error is greater than another.
- Assert a function error is greater than an expression.
- Assert a function error is less than or equal to another.
- Assert a function error is less than or equal to an expression.
- Assert a function error is less than another.
- Assert a function error is less than an expression.
- Assert a function error is not equal to another.
- Assert a function error is not equal to an expression.
- Assert a function output is greater than or equal to another.
- Assert a function output is greater than or equal to an expression.
- Assert a function output is greater than another.
- Assert a function output is greater than an expression.
- Assert a function output is less than or equal to another.
- Assert a function output is less than or equal to an expression.
- Assert a function output is less than another.
- Assert a function output is less than an expression.
- Assert a function output is not equal to another.
- Assert a function output is not equal to an expression.
- Assert a function Ok(…) is equal to another.
- Assert a function Ok(…) is equal to an expression.
- Assert a function Ok(…) is greater than or equal to another.
- Assert a function Ok(…) is greater than or equal to an expression.
- Assert a function Ok(…) is greater than another.
- Assert a function Ok(…) is greater than an expression.
- Assert a function Ok(…) is less than or equal to another.
- Assert a function Ok(…) is less than or equal to an expression.
- Assert a function Ok(…) is less than another.
- Assert a function Ok(…) is less than an expression.
- Assert a function Ok(…) is not equal to another.
- Assert a function Ok(…) is not equal to an expression.
- Assert a ::std::fs::read_to_string(path) contains a pattern.
- Assert a ::std::fs::read_to_string(path) value is equal to another.
- Assert a ::std::fs::read_to_string(path) value is equal to an expression.
- Assert a ::std::fs::read_to_string(path) value is greater than or equal to another.
- Assert zzz.
- Assert a ::std::fs::read_to_string(path) value is greater than another.
- Assert a ::std::fs::read_to_string(path) value is greater than an expression.
- Assert a ::std::fs::read_to_string(path) is a match to a regex.
- Assert a ::std::fs::read_to_string(path) value is less than or equal to another.
- Assert a ::std::fs::read_to_string(path) value is less than or equal to an expression.
- Assert a ::std::fs::read_to_string(path) value is less than another.
- Assert a ::std::fs::read_to_string(path) value is less than an expression.
- debug_
assert_ fs_ read_ to_ string_ matches Deprecated Assert a ::std::fs::read_to_string(path) is a match to a regex. - Assert a ::std::fs::read_to_string(path) is not equal to another.
- Assert a ::std::fs::read_to_string(path) is not equal to an expression.
- Assert an expression is greater than or equal to another expression.
- Assert an expression is greater than another expression.
- Assert a number is within delta of another number.
- Assert a number is within epsilon of another number.
- Assert a infix operator, such as assert_infix!(a == b).
- Assert a ::std::io::Read read_to_string() contains a pattern.
- Assert a ::std::io::Read read_to_string() value is equal to another.
- Assert a ::std::io::Read read_to_string() value is equal to an expression.
- Assert a ::std::io::Read read_to_string() value is greater than or equal to another.
- Assert zzz.
- Assert a ::std::io::Read read_to_string() value is greater than another.
- Assert a ::std::io::Read read_to_string() value is greater than an expression.
- Assert a ::std::io::Read read_to_string() is a match to a regex.
- Assert a ::std::io::Read read_to_string() value is less than or equal to another.
- Assert a ::std::io::Read read_to_string() value is less than or equal to an expression.
- Assert a ::std::io::Read read_to_string() value is less than another.
- Assert a ::std::io::Read read_to_string() value is less than an expression.
- debug_
assert_ io_ read_ to_ string_ matches Deprecated Assert a ::std::io::read_to_string(path) is a match to a regex. - Assert a ::std::io::Read read_to_string() is not equal to another.
- Assert a ::std::io::Read read_to_string() is not equal to an expression.
- Assert an expression (such as a string or array) is empty.
- Assert a matcher is a match for an expression.
- Assert an iterable is equal to another.
- Assert an iterable is greater than or equal to another.
- Assert an iterable is greater than another.
- Assert an iterable is less than or equal to another.
- Assert an iterable is less than another.
- Assert an iterable is not equal to another.
- Assert an expression is less than or equal to another expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert a value is greater than an expression.
- Assert an expression is less than another expression.
- Assert expression is Some.
- Assert expression is None.
- Assert an expression (such as a string) does not contain an expression (such as a substring).
- Assert an expression (such as a string or array) is not empty.
- Assert an expression (such as a string) does not end with an expression (such as a string).
- Assert an expression (such as a regex) is not a match for an expression (such as a string).
- Assert expression is Some.
- Assert an expression (such as a string) does not start with an expression (such as a string).
- Assert expression is Ok.
- Assert two expressions are Ok and their values are equal.
- Assert an expression is Ok and its value is equal to an expression.
- Assert two expressions are Ok and their values are not equal.
- Assert an expression is Ok and its value is equal to an expression.
- debug_
assert_ option_ none Deprecated Assert expression is None. - debug_
assert_ option_ some Deprecated Assert expression is Some. - debug_
assert_ option_ some_ eq Deprecated Assert two expressions are Some and their values are equal. - debug_
assert_ option_ some_ ne Deprecated Assert two expressions are Some and their values are not equal. - Assert an expression is Pending.
- debug_
assert_ poll_ pending Deprecated Assert an expression is Pending. - debug_
assert_ poll_ ready Deprecated Assert poll.is_ready() is true. - debug_
assert_ poll_ ready_ eq Deprecated Assert two expressions are Ready(_) and their values are equal. - debug_
assert_ poll_ ready_ ne Deprecated Assert two expressions are Ready(_) and their values are not equal. - Assert a command (built with program and args) stderr string contains a given containee.
- Assert a command (built with program and args) stderr string is equal to another.
- Assert a command (built with program and args) stderr string is equal to an expression.
- Assert a command (built with program and args) stderr string greater than or equal to another.
- Assert a command (built with program and args) stderr string is greater than or equal to an expression.
- Assert a command (built with program and args) stderr string is equal to another.
- Assert a command (built with program and args) stderr string is greater than an expression.
- Assert a command (built with program and args) stderr string is a match to a regex.
- Assert a command (built with program and args) stderr string is less than or equal to another.
- Assert a command (built with program and args) stderr string is equal to an expression.
- Assert a command (built with program and args) stderr string is less than another.
- Assert a command (built with program and args) stderr string is less than an expression.
- Assert a command (built with program and args) stderr string is not equal to another.
- Assert a command (built with program and args) stderr string is not equal to an expression.
- Assert a command (built with program and args) stderr string contains a given containee.
- Assert a command (built with program and args) stderr string is a match to a regex.
- Assert a command (built with program and args) stdout string contains a given containee.
- Assert a command (built with program and args) stdout string is equal to another.
- Assert a command (built with program and args) stdout string is equal to an expression.
- Assert a command (built with program and args) stdout string is greater than or equal to another.
- Assert a command (built with program and args) stdout string is greater than or equal to an expression.
- Assert a command (built with program and args) stdout string is greater than another.
- Assert a command (built with program and args) stdout string is greater than an expression.
- Assert a command (built with program and args) stdout string is a match to a regex.
- Assert a command (built with program and args) stdout string is less than or equal to another.
- Assert a command (built with program and args) stdout string is less than or equal to an expression.
- Assert a command (built with program and args) stdout string is less than another.
- Assert a command (built with program and args) stdout string is less than an expression.
- Assert a command (built with program and args) stdout string is not equal to another.
- Assert a command (built with program and args) stdout string is not equal to an expression.
- Assert a command (built with program and args) stdout string contains a given containee.
- Assert a command (built with program and args) stdout string is a match to a regex.
- Assert an expression is Ready.
- Assert two expressions are Ready and their values are equal.
- Assert an expression is Ready and its value is equal to an expression.
- Assert two expressions are Ready and their values are not equal.
- Assert an expression is Ready and its value is not equal to an expression.
- debug_
assert_ result_ err Deprecated Assert expression is Err. - debug_
assert_ result_ ok Deprecated Assert expression is Ok. - debug_
assert_ result_ ok_ eq Deprecated Assert two expressions are Ok and their values are equal. - debug_
assert_ result_ ok_ ne Deprecated Assert two expressions are Ok and their values are not equal. - Assert a set is disjoint with another.
- Assert a set is equal to another.
- Assert a set is joint with another.
- Assert a set is not equal to another.
- Assert a set is a subset of another.
- Assert a set is a superset of another.
- Assert expression is Some.
- Assert two expressions are Some and their values are equal.
- Assert an expression is Some and its value is equal to an expression.
- Assert two expressions are Some and their values are not equal.
- Assert an expression is Some and its value is not equal to an expression.
- Assert an expression (such as a string) starts with an expression (such as a string).