mockall::predicate

Module str

Expand description

str Predicate factories

This module contains predicates specific to string handling.

Functionsยง

  • Creates a new Predicate that ensures a str contains pattern
  • Creates a new Predicate that diffs two strings.
  • Creates a new Predicate that ensures a str ends with pattern
  • Creates a new Predicate that ensures a str is empty
  • Creates a new Predicate that uses a regular expression to match the string.
  • Creates a new Predicate that checks strings for how similar they are.
  • Creates a new Predicate that ensures a str starts with pattern