Skip to content

Matchers #3

@DNKpp

Description

@DNKpp

Matchers can be used:

  • directly as expectation argument
  • as explicit expectation
    • expect::arg<n>
    • expect::args<ns...>
    • expect::all_args

Generic Matchers:

  • matcher::PredicateMatcher
    • matcher::InvertiblePolicy
    • matcher::ConjunctionPolicy
    • matcher::DisjunctionPolicy

Basic Matchers

  • matches::_
  • matches::eq
  • matches::ne
  • matches::lt
  • matches::le
  • matches::gt
  • matches::ge
  • matches::NaN
  • matches::approx_abs
  • matches::approx_rel
  • matches::instance
  • matches::predicate

String Matchers

  • matches::str::eq
  • matches::str::starts_with
  • matches::str::ends_with
  • matches::str::contains

Range matchers

  • matches::range::eq
  • matches::range::unordered_eq
  • matches::range::is_sorted
  • matches::range::is_empty
  • matches::range::has_size
  • matches::range::each_element
  • matches::range::any_element

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions