Crate assertables

Source
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.

§Introduction

The Assertables Rust crate provides many assert macros that can help you develop, test, and debug.

To use this crate, add it to your file Cargo.toml:

assertables = "9.5.0"

Benefits:

  • You will write better tests to improve reliability and maintainability.
  • You will handle more corner cases without needing to write custom code.
  • You will troubleshoot faster because error messages show more detail.

Learning: FAQ, docs, examples, changes, upgrades, developing.

Comparisons: more_asserts, cool_asserts, assert2, claims, etc.

§Examples

Examples with numbers:

let i = 1;
assert_lt!(i, 5);
assert_in_range!(i, 1..5);
assert_abs_diff_eq!(i, 5, 4);

Examples with strings:

let s = "hello";
assert_starts_with!(s, "h");
assert_contains!(s, "e");
assert_is_match!(Regex::new(r"h.*o").unwrap(), s);

Examples with arrays:

let a = [1, 2, 3];
assert_not_empty!(a);
assert_len_eq_x!(a, 3);
assert_all!(a.into_iter(), |i: i32| i < 4);

§Highlights

Values:

Nearness:

Groups:

Matching:

Results:

Options:

Polls:

Collections:

Readers:

Commands:

Status:

Infix:

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:

All the macros have forms for different outcomes:

Many of the macros have a form “compare left item to right item” that compares items of the same kind, and a form “compare left item to right expression” that compares one item to any arbitrary expression:

Many of the macros has a “success return”, which means the macro returns data that you can optionally use for more testing.

§Tracking

  • Package: assertables-rust-crate
  • Version: 9.5.1
  • Created: 2021-03-30T15:47:49Z
  • Updated: 2025-03-08T16:14:34Z
  • 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
Assert a condition is true.
assert_abs_diff
Assert for comparing absolute differences.
assert_all
Assert every element of the iterator matches a predicate.
assert_any
Assert every element of the iterator matches a predicate.
assert_approx
Assert for approximations.
assert_bag
Assert for comparing bag collections.
assert_command
Assert for comparing commands and their stdout & stderr.
assert_contains
Assert for a container and a containee.
assert_count
Assert for comparing counts.
assert_diff
Assert for comparing delta differences.
assert_ends_with
Assert for a sequence that may end with a part.
assert_eq
Assert an expression is equal to another.
assert_err
Assert for Err(…) items.
assert_fn
Assert for comparing functions.
assert_fn_err
Assert for comparing functions that return errors.
assert_fn_ok
Assert for comparing functions that return Result::Ok.
assert_fs_read_to_string
Assert for comparing file system path contents.
assert_ge
Assert an expression is greater than or equal to another.
assert_gt
Assert an expression is greater than another.
assert_in
Assert in nearness.
assert_infix
Assert a infix operator, such as assert_infix!(a == b).
assert_io_read_to_string
Assert for comparing input/output reader streams.
assert_is_empty
Assert for method is_empty().
assert_is_match
Assert for method is_match(…).
assert_iter
Assert for comparing iter collections.
assert_le
Assert an expression is less than or equal to another.
assert_len
Assert for comparing lengths.
assert_lt
Assert an expression is less than another.
assert_matches
Assert matches for verifying an item matches a condition.
assert_ne
Assert an expression is not equal to another.
assert_none
Assert for None items.
assert_ok
Assert for Ok(…) items.
assert_option
Assert for Option {Some, None}
assert_pending
Assert for Pending items.
assert_poll
Assert for Poll {Ready, Pending}
assert_program_args
Assert for comparing programs with arguments.
assert_ready
Assert for Ready(_) items.
assert_result
Assert for Result {Ok, Err}
assert_set
Assert for comparing set collections.
assert_some
Assert for Some(_) items.
assert_starts_with
Assert for a sequence that may start with a part.
assert_status
Assert for comparing status concepts.
assert_success
Assert a success method is true.

Macros§

assert_abs_diff_eqDeprecated
Assert an absolute difference is equal to an expression.
assert_abs_diff_eq_as_resultDeprecated
Assert an absolute difference is equal to an expression.
assert_abs_diff_eq_x
Assert an absolute difference is equal to an expression.
assert_abs_diff_eq_x_as_result
Assert an absolute difference is equal to an expression.
assert_abs_diff_geDeprecated
Assert an absolute difference is greater than or equal to an expression.
assert_abs_diff_ge_as_resultDeprecated
Assert an absolute difference is greater than or equal to an expression.
assert_abs_diff_ge_x
Assert an absolute difference is greater than or equal to an expression.
assert_abs_diff_ge_x_as_result
Assert an absolute difference is greater than or equal to an expression.
assert_abs_diff_gtDeprecated
Assert an absolute difference is greater than an expression.
assert_abs_diff_gt_as_resultDeprecated
Assert an absolute difference is greater than an expression.
assert_abs_diff_gt_x
Assert an absolute difference is greater than an expression.
assert_abs_diff_gt_x_as_result
Assert an absolute difference is greater than an expression.
assert_abs_diff_leDeprecated
Assert an absolute difference is less than or equal to an expression.
assert_abs_diff_le_as_resultDeprecated
Assert an absolute difference is less than or equal to an expression.
assert_abs_diff_le_x
Assert an absolute difference is less than or equal to an expression.
assert_abs_diff_le_x_as_result
Assert an absolute difference is less than or equal to an expression.
assert_abs_diff_ltDeprecated
Assert an absolute difference is less than an expression.
assert_abs_diff_lt_as_resultDeprecated
Assert an absolute difference is less than an expression.
assert_abs_diff_lt_x
Assert an absolute difference is less than an expression.
assert_abs_diff_lt_x_as_result
Assert an absolute difference is less than an expression.
assert_abs_diff_neDeprecated
Assert an absolute difference is not equal to an expression.
assert_abs_diff_ne_as_resultDeprecated
Assert an absolute difference is not equal to an expression.
assert_abs_diff_ne_x
Assert an absolute difference is not equal to an expression.
assert_abs_diff_ne_x_as_result
Assert an absolute difference is not equal to an expression.
assert_all
Assert every element of the iterator matches a predicate.
assert_all_as_result
Assert every element of the iterator matches a predicate.
assert_any
Assert every element of the iterator matches a predicate.
assert_any_as_result
Assert every element of the iterator matches a predicate.
assert_approx_eq
Assert a number is approximately equal to another.
assert_approx_eq_as_result
Assert a number is approximately equal to another.
assert_approx_ne
Assert a number is approximately not equal to another.
assert_approx_ne_as_result
Assert a number is approximately not equal to another.
assert_as_result
Assert a condition is true.
assert_bag_eq
Assert a bag is equal to another.
assert_bag_eq_as_result
Assert a bag is equal to another.
assert_bag_impl_prep
Assert bag implementation preparation.
assert_bag_ne
Assert a bag is not equal to another.
assert_bag_ne_as_result
Assert a bag is not equal to another.
assert_bag_subbag
Assert a bag is a subbag of another.
assert_bag_subbag_as_result
Assert a bag is a subbag of another.
assert_bag_superbag
Assert a bag is a superbag of another.
assert_bag_superbag_as_result
Assert a bag is a superbag of another.
assert_command_stderr_containsDeprecated
Assert a command stderr string contains a given containee.
assert_command_stderr_contains_as_resultDeprecated
into assert_command_stderr_string_contains. Assert a command stderr string contains a given containee.
assert_command_stderr_eq
Assert a command stderr string is equal to another.
assert_command_stderr_eq_as_result
Assert a command stderr string is equal to another.
assert_command_stderr_eq_x
Assert a command stderr string is equal to an expression.
assert_command_stderr_eq_x_as_result
Assert a command stderr string is equal to an expression.
assert_command_stderr_ge
Assert a command stderr string is greater than or equal to another.
assert_command_stderr_ge_as_result
Assert a command stderr string is greater than or equal to another.
assert_command_stderr_ge_x
Assert a command stderr string is greater than or equal to an expression.
assert_command_stderr_ge_x_as_result
Assert a command stderr string is greater than or equal to an expression.
assert_command_stderr_gt
Assert a command stderr string is greater than another.
assert_command_stderr_gt_as_result
Assert a command stderr string is greater than another.
assert_command_stderr_gt_x
Assert a command stderr string is greater than an expression.
assert_command_stderr_gt_x_as_result
Assert a command stderr string is greater than an expression.
assert_command_stderr_is_matchDeprecated
Assert a command stderr string is a match to a regex.
assert_command_stderr_is_match_as_resultDeprecated
Assert a command stderr string is a match to a regex.
assert_command_stderr_le
Assert a command stderr string is less than or equal to another.
assert_command_stderr_le_as_result
Assert a command stderr string is less than or equal to another.
assert_command_stderr_le_x
Assert a command stderr string is less than or equal to an expression.
assert_command_stderr_le_x_as_result
Assert a command stderr string is less than or equal to an expression.
assert_command_stderr_lt
Assert a command stderr string is less than another.
assert_command_stderr_lt_as_result
Assert a command stderr string is less than another.
assert_command_stderr_lt_x
Assert a command stderr string is less than an expression.
assert_command_stderr_lt_x_as_result
Assert a command stderr string is less than an expression.
assert_command_stderr_ne
Assert a command stderr string is not equal to another.
assert_command_stderr_ne_as_result
Assert a command stderr string is not equal to another.
assert_command_stderr_ne_x
Assert a command stderr string is not equal to an expression.
assert_command_stderr_ne_x_as_result
Assert a command stderr string is not equal to an expression.
assert_command_stderr_string_contains
Assert a command stderr string contains a given containee.
assert_command_stderr_string_contains_as_result
Assert a command stderr string contains a given containee.
assert_command_stderr_string_is_match
Assert a command stderr string is a match to a regex.
assert_command_stderr_string_is_match_as_result
Assert a command stderr string is a match to a regex.
assert_command_stdout_containsDeprecated
Assert a command stdout string contains a given containee.
assert_command_stdout_contains_as_resultDeprecated
Assert a command stdout string contains a given containee.
assert_command_stdout_eq
Assert a command stdout string is equal to another.
assert_command_stdout_eq_as_result
Assert a command stdout string is equal to another.
assert_command_stdout_eq_x
Assert a command stdout string is equal to an expression.
assert_command_stdout_eq_x_as_result
Assert a command stdout string is equal to an expression.
assert_command_stdout_ge
Assert a command stdout string is greater than or equal to another.
assert_command_stdout_ge_as_result
Assert a command stdout string is greater than or equal to another.
assert_command_stdout_ge_x
Assert a command stdout string is greater than or equal to an expression.
assert_command_stdout_ge_x_as_result
Assert a command stdout string is greater than or equal to an expression.
assert_command_stdout_gt
Assert a command stdout string is greater than another.
assert_command_stdout_gt_as_result
Assert a command stdout string is greater than another.
assert_command_stdout_gt_x
Assert a command stdout string is greater than an expression.
assert_command_stdout_gt_x_as_result
Assert a command stdout string is greater than an expression.
assert_command_stdout_is_matchDeprecated
Assert a command stdout string is a match to a regex.
assert_command_stdout_is_match_as_resultDeprecated
Assert a command stdout string is a match to a regex.
assert_command_stdout_le
Assert a command stdout string is less than or equal to another.
assert_command_stdout_le_as_result
Assert a command stdout string is less than or equal to another.
assert_command_stdout_le_x
Assert a command stdout string is less than or equal to an expression.
assert_command_stdout_le_x_as_result
Assert a command stdout string is less than or equal to an expression.
assert_command_stdout_lt
Assert a command stdout string is less than another.
assert_command_stdout_lt_as_result
Assert a command stdout string is less than another.
assert_command_stdout_lt_x
Assert a command stdout string is less than an expression.
assert_command_stdout_lt_x_as_result
Assert a command stdout string is less than an expression.
assert_command_stdout_ne
Assert a command stdout string is not equal to another.
assert_command_stdout_ne_as_result
Assert a command stdout string is not equal to another.
assert_command_stdout_ne_x
Assert a command stdout string is not equal to an expression.
assert_command_stdout_ne_x_as_result
Assert a command stdout string is not equal to an expression.
assert_command_stdout_string_contains
Assert a command stdout string contains a given containee.
assert_command_stdout_string_contains_as_result
Assert a command stdout string contains a given containee.
assert_command_stdout_string_is_match
Assert a command stdout string is a match to a regex.
assert_command_stdout_string_is_match_as_result
Assert a command stdout string is a match to a regex.
assert_contains
Assert a container is a match for an expression.
assert_contains_as_result
Assert an expression (such as a string) contains an expression (such as a substring).
assert_count_eq
Assert a count is equal to another.
assert_count_eq_as_result
Assert a count is equal to another.
assert_count_eq_x
Assert a count is equal to an expression.
assert_count_eq_x_as_result
Assert a count is equal to an expression.
assert_count_ge
Assert a count is greater than or equal to another.
assert_count_ge_as_result
Assert a count is greater than or equal to another.
assert_count_ge_x
Assert a count is greater than or equal to an expression.
assert_count_ge_x_as_result
Assert a count is greater than or equal to an expression.
assert_count_gt
Assert a count is greater than another.
assert_count_gt_as_result
Assert a count is greater than another.
assert_count_gt_x
Assert a count is greater than an expression.
assert_count_gt_x_as_result
Assert a count is greater than an expression.
assert_count_le
Assert a count is less than or equal to another.
assert_count_le_as_result
Assert a count is less than or equal to another.
assert_count_le_x
Assert a count is less than or equal to an expression.
assert_count_le_x_as_result
Assert a count is less than or equal to an expression.
assert_count_lt
Assert a count is less than another.
assert_count_lt_as_result
Assert a count is less than another.
assert_count_lt_x
Assert a count is less than an expression.
assert_count_lt_x_as_result
Assert a count is less than an expression.
assert_count_ne
Assert a count is not equal to another.
assert_count_ne_as_result
Assert a count is not equal to another.
assert_count_ne_x
Assert a count is not equal to an expression.
assert_count_ne_x_as_result
Assert a count is not equal to an expression.
assert_diff_eq_x
Assert a difference is equal to an expression.
assert_diff_eq_x_as_result
Assert a difference is equal to an expression.
assert_diff_ge_x
Assert a difference is greater than or equal to an expression.
assert_diff_ge_x_as_result
Assert a difference is greater than or equal to an expression.
assert_diff_gt_x
Assert a difference is greater than an expression.
assert_diff_gt_x_as_result
Assert a difference is greater than an expression.
assert_diff_le_x
Assert a difference is less than or equal to an expression.
assert_diff_le_x_as_result
Assert a difference is less than or equal to an expression.
assert_diff_lt_x
Assert a difference is less than an expression.
assert_diff_lt_x_as_result
Assert a difference is less than an expression.
assert_diff_ne_x
Assert a difference is not equal to an expression.
assert_diff_ne_x_as_result
Assert a difference is not equal to an expression.
assert_ends_with
Assert an expression (such as a string) ends with an expression (such as a string).
assert_ends_with_as_result
Assert an expression (such as a string) ends with an expression (such as a substring).
assert_eq_as_result
Assert an expression is equal to another.
assert_err
Assert expression is Err.
assert_err_as_result
Assert expression is Err.
assert_err_eq
Assert two expressions are Err and their values are equal.
assert_err_eq_as_result
Assert two expressions are Err and their values are equal.
assert_err_eq_x
Assert an expression is Err and its value is equal to an expression.
assert_err_eq_x_as_result
Assert an expression is Err and its value is equal to an expression.
assert_err_ne
Assert two expressions are Err and their values are not equal.
assert_err_ne_as_result
Assert two expressions are Err and their values are not equal.
assert_err_ne_x
Assert an expression is Err and its value is not equal to an expression.
assert_err_ne_x_as_result
Assert an expression is Err and its value is not equal to an expression.
assert_fn_eq
Assert a function output is equal to another.
assert_fn_eq_as_result
Assert a function output is equal to another.
assert_fn_eq_x
Assert a function output is equal to an expression.
assert_fn_eq_x_as_result
Assert a function output is equal to an expression.
assert_fn_err_eq
Assert a function error is equal to another.
assert_fn_err_eq_as_result
Assert a function error is equal to another.
assert_fn_err_eq_x
Assert a function error is equal to an expression.
assert_fn_err_eq_x_as_result
Assert a function error is equal to an expression.
assert_fn_err_ge
Assert a function error is greater than or equal to another.
assert_fn_err_ge_as_result
Assert a function error is greater than or equal to another.
assert_fn_err_ge_x
Assert a function error is greater than or equal to an expression.
assert_fn_err_ge_x_as_result
Assert a function error is greater than or equal to an expression.
assert_fn_err_gt
Assert a function error is greater than another.
assert_fn_err_gt_as_result
Assert a function error is greater than another.
assert_fn_err_gt_x
Assert a function error is greater than an expression.
assert_fn_err_gt_x_as_result
Assert a function error is greater than an expression.
assert_fn_err_le
Assert a function error is less than or equal to another.
assert_fn_err_le_as_result
Assert a function error is less than or equal to another.
assert_fn_err_le_x
Assert a function error is less than or equal to an expression.
assert_fn_err_le_x_as_result
Assert a function error is less than or equal to an expression.
assert_fn_err_lt
Assert a function error is less than another.
assert_fn_err_lt_as_result
Assert a function error is less than another.
assert_fn_err_lt_x
Assert a function error is less than an expression.
assert_fn_err_lt_x_as_result
Assert a function error is less than an expression.
assert_fn_err_ne
Assert a function error is not equal to another.
assert_fn_err_ne_as_result
Assert a function error is not equal to another.
assert_fn_err_ne_x
Assert a function error is not equal to an expression.
assert_fn_err_ne_x_as_result
Assert a function error is not equal to an expression.
assert_fn_ge
Assert a function output is greater than or equal to another.
assert_fn_ge_as_result
Assert a function output is greater than or equal to another.
assert_fn_ge_x
Assert a function output is greater than or equal to an expression.
assert_fn_ge_x_as_result
Assert a function output is greater than or equal to an expression.
assert_fn_gt
Assert a function output is greater than another.
assert_fn_gt_as_result
Assert a function output is greater than another.
assert_fn_gt_x
Assert a function output is greater than an expression.
assert_fn_gt_x_as_result
Assert a function output is greater than an expression.
assert_fn_le
Assert a function output is less than or equal to another.
assert_fn_le_as_result
Assert a function output is less than or equal to another.
assert_fn_le_x
Assert a function output is less than or equal to an expression.
assert_fn_le_x_as_result
Assert a function output is less than or equal to an expression.
assert_fn_lt
Assert a function output is less than another.
assert_fn_lt_as_result
Assert a function output is less than another.
assert_fn_lt_x
Assert a function output is less than an expression.
assert_fn_lt_x_as_result
Assert a function output is less than an expression.
assert_fn_ne
Assert a function output is not equal to another.
assert_fn_ne_as_result
Assert a function output is not equal to another.
assert_fn_ne_x
Assert a function output is not equal to an expression.
assert_fn_ne_x_as_result
Assert a function output is not equal to an expression.
assert_fn_ok_eq
Assert a function Ok(…) is equal to another.
assert_fn_ok_eq_as_result
Assert a function Ok(…) is equal to another.
assert_fn_ok_eq_x
Assert a function Ok(…) is equal to an expression.
assert_fn_ok_eq_x_as_result
Assert a function Ok(…) is equal to an expression.
assert_fn_ok_ge
Assert a function Ok(…) is greater than or equal to another.
assert_fn_ok_ge_as_result
Assert a function Ok(…) is greater than or equal to another.
assert_fn_ok_ge_x
Assert a function Ok(…) is greater than or equal to an expression.
assert_fn_ok_ge_x_as_result
Assert a function Ok(…) is greater than or equal to an expression.
assert_fn_ok_gt
Assert a function Ok(…) is greater than another.
assert_fn_ok_gt_as_result
Assert a function Ok(…) is greater than another.
assert_fn_ok_gt_x
Assert a function Ok(…) is greater than an expression.
assert_fn_ok_gt_x_as_result
Assert a function Ok(…) is greater than an expression.
assert_fn_ok_le
Assert a function Ok(…) is less than or equal to another.
assert_fn_ok_le_as_result
Assert a function Ok(…) is less than or equal to another.
assert_fn_ok_le_x
Assert a function Ok(…) is less than or equal to an expression.
assert_fn_ok_le_x_as_result
Assert a function Ok(…) is less than or equal to an expression.
assert_fn_ok_lt
Assert a function Ok(…) is less than another.
assert_fn_ok_lt_as_result
Assert a function Ok(…) is less than another.
assert_fn_ok_lt_x
Assert a function Ok(…) is less than an expression.
assert_fn_ok_lt_x_as_result
Assert a function Ok(…) is less than an expression.
assert_fn_ok_ne
Assert a function Ok(…) is not equal to another.
assert_fn_ok_ne_as_result
Assert a function Ok(…) is not equal to another.
assert_fn_ok_ne_x
Assert a function Ok(…) is not equal to an expression.
assert_fn_ok_ne_x_as_result
Assert a function Ok(…) is not equal to an expression.
assert_fs_read_to_string_contains
Assert a ::std::fs::read_to_string(path) contains a pattern.
assert_fs_read_to_string_contains_as_result
Assert a ::std::fs::read_to_string(path) contains a pattern.
assert_fs_read_to_string_eq
Assert a ::std::fs::read_to_string(path) value is equal to another.
assert_fs_read_to_string_eq_as_result
Assert a ::std::fs::read_to_string(path) is equal to another.
assert_fs_read_to_string_eq_x
Assert a ::std::fs::read_to_string(path) value is equal to an expression.
assert_fs_read_to_string_eq_x_as_result
Assert a ::std::fs::read_to_string(path) value is equal to an expression.
assert_fs_read_to_string_ge
Assert a ::std::fs::read_to_string(path) value is greater than or equal to another.
assert_fs_read_to_string_ge_as_result
Assert a ::std::fs::read_to_string(path) value is greater than or equal to another.
assert_fs_read_to_string_ge_x
Assert a ::std::fs::read_to_string(path) value is greater than or equal to an expression.
assert_fs_read_to_string_ge_x_as_result
Assert a ::std::fs::read_to_string(path) value is greater than or equal to an expression.
assert_fs_read_to_string_gt
Assert a ::std::fs::read_to_string(path) value is greater than another.
assert_fs_read_to_string_gt_as_result
Assert a ::std::fs::read_to_string(path) value is greater than another.
assert_fs_read_to_string_gt_x
Assert a ::std::fs::read_to_string(path) value is greater than an expression.
assert_fs_read_to_string_gt_x_as_result
Assert a ::std::fs::read_to_string(path) value is greater than an expression.
assert_fs_read_to_string_is_match
Assert a ::std::fs::read_to_string(path) is a match to a regex.
assert_fs_read_to_string_is_match_as_result
Assert a ::std::fs::read_to_string(path) is a match to a regex.
assert_fs_read_to_string_le
Assert a ::std::fs::read_to_string(path) value is less than or equal to another.
assert_fs_read_to_string_le_as_result
Assert a ::std::fs::read_to_string(path) value is less than or equal to another.
assert_fs_read_to_string_le_x
Assert a ::std::fs::read_to_string(path) value is less than or equal to an expression.
assert_fs_read_to_string_le_x_as_result
Assert a ::std::fs::read_to_string(path) value is less than or equal to an expression.
assert_fs_read_to_string_lt
Assert a ::std::fs::read_to_string(path) value is less than another.
assert_fs_read_to_string_lt_as_result
Assert a ::std::fs::read_to_string(path) value is less than another.
assert_fs_read_to_string_lt_x
Assert a ::std::fs::read_to_string(path) value is less than an expression.
assert_fs_read_to_string_lt_x_as_result
Assert a ::std::fs::read_to_string(path) value is less than an expression.
assert_fs_read_to_string_matchesDeprecated
Assert a ::std::fs::read_to_string(path) is a match to a regex.
assert_fs_read_to_string_matches_as_resultDeprecated
Assert a ::std::fs::read_to_string(path) is a match to a regex.
assert_fs_read_to_string_ne
Assert a ::std::fs::read_to_string(path) is not equal to another.
assert_fs_read_to_string_ne_as_result
Assert a ::std::fs::read_to_string(path) is not equal to another.
assert_fs_read_to_string_ne_x
Assert a ::std::fs::read_to_string(path) is not equal to an expression.
assert_fs_read_to_string_ne_x_as_result
Assert a ::std::fs::read_to_string(path) is not equal to an expression.
assert_ge
Assert an expression is greater than or equal to another.
assert_ge_as_result
Assert an expression is greater than or equal to another.
assert_gt
Assert an expression is greater than another.
assert_gt_as_result
Assert an expression is greater than another.
assert_in
Assert an item is in a container.
assert_in_as_result
Assert an item is in a container.
assert_in_delta
Assert a number is within delta of another.
assert_in_delta_as_result
Assert a number is within delta of another.
assert_in_epsilon
Assert a number is within epsilon of another.
assert_in_epsilon_as_result
Assert a number is within epsilon of another.
assert_in_range
Assert an item is in a range.
assert_in_range_as_result
Assert an item is in a range.
assert_infix
Assert a infix operator, such as assert_infix!(a == b).
assert_infix_as_result
Assert a infix operator, such as assert_infix!(a == b).
assert_io_read_to_string_contains
Assert a ::std::io::Read read_to_string() contains a pattern.
assert_io_read_to_string_contains_as_result
Assert a ::std::io::Read read_to_string() contains a pattern.
assert_io_read_to_string_eq
Assert a ::std::io::Read read_to_string() value is equal to another.
assert_io_read_to_string_eq_as_result
Assert a ::std::io::Read read_to_string() is equal to another.
assert_io_read_to_string_eq_x
Assert a ::std::io::Read read_to_string() value is equal to an expression.
assert_io_read_to_string_eq_x_as_result
Assert a ::std::io::Read read_to_string() value is equal to an expression.
assert_io_read_to_string_ge
Assert a ::std::io::Read read_to_string() value is greater than or equal to another.
assert_io_read_to_string_ge_as_result
Assert a ::std::io::Read read_to_string() value is greater than or equal to another.
assert_io_read_to_string_ge_x
Assert a ::std::io::Read read_to_string() value is greater than or equal to an expression.
assert_io_read_to_string_ge_x_as_result
Assert a ::std::io::Read read_to_string() value is greater than or equal to an expression.
assert_io_read_to_string_gt
Assert a ::std::io::Read read_to_string() value is greater than another.
assert_io_read_to_string_gt_as_result
Assert a ::std::io::Read read_to_string() value is greater than another.
assert_io_read_to_string_gt_x
Assert a ::std::io::Read read_to_string() value is greater than an expression.
assert_io_read_to_string_gt_x_as_result
Assert a ::std::io::Read read_to_string() value is greater than an expression.
assert_io_read_to_string_is_match
Assert a ::std::io::Read read_to_string() is a match to a regex.
assert_io_read_to_string_is_match_as_result
Assert a ::std::io::Read read_to_string() is a match to a regex.
assert_io_read_to_string_le
Assert a ::std::io::Read read_to_string() value is less than or equal to another.
assert_io_read_to_string_le_as_result
Assert a ::std::io::Read read_to_string() value is less than or equal to another.
assert_io_read_to_string_le_x
Assert a ::std::io::Read read_to_string() value is less than or equal to an expression.
assert_io_read_to_string_le_x_as_result
Assert a ::std::io::Read read_to_string() value is less than or equal to an expression.
assert_io_read_to_string_lt
Assert a ::std::io::Read read_to_string() value is less than another.
assert_io_read_to_string_lt_as_result
Assert a ::std::io::Read read_to_string() value is less than another.
assert_io_read_to_string_lt_x
Assert a ::std::io::Read read_to_string() value is less than an expression.
assert_io_read_to_string_lt_x_as_result
Assert a ::std::io::Read read_to_string() value is less than an expression.
assert_io_read_to_string_matchesDeprecated
Assert a ::std::io::read_to_string(path) is a match to a regex.
assert_io_read_to_string_matches_as_resultDeprecated
Assert a ::std::io::read_to_string(path) is a match to a regex.
assert_io_read_to_string_ne
Assert a ::std::io::Read read_to_string() is not equal to another.
assert_io_read_to_string_ne_as_result
Assert a ::std::io::Read read_to_string() is not equal to another.
assert_io_read_to_string_ne_x
Assert a ::std::io::Read read_to_string() is not equal to an expression.
assert_io_read_to_string_ne_x_as_result
Assert a ::std::io::Read read_to_string() is not equal to an expression.
assert_is_empty
Assert an expression (such as a string or array) is empty.
assert_is_empty_as_result
Assert an expression (such as a regex) is a match for an expression (such as a string).
assert_is_match
Assert a matcher is a match for an expression.
assert_is_match_as_result
Assert an expression (such as a regex) is a match for an expression (such as a string).
assert_iter_eq
Assert an iterable is equal to another.
assert_iter_eq_as_result
Assert an iterable is equal to another.
assert_iter_ge
Assert an iterable is greater than or equal to another.
assert_iter_ge_as_result
Assert an iterable is greater than or equal to another.
assert_iter_gt
Assert an iterable is greater than another.
assert_iter_gt_as_result
Assert an iterable is greater than another.
assert_iter_le
Assert an iterable is less than or equal to another.
assert_iter_le_as_result
Assert an iterable is less than or equal to another.
assert_iter_lt
Assert an iterable is less than another.
assert_iter_lt_as_result
Assert an iterable is less than another.
assert_iter_ne
Assert an iterable is not equal to another.
assert_iter_ne_as_result
Assert an iterable is not equal to another.
assert_le
Assert an expression is less than or equal to another.
assert_le_as_result
Assert an expression is less than or equal to another.
assert_len_eq
Assert a length is equal to another.
assert_len_eq_as_result
Assert a length is equal to another.
assert_len_eq_x
Assert a length is equal to an expression.
assert_len_eq_x_as_result
Assert a length is equal to an expression.
assert_len_ge
Assert a length is greater than or equal to another.
assert_len_ge_as_result
Assert a length is greater than or equal to another.
assert_len_ge_x
Assert a length is greater than or equal to an expression.
assert_len_ge_x_as_result
Assert a length is greater than or equal to an expression.
assert_len_gt
Assert a length is greater than another.
assert_len_gt_as_result
Assert a length is greater than another.
assert_len_gt_x
Assert a length is greater than an expression.
assert_len_gt_x_as_result
Assert a length is greater than an expression.
assert_len_le
Assert a length is less than or equal to another.
assert_len_le_as_result
Assert a length is less than or equal to another.
assert_len_le_x
Assert a length is less than or equal to an expression.
assert_len_le_x_as_result
Assert a length is less than or equal to an expression.
assert_len_lt
Assert a length is less than another.
assert_len_lt_as_result
Assert a length is less than another.
assert_len_lt_x
Assert a length is less than an expression.
assert_len_lt_x_as_result
Assert a length is less than an expression.
assert_len_ne
Assert a length is not equal to another.
assert_len_ne_as_result
Assert a length is not equal to another.
assert_len_ne_x
Assert a length is not equal to an expression.
assert_len_ne_x_as_result
Assert a length is not equal to an expression.
assert_lt
Assert an expression is less than another.
assert_lt_as_result
Assert an expression is less than another.
assert_matches
Assert expression is Some.
assert_matches_as_result
Assert expression matches a case.
assert_ne_as_result
Assert an expression is not equal to another.
assert_none
Assert expression is None.
assert_none_as_result
Assert an expression is None.
assert_not_contains
Assert an expression (such as a string) does not contain an expression (such as a substring).
assert_not_contains_as_result
Assert an expression (such as a string) does not contain an expression (such as a substring).
assert_not_empty
Assert an expression (such as a string or array) is not empty.
assert_not_empty_as_result
Assert an expression (such as a string or array) is not empty.
assert_not_ends_with
Assert an expression (such as a string) does not end with an expression (such as a string).
assert_not_ends_with_as_result
Assert an expression (such as a string) does not end with an expression (such as a substring).
assert_not_match
Assert an expression (such as a regex) is not a match for an expression (such as a string).
assert_not_match_as_result
Assert an expression (such as a regex) is not a match for an expression (such as a string).
assert_not_matches
Assert expression is Some.
assert_not_matches_as_result
Assert expression matches a case.
assert_not_starts_with
Assert an expression (such as a string) does not start with an expression (such as a string).
assert_not_starts_with_as_result
Assert an expression (such as a string) does not start with an expression (such as a substring).
assert_ok
Assert expression is Ok.
assert_ok_as_result
Assert expression is Ok.
assert_ok_eq
Assert two expressions are Ok and their values are equal.
assert_ok_eq_as_result
Assert two expressions are Ok and their values are equal.
assert_ok_eq_x
Assert an expression is Ok and its value is equal to an expression.
assert_ok_eq_x_as_result
Assert an expression is Ok and its value is equal to an expression.
assert_ok_ne
Assert two expressions are Ok and their values are not equal.
assert_ok_ne_as_result
Assert two expressions are Ok and their values are not equal.
assert_ok_ne_x
Assert an expression is Ok and its value is not equal to an expression.
assert_ok_ne_x_as_result
Assert an expression is Ok and its value is not equal to an expression.
assert_option_noneDeprecated
Assert expression is None.
assert_option_none_as_resultDeprecated
Assert expression is None.
assert_option_someDeprecated
Assert expression is Some.
assert_option_some_as_resultDeprecated
Assert expression is Some.
assert_option_some_eqDeprecated
Assert two expressions are Some and their values are equal.
assert_option_some_eq_as_resultDeprecated
Assert two expressions are Some and their values are equal.
assert_option_some_neDeprecated
Assert two expressions are Some and their values are not equal.
assert_option_some_ne_as_resultDeprecated
Assert two expressions are Some and their values are not equal.
assert_pending
Assert an expression is Pending.
assert_pending_as_result
Assert an expression.is_pending() is true.
assert_poll_pendingDeprecated
Assert an expression is Pending.
assert_poll_pending_as_resultDeprecated
Assert an expression.is_pending() is true.
assert_poll_readyDeprecated
Assert an expression is Ready.
assert_poll_ready_as_resultDeprecated
Assert an expression is Ready.
assert_poll_ready_eqDeprecated
Assert two expressions are Ready(_) and their values are equal.
assert_poll_ready_eq_as_resultDeprecated
Assert two expressions are Ready(_) and their values are equal.
assert_poll_ready_neDeprecated
Assert two expressions are Ready(_) and their values are not equal.
assert_poll_ready_ne_as_resultDeprecated
Assert two expressions are Ready(_) and their values are not equal.
assert_program_args_impl_prep
Assert program args implementation preparation.
assert_program_args_stderr_containsDeprecated
Assert a command (built with program and args) stderr into a string contains a given containee.
assert_program_args_stderr_contains_as_resultDeprecated
Assert a command (built with program and args) stderr into a string contains a given containee.
assert_program_args_stderr_eq
Assert a command (built with program and args) stderr is equal to another.
assert_program_args_stderr_eq_as_result
Assert a command (built with program and args) stderr is equal to another.
assert_program_args_stderr_eq_x
Assert a command (built with program and args) stderr is equal to an expression.
assert_program_args_stderr_eq_x_as_result
Assert a command (built with program and args) stderr is equal to an expression.
assert_program_args_stderr_ge
Assert a command (built with program and args) stderr is greater than or equal to another.
assert_program_args_stderr_ge_as_result
Assert a command (built with program and args) stderr is greater than or equal to another.
assert_program_args_stderr_ge_x
Assert a command (built with program and args) stderr is greater than or equal to an expression.
assert_program_args_stderr_ge_x_as_result
Assert a command (built with program and args) stderr is greater than or equal to an expression.
assert_program_args_stderr_gt
Assert a command (built with program and args) stderr is greater than to another.
assert_program_args_stderr_gt_as_result
Assert a command (built with program and args) stderr is greater than another.
assert_program_args_stderr_gt_x
Assert a command (built with program and args) stderr is greater than an expression.
assert_program_args_stderr_gt_x_as_result
Assert a command (built with program and args) stderr is greater than an expression.
assert_program_args_stderr_is_matchDeprecated
Assert a command (built with program and args) stderr into a string is a match to a regex.
assert_program_args_stderr_is_match_as_resultDeprecated
Assert a command (built with program and args) stderr into a string is a match to a regex.
assert_program_args_stderr_le
Assert a command (built with program and args) stderr is less than or equal to another.
assert_program_args_stderr_le_as_result
Assert a command (built with program and args) stderr is less than or equal to another.
assert_program_args_stderr_le_x
Assert a command (built with program and args) stderr is less than or equal to an expression.
assert_program_args_stderr_le_x_as_result
Assert a command (built with program and args) stderr is less than or equal to an expression.
assert_program_args_stderr_lt
Assert a command (built with program and args) stderr is less than another.
assert_program_args_stderr_lt_as_result
Assert a command (built with program and args) stderr is less than another.
assert_program_args_stderr_lt_x
Assert a command (built with program and args) stderr is less than an expression.
assert_program_args_stderr_lt_x_as_result
Assert a command (built with program and args) stderr is less than an expression.
assert_program_args_stderr_ne
Assert a command (built with program and args) stderr is not equal to another.
assert_program_args_stderr_ne_as_result
Assert a command (built with program and args) stderr is not equal to another.
assert_program_args_stderr_ne_x
Assert a command (built with program and args) stderr is not equal to an expression.
assert_program_args_stderr_ne_x_as_result
Assert a command (built with program and args) stderr is not equal to an expression.
assert_program_args_stderr_string_contains
Assert a command (built with program and args) stderr into a string contains a given containee.
assert_program_args_stderr_string_contains_as_result
Assert a command (built with program and args) stderr into a string contains a given containee.
assert_program_args_stderr_string_is_match
Assert a command (built with program and args) stderr into a string is a match to a regex.
assert_program_args_stderr_string_is_match_as_result
Assert a command (built with program and args) stderr into a string is a match to a regex.
assert_program_args_stdout_containsDeprecated
Assert a command (built with program and args) stdout into a string contains a given containee.
assert_program_args_stdout_contains_as_resultDeprecated
Assert a command (built with program and args) stdout into a string contains a given containee.
assert_program_args_stdout_eq
Assert a command (built with program and args) stdout is equal to another.
assert_program_args_stdout_eq_as_result
Assert a command (built with program and args) stdout is equal to another.
assert_program_args_stdout_eq_x
Assert a command (built with program and args) stdout is equal to an expression.
assert_program_args_stdout_eq_x_as_result
Assert a command (built with program and args) stdout is equal to an expression.
assert_program_args_stdout_ge
Assert a command (built with program and args) stdout is greater than or equal to another.
assert_program_args_stdout_ge_as_result
Assert a command (built with program and args) stdout is greater than or equal to another.
assert_program_args_stdout_ge_x
Assert a command (built with program and args) stdout is greater than or equal to an expression.
assert_program_args_stdout_ge_x_as_result
Assert a command (built with program and args) stdout is greater than or equal to an expression.
assert_program_args_stdout_gt
Assert a command (built with program and args) stdout is greater than another.
assert_program_args_stdout_gt_as_result
Assert a command (built with program and args) stdout is greater than to another.
assert_program_args_stdout_gt_x
Assert a command (built with program and args) stdout is greater than an expression.
assert_program_args_stdout_gt_x_as_result
Assert a command (built with program and args) stdout is greater than an expression.
assert_program_args_stdout_is_matchDeprecated
Assert a command (built with program and args) stdout into a string is a match to a regex.
assert_program_args_stdout_is_match_as_resultDeprecated
Assert a command (built with program and args) stdout into a string is a match to a regex.
assert_program_args_stdout_le
Assert a command (built with program and args) stdout is less than or equal to another.
assert_program_args_stdout_le_as_result
Assert a command (built with program and args) stdout is less than or equal to another.
assert_program_args_stdout_le_x
Assert a command (built with program and args) stdout is less than or equal to an expression.
assert_program_args_stdout_le_x_as_result
Assert a command (built with program and args) stdout is less than or equal to an expression.
assert_program_args_stdout_lt
Assert a command (built with program and args) stdout is less than another.
assert_program_args_stdout_lt_as_result
Assert a command (built with program and args) stdout is less than another.
assert_program_args_stdout_lt_x
Assert a command (built with program and args) stdout is less than an expression.
assert_program_args_stdout_lt_x_as_result
Assert a command (built with program and args) stdout is less than an expression.
assert_program_args_stdout_ne
Assert a command (built with program and args) stdout is not equal to another.
assert_program_args_stdout_ne_as_result
Assert a command (built with program and args) stdout is not equal to another.
assert_program_args_stdout_ne_x
Assert a command (built with program and args) stdout is not equal to an expression.
assert_program_args_stdout_ne_x_as_result
Assert a command (built with program and args) stdout is not equal to an expression.
assert_program_args_stdout_string_contains
Assert a command (built with program and args) stdout into a string contains a given containee.
assert_program_args_stdout_string_contains_as_result
Assert a command (built with program and args) stdout into a string contains a given containee.
assert_program_args_stdout_string_is_match
Assert a command (built with program and args) stdout into a string is a match to a regex.
assert_program_args_stdout_string_is_match_as_result
Assert a command (built with program and args) stdout into a string is a match to a regex.
assert_ready
Assert an expression is Ready.
assert_ready_as_result
Assert an expression is Ready.
assert_ready_eq
Assert two expressions are Ready and their values are equal.
assert_ready_eq_as_result
Assert two expressions are Ready and their values are equal.
assert_ready_eq_x
Assert an expression is Ready and its value is equal to an expression.
assert_ready_eq_x_as_result
Assert an expression is Ready and its value is equal to an expression.
assert_ready_ne
Assert two expressions are Ready and their values are not equal.
assert_ready_ne_as_result
Assert two expressions are Ready and their values are not equal.
assert_ready_ne_x
Assert an expression is Ready and its value is not equal to an expression.
assert_ready_ne_x_as_result
Assert an expression is Ready and its value is not equal to an expression.
assert_result_errDeprecated
Assert expression is Err.
assert_result_err_as_resultDeprecated
Assert expression is Err.
assert_result_okDeprecated
Assert expression is Ok.
assert_result_ok_as_resultDeprecated
Assert expression is Ok.
assert_result_ok_eqDeprecated
Assert two expressions are Ok and their values are equal.
assert_result_ok_eq_as_resultDeprecated
Assert two expressions are Ok and their values are equal.
assert_result_ok_neDeprecated
Assert two expressions are Ok and their values are not equal.
assert_result_ok_ne_as_resultDeprecated
Assert two expressions are Ok and their values are not equal.
assert_set_disjoint
Assert a set is disjoint with another.
assert_set_disjoint_as_result
Assert a set is disjoint with another.
assert_set_eq
Assert a set is equal to another.
assert_set_eq_as_result
Assert a set is equal to another.
assert_set_impl_prep
Assert set implementation preparation.
assert_set_joint
Assert a set is joint with another.
assert_set_joint_as_result
Assert a set is joint with another.
assert_set_ne
Assert a set is not equal to another.
assert_set_ne_as_result
Assert a set is not equal to another.
assert_set_subset
Assert a set is a subset of another.
assert_set_subset_as_result
Assert a set is a subset of another.
assert_set_superset
Assert a set is a superset of another.
assert_set_superset_as_result
Assert a set is a superset of another.
assert_some
Assert expression is Some.
assert_some_as_result
Assert an expression.is_some() is true.
assert_some_eq
Assert two expressions are Some and their values are equal.
assert_some_eq_as_result
Pseudocode:
(a ⇒ Some(a1) ⇒ a1) = (b ⇒ Some(b1) ⇒ b1)
assert_some_eq_x
Assert an expression is Some and its value is equal to an expression.
assert_some_eq_x_as_result
Assert a.is_some() and a.unwrap() are equal to another.
assert_some_ne
Assert two expressions are Some and their values are not equal.
assert_some_ne_as_result
Assert two expressions are Some and their values are not equal.
assert_some_ne_x
Assert an expression is Some and its value is not equal to an expression.
assert_some_ne_x_as_result
Assert a.is_some() and a.unwrap() are equal to another.
assert_starts_with
Assert an expression (such as a string) starts with an expression (such as a string).
assert_starts_with_as_result
Assert an expression (such as a string) starts with an expression (such as a substring).
assert_status_code_value_eq
Assert a status code value is equal to another.
assert_status_code_value_eq_as_result
Assert a status code value is equal to another.
assert_status_code_value_eq_x
Assert a status code value is equal to an expression.
assert_status_code_value_eq_x_as_result
Assert a status code value is equal to an expression.
assert_status_code_value_ge
Assert a status code value is greater than or equal to another.
assert_status_code_value_ge_as_result
Assert a status code value is greater than or equal to another.
assert_status_code_value_ge_x
Assert a status code value is greater than or equal to an expression.
assert_status_code_value_ge_x_as_result
Assert a status code value is greater than or equal to an expression.
assert_status_code_value_gt
Assert a status code value is greater than another.
assert_status_code_value_gt_as_result
Assert a status code value is greater than another.
assert_status_code_value_gt_x
Assert a status code value is greater than an expression.
assert_status_code_value_gt_x_as_result
Assert a status code value is greater than an expression.
assert_status_code_value_le
Assert a status code value is less than or equal to another.
assert_status_code_value_le_as_result
Assert a status code value is less than or equal to another.
assert_status_code_value_le_x
Assert a status code value is less than or equal to an expression.
assert_status_code_value_le_x_as_result
Assert a status code value is less than or equal to an expression.
assert_status_code_value_lt
Assert a status code value is less than another.
assert_status_code_value_lt_as_result
Assert a status code value is less than another.
assert_status_code_value_lt_x
Assert a status code value is less than an expression.
assert_status_code_value_lt_x_as_result
Assert a status code value is less than an expression.
assert_status_code_value_ne
Assert a status code value is not equal to another.
assert_status_code_value_ne_as_result
Assert a status code value is not equal to another.
assert_status_code_value_ne_x
Assert a status code value is not equal to another.
assert_status_code_value_ne_x_as_result
Assert a status code value is not equal to another.
assert_status_success
Assert a status is a success.
assert_status_success_as_result
Assert a status is a success.
assert_status_success_false
Assert a status is a failure.
assert_status_success_false_as_result
Assert a status is a failure.
assert_success
Assert a success method is true.
assert_success_as_result
Assert a success method is true.
assert_success_false
Assert a failure method is true.
assert_success_false_as_result
Assert a failure method is true.
debug_assert_abs_diff_eqDeprecated
Assert an absolute difference is equal to an expression.
debug_assert_abs_diff_eq_x
Assert an absolute difference is equal to an expression.
debug_assert_abs_diff_geDeprecated
Assert an absolute difference is greater than or equal to an expression.
debug_assert_abs_diff_ge_x
Assert an absolute difference is greater than or equal to an expression.
debug_assert_abs_diff_gtDeprecated
Assert an absolute difference is greater than an expression.
debug_assert_abs_diff_gt_x
Assert an absolute difference is greater than an expression.
debug_assert_abs_diff_leDeprecated
Assert an absolute difference is less than or equal to an expression.
debug_assert_abs_diff_le_x
Assert an absolute difference is less than or equal to an expression.
debug_assert_abs_diff_ltDeprecated
Assert an absolute difference is less than an expression.
debug_assert_abs_diff_lt_x
Assert an absolute difference is less than an expression.
debug_assert_abs_diff_neDeprecated
Assert an absolute difference is not equal to an expression.
debug_assert_abs_diff_ne_x
Assert an absolute difference is not equal to an expression.
debug_assert_all
Assert every element of the iterator matches a predicate.
debug_assert_any
Assert every element of the iterator matches a predicate.
debug_assert_approx_eq
Assert a number is approximately equal to another.
debug_assert_approx_ne
Assert a number is approximately not equal to another.
debug_assert_bag_eq
Assert a bag is equal to another.
debug_assert_bag_ne
Assert a bag is not equal to another.
debug_assert_bag_subbag
Assert a bag is a subbag of another.
debug_assert_bag_superbag
Assert a bag is a superbag of another.
debug_assert_command_stderr_containsDeprecated
Assert a command stderr string contains a given containee.
debug_assert_command_stderr_eq
Assert a command stderr string is equal to another.
debug_assert_command_stderr_eq_x
Assert a command stderr string is equal to an expression.
debug_assert_command_stderr_ge
Assert a command stderr string is greater than or equal to another.
debug_assert_command_stderr_ge_x
Assert a command stderr string is greater than or equal to an expression.
debug_assert_command_stderr_gt
Assert a command stderr string is greater than another.
debug_assert_command_stderr_gt_x
Assert a command stderr string is greater than an expression.
debug_assert_command_stderr_is_matchDeprecated
Assert a command stderr string is a match to a regex.
debug_assert_command_stderr_le
Assert a command stderr string is less than or equal to another.
debug_assert_command_stderr_le_x
Assert a command stderr string is less than or equal to an expression.
debug_assert_command_stderr_lt
Assert a command stderr string is less than another.
debug_assert_command_stderr_lt_x
Assert a command stderr string is less than an expression.
debug_assert_command_stderr_ne
Assert a command stderr string is not equal to another.
debug_assert_command_stderr_ne_x
Assert a command stderr string is not equal to an expression.
debug_assert_command_stderr_string_contains
Assert a command stderr string contains a given containee.
debug_assert_command_stderr_string_is_match
Assert a command stderr string is a match to a regex.
debug_assert_command_stdout_containsDeprecated
Assert a command stdout string contains a given containee.
debug_assert_command_stdout_eq
Assert a command stdout string is equal to another.
debug_assert_command_stdout_eq_x
Assert a command stdout string is equal to an expression.
debug_assert_command_stdout_ge
Assert a command stdout string is greater than or equal to another.
debug_assert_command_stdout_ge_x
Assert a command stdout string is greater than or equal to an expression.
debug_assert_command_stdout_gt
Assert a command stdout string is greater than another.
debug_assert_command_stdout_gt_x
Assert a command stdout string is greater than an expression.
debug_assert_command_stdout_is_matchDeprecated
Assert a command stdout string is a match to a regex.
debug_assert_command_stdout_le
Assert a command stdout string is less than or equal to another.
debug_assert_command_stdout_le_x
Assert a command stdout string is less than or equal to an expression.
debug_assert_command_stdout_lt
Assert a command stdout string is less than another.
debug_assert_command_stdout_lt_x
Assert a command stdout string is less than an expression.
debug_assert_command_stdout_ne
Assert a command stdout string is not equal to another.
debug_assert_command_stdout_ne_x
Assert a command stdout string is not equal to an expression.
debug_assert_command_stdout_string_contains
Assert a command stdout string contains a given containee.
debug_assert_command_stdout_string_is_match
Assert a command stdout string is a match to a regex.
debug_assert_contains
Assert a container is a match for an expression.
debug_assert_count_eq
Assert a count is equal to another.
debug_assert_count_eq_x
Assert a count is equal to an expression.
debug_assert_count_ge
Assert a count is greater than or equal to another.
debug_assert_count_ge_x
Assert a count is greater than or equal to an expression.
debug_assert_count_gt
Assert a count is greater than another.
debug_assert_count_gt_x
Assert a count is greater than an expression.
debug_assert_count_le
Assert a count is less than or equal to another.
debug_assert_count_le_x
Assert a count is less than or equal to an expression.
debug_assert_count_lt
Assert a count is less than another.
debug_assert_count_lt_x
Assert a count is less than an expression.
debug_assert_count_ne
Assert a count is not equal to another.
debug_assert_count_ne_x
Assert a count is not equal to an expression.
debug_assert_diff_eq_x
Assert a difference is equal to an expression.
debug_assert_diff_ge_x
Assert a difference is greater than or equal to an expression.
debug_assert_diff_gt_x
Assert a difference is greater than an expression.
debug_assert_diff_le_x
Assert a difference is less than or equal to an expression.
debug_assert_diff_lt_x
Assert a difference is less than an expression.
debug_assert_diff_ne_x
Assert a difference is not equal to an expression.
debug_assert_ends_with
Assert an expression (such as a string) ends with an expression (such as a string).
debug_assert_err
Assert expression is Err.
debug_assert_err_eq
Assert two expressions are Err and their values are equal.
debug_assert_err_eq_x
Assert an expression is Err and its value is equal to an expression.
debug_assert_err_ne
Assert two expressions are Err and their values are not equal.
debug_assert_err_ne_x
Assert an expression is Err and its value is not equal to an expression.
debug_assert_fn_eq
Assert a function output is equal to another.
debug_assert_fn_eq_x
Assert a function output is equal to an expression.
debug_assert_fn_err_eq
Assert a function error is equal to another.
debug_assert_fn_err_eq_x
Assert a function error is equal to an expression.
debug_assert_fn_err_ge
Assert a function error is greater than or equal to another.
debug_assert_fn_err_ge_x
Assert a function error is greater than or equal to an expression.
debug_assert_fn_err_gt
Assert a function error is greater than another.
debug_assert_fn_err_gt_x
Assert a function error is greater than an expression.
debug_assert_fn_err_le
Assert a function error is less than or equal to another.
debug_assert_fn_err_le_x
Assert a function error is less than or equal to an expression.
debug_assert_fn_err_lt
Assert a function error is less than another.
debug_assert_fn_err_lt_x
Assert a function error is less than an expression.
debug_assert_fn_err_ne
Assert a function error is not equal to another.
debug_assert_fn_err_ne_x
Assert a function error is not equal to an expression.
debug_assert_fn_ge
Assert a function output is greater than or equal to another.
debug_assert_fn_ge_x
Assert a function output is greater than or equal to an expression.
debug_assert_fn_gt
Assert a function output is greater than another.
debug_assert_fn_gt_x
Assert a function output is greater than an expression.
debug_assert_fn_le
Assert a function output is less than or equal to another.
debug_assert_fn_le_x
Assert a function output is less than or equal to an expression.
debug_assert_fn_lt
Assert a function output is less than another.
debug_assert_fn_lt_x
Assert a function output is less than an expression.
debug_assert_fn_ne
Assert a function output is not equal to another.
debug_assert_fn_ne_x
Assert a function output is not equal to an expression.
debug_assert_fn_ok_eq
Assert a function Ok(…) is equal to another.
debug_assert_fn_ok_eq_x
Assert a function Ok(…) is equal to an expression.
debug_assert_fn_ok_ge
Assert a function Ok(…) is greater than or equal to another.
debug_assert_fn_ok_ge_x
Assert a function Ok(…) is greater than or equal to an expression.
debug_assert_fn_ok_gt
Assert a function Ok(…) is greater than another.
debug_assert_fn_ok_gt_x
Assert a function Ok(…) is greater than an expression.
debug_assert_fn_ok_le
Assert a function Ok(…) is less than or equal to another.
debug_assert_fn_ok_le_x
Assert a function Ok(…) is less than or equal to an expression.
debug_assert_fn_ok_lt
Assert a function Ok(…) is less than another.
debug_assert_fn_ok_lt_x
Assert a function Ok(…) is less than an expression.
debug_assert_fn_ok_ne
Assert a function Ok(…) is not equal to another.
debug_assert_fn_ok_ne_x
Assert a function Ok(…) is not equal to an expression.
debug_assert_fs_read_to_string_contains
Assert a ::std::fs::read_to_string(path) contains a pattern.
debug_assert_fs_read_to_string_eq
Assert a ::std::fs::read_to_string(path) value is equal to another.
debug_assert_fs_read_to_string_eq_x
Assert a ::std::fs::read_to_string(path) value is equal to an expression.
debug_assert_fs_read_to_string_ge
Assert a ::std::fs::read_to_string(path) value is greater than or equal to another.
debug_assert_fs_read_to_string_ge_x
Assert zzz.
debug_assert_fs_read_to_string_gt
Assert a ::std::fs::read_to_string(path) value is greater than another.
debug_assert_fs_read_to_string_gt_x
Assert a ::std::fs::read_to_string(path) value is greater than an expression.
debug_assert_fs_read_to_string_is_match
Assert a ::std::fs::read_to_string(path) is a match to a regex.
debug_assert_fs_read_to_string_le
Assert a ::std::fs::read_to_string(path) value is less than or equal to another.
debug_assert_fs_read_to_string_le_x
Assert a ::std::fs::read_to_string(path) value is less than or equal to an expression.
debug_assert_fs_read_to_string_lt
Assert a ::std::fs::read_to_string(path) value is less than another.
debug_assert_fs_read_to_string_lt_x
Assert a ::std::fs::read_to_string(path) value is less than an expression.
debug_assert_fs_read_to_string_matchesDeprecated
Assert a ::std::fs::read_to_string(path) is a match to a regex.
debug_assert_fs_read_to_string_ne
Assert a ::std::fs::read_to_string(path) is not equal to another.
debug_assert_fs_read_to_string_ne_x
Assert a ::std::fs::read_to_string(path) is not equal to an expression.
debug_assert_ge
Assert an expression is greater than or equal to another.
debug_assert_gt
Assert an expression is greater than another.
debug_assert_in
Assert an item is in a container.
debug_assert_in_delta
Assert a number is within delta of another.
debug_assert_in_epsilon
Assert a number is within epsilon of another.
debug_assert_in_range
Assert an item is in a range.
debug_assert_infix
Assert a infix operator, such as assert_infix!(a == b).
debug_assert_io_read_to_string_contains
Assert a ::std::io::Read read_to_string() contains a pattern.
debug_assert_io_read_to_string_eq
Assert a ::std::io::Read read_to_string() value is equal to another.
debug_assert_io_read_to_string_eq_x
Assert a ::std::io::Read read_to_string() value is equal to an expression.
debug_assert_io_read_to_string_ge
Assert a ::std::io::Read read_to_string() value is greater than or equal to another.
debug_assert_io_read_to_string_ge_x
Assert zzz.
debug_assert_io_read_to_string_gt
Assert a ::std::io::Read read_to_string() value is greater than another.
debug_assert_io_read_to_string_gt_x
Assert a ::std::io::Read read_to_string() value is greater than an expression.
debug_assert_io_read_to_string_is_match
Assert a ::std::io::Read read_to_string() is a match to a regex.
debug_assert_io_read_to_string_le
Assert a ::std::io::Read read_to_string() value is less than or equal to another.
debug_assert_io_read_to_string_le_x
Assert a ::std::io::Read read_to_string() value is less than or equal to an expression.
debug_assert_io_read_to_string_lt
Assert a ::std::io::Read read_to_string() value is less than another.
debug_assert_io_read_to_string_lt_x
Assert a ::std::io::Read read_to_string() value is less than an expression.
debug_assert_io_read_to_string_matchesDeprecated
Assert a ::std::io::read_to_string(path) is a match to a regex.
debug_assert_io_read_to_string_ne
Assert a ::std::io::Read read_to_string() is not equal to another.
debug_assert_io_read_to_string_ne_x
Assert a ::std::io::Read read_to_string() is not equal to an expression.
debug_assert_is_empty
Assert an expression (such as a string or array) is empty.
debug_assert_is_match
Assert a matcher is a match for an expression.
debug_assert_iter_eq
Assert an iterable is equal to another.
debug_assert_iter_ge
Assert an iterable is greater than or equal to another.
debug_assert_iter_gt
Assert an iterable is greater than another.
debug_assert_iter_le
Assert an iterable is less than or equal to another.
debug_assert_iter_lt
Assert an iterable is less than another.
debug_assert_iter_ne
Assert an iterable is not equal to another.
debug_assert_le
Assert an expression is less than or equal to another.
debug_assert_len_eq
Assert a length is equal to another.
debug_assert_len_eq_x
Assert a length is equal to an expression.
debug_assert_len_ge
Assert a length is greater than or equal to another.
debug_assert_len_ge_x
Assert a length is greater than or equal to an expression.
debug_assert_len_gt
Assert a length is greater than another.
debug_assert_len_gt_x
Assert a length is greater than an expression.
debug_assert_len_le
Assert a length is less than or equal to another.
debug_assert_len_le_x
Assert a length is less than or equal to an expression.
debug_assert_len_lt
Assert a length is less than another.
debug_assert_len_lt_x
Assert a length is less than an expression.
debug_assert_len_ne
Assert a length is not equal to another.
debug_assert_len_ne_x
Assert a length is not equal to an expression.
debug_assert_lt
Assert an expression is less than another.
debug_assert_matches
Assert expression is Some.
debug_assert_none
Assert expression is None.
debug_assert_not_contains
Assert an expression (such as a string) does not contain an expression (such as a substring).
debug_assert_not_empty
Assert an expression (such as a string or array) is not empty.
debug_assert_not_ends_with
Assert an expression (such as a string) does not end with an expression (such as a string).
debug_assert_not_match
Assert an expression (such as a regex) is not a match for an expression (such as a string).
debug_assert_not_matches
Assert expression is Some.
debug_assert_not_starts_with
Assert an expression (such as a string) does not start with an expression (such as a string).
debug_assert_ok
Assert expression is Ok.
debug_assert_ok_eq
Assert two expressions are Ok and their values are equal.
debug_assert_ok_eq_x
Assert an expression is Ok and its value is equal to an expression.
debug_assert_ok_ne
Assert two expressions are Ok and their values are not equal.
debug_assert_ok_ne_x
Assert an expression is Ok and its value is not equal to an expression.
debug_assert_option_noneDeprecated
Assert expression is None.
debug_assert_option_someDeprecated
Assert expression is Some.
debug_assert_option_some_eqDeprecated
Assert two expressions are Some and their values are equal.
debug_assert_option_some_neDeprecated
Assert two expressions are Some and their values are not equal.
debug_assert_pending
Assert an expression is Pending.
debug_assert_poll_pendingDeprecated
Assert an expression is Pending.
debug_assert_poll_readyDeprecated
Assert poll.is_ready() is true.
debug_assert_poll_ready_eqDeprecated
Assert two expressions are Ready(_) and their values are equal.
debug_assert_poll_ready_neDeprecated
Assert two expressions are Ready(_) and their values are not equal.
debug_assert_program_args_stderr_containsDeprecated
Assert a command (built with program and args) stderr into a string contains a given containee.
debug_assert_program_args_stderr_eq
Assert a command (built with program and args) stderr is equal to another.
debug_assert_program_args_stderr_eq_x
Assert a command (built with program and args) stderr is equal to an expression.
debug_assert_program_args_stderr_ge
Assert a command (built with program and args) stderr greater than or equal to another.
debug_assert_program_args_stderr_ge_x
Assert a command (built with program and args) stderr is greater than or equal to an expression.
debug_assert_program_args_stderr_gt
Assert a command (built with program and args) stderr is greater than another.
debug_assert_program_args_stderr_gt_x
Assert a command (built with program and args) stderr is greater than an expression.
debug_assert_program_args_stderr_is_matchDeprecated
Assert a command (built with program and args) stderr into a string is a match to a regex.
debug_assert_program_args_stderr_le
Assert a command (built with program and args) stderr is less than or equal to another.
debug_assert_program_args_stderr_le_x
Assert a command (built with program and args) stderr is less than or equal to an expression.
debug_assert_program_args_stderr_lt
Assert a command (built with program and args) stderr is less than another.
debug_assert_program_args_stderr_lt_x
Assert a command (built with program and args) stderr is less than an expression.
debug_assert_program_args_stderr_ne
Assert a command (built with program and args) stderr is not equal to another.
debug_assert_program_args_stderr_ne_x
Assert a command (built with program and args) stderr is not equal to an expression.
debug_assert_program_args_stderr_string_contains
Assert a command (built with program and args) stderr into a string contains a given containee.
debug_assert_program_args_stderr_string_is_match
Assert a command (built with program and args) stderr into a string is a match to a regex.
debug_assert_program_args_stdout_containsDeprecated
Assert a command (built with program and args) stdout into a string contains a given containee.
debug_assert_program_args_stdout_eq
Assert a command (built with program and args) stdout is equal to another.
debug_assert_program_args_stdout_eq_x
Assert a command (built with program and args) stdout is equal to an expression.
debug_assert_program_args_stdout_ge
Assert a command (built with program and args) stdout is greater than or equal to another.
debug_assert_program_args_stdout_ge_x
Assert a command (built with program and args) stdout is greater than or equal to an expression.
debug_assert_program_args_stdout_gt
Assert a command (built with program and args) stdout is greater than another.
debug_assert_program_args_stdout_gt_x
Assert a command (built with program and args) stdout is greater than an expression.
debug_assert_program_args_stdout_is_matchDeprecated
Assert a command (built with program and args) stdout into a string is a match to a regex.
debug_assert_program_args_stdout_le
Assert a command (built with program and args) stdout is less than or equal to another.
debug_assert_program_args_stdout_le_x
Assert a command (built with program and args) stdout is less than or equal to an expression.
debug_assert_program_args_stdout_lt
Assert a command (built with program and args) stdout is less than another.
debug_assert_program_args_stdout_lt_x
Assert a command (built with program and args) stdout is less than an expression.
debug_assert_program_args_stdout_ne
Assert a command (built with program and args) stdout is not equal to another.
debug_assert_program_args_stdout_ne_x
Assert a command (built with program and args) stdout is not equal to an expression.
debug_assert_program_args_stdout_string_contains
Assert a command (built with program and args) stdout into a string contains a given containee.
debug_assert_program_args_stdout_string_is_match
Assert a command (built with program and args) stdout into a string is a match to a regex.
debug_assert_ready
Assert an expression is Ready.
debug_assert_ready_eq
Assert two expressions are Ready and their values are equal.
debug_assert_ready_eq_x
Assert an expression is Ready and its value is equal to an expression.
debug_assert_ready_ne
Assert two expressions are Ready and their values are not equal.
debug_assert_ready_ne_x
Assert an expression is Ready and its value is not equal to an expression.
debug_assert_result_errDeprecated
Assert expression is Err.
debug_assert_result_okDeprecated
Assert expression is Ok.
debug_assert_result_ok_eqDeprecated
Assert two expressions are Ok and their values are equal.
debug_assert_result_ok_neDeprecated
Assert two expressions are Ok and their values are not equal.
debug_assert_set_disjoint
Assert a set is disjoint with another.
debug_assert_set_eq
Assert a set is equal to another.
debug_assert_set_joint
Assert a set is joint with another.
debug_assert_set_ne
Assert a set is not equal to another.
debug_assert_set_subset
Assert a set is a subset of another.
debug_assert_set_superset
Assert a set is a superset of another.
debug_assert_some
Assert expression is Some.
debug_assert_some_eq
Assert two expressions are Some and their values are equal.
debug_assert_some_eq_x
Assert an expression is Some and its value is equal to an expression.
debug_assert_some_ne
Assert two expressions are Some and their values are not equal.
debug_assert_some_ne_x
Assert an expression is Some and its value is not equal to an expression.
debug_assert_starts_with
Assert an expression (such as a string) starts with an expression (such as a string).
debug_assert_status_code_value_eq
Assert a status code value is equal to another.
debug_assert_status_code_value_eq_x
Assert a status code value is equal to an expression.
debug_assert_status_code_value_ge
Assert a status code value is greater than or equal to another.
debug_assert_status_code_value_ge_x
Assert a status code value is greater than or equal to an expression.
debug_assert_status_code_value_gt
Assert a status code value is greater than another.
debug_assert_status_code_value_gt_x
Assert a status code value is greater than an expression.
debug_assert_status_code_value_le
Assert a status code value is less than or equal to another.
debug_assert_status_code_value_le_x
Assert a status code value is less than or equal to an expression.
debug_assert_status_code_value_lt
Assert a status code value is less than another.
debug_assert_status_code_value_lt_x
Assert a status code value is less than an expression.
debug_assert_status_code_value_ne
Assert a status code value is not equal to another.
debug_assert_status_code_value_ne_x
Assert a status code value is not equal to another.
debug_assert_status_success
Assert a status is a success.
debug_assert_status_success_false
Assert a status is a failure.
debug_assert_success
Assert a success method is true.
debug_assert_success_false
Assert a failure method is true.