galvanic_assert

Module matchers

Source

Modules§

  • The collection module contains matchers for asserting properties of collections and iterators.
  • The variant module contains matchers for asserting properties of enums and convienience functions for Option and Result.

Macros§

  • Takes a list of matchers for the same type combines them conjunctively.
  • Takes a list of matchers for the same type combines them disjunctively.
  • Write patterns of structs/enums which use Matchers instead of field values.
  • Shorter name for has_structure!.

Structs§

  • A Matcher struct which joins multiple Matchers conjunctively.
  • A Matcher struct which joins multiple Matchers disjunctively.

Functions§

  • A matcher which always matches.
  • A matcher which never matches.
  • A matcher which always matches.
  • Matches if the asserted value is in an epsilon range around the expected value.
  • Matches if the asserted value is equal to the expected value.
  • Matches if the asserted value is equal to the expected value.
  • Matches if the asserted value is greater than or equal to the expected value.
  • Matches if the asserted value is greater than the expected value.
  • Matches if the asserted value is greater than or equal to the expected value.
  • Matches if the asserted value is greater than the expected value.
  • Accepts a matcher and returns it unmodified.
  • Accepts a matcher and returns it unmodified.
  • Matches if the asserted value is less than or equal to the expected value.
  • Matches if the asserted value is less than the expected value.
  • Matches if the asserted value is less than or equal to the expected value.
  • Matches if the asserted value is less than the expected value.
  • A matcher which never matches.
  • A matcher negating the result of the passed matcher.
  • Matches if asserted value and the expected value are truely the same object.