Expand description

Tools for writing asynchronous expectations in tests

Modules§

  • Asynchronous extensions to Expectation Predicates This module defines a framework for using the crate::expectations module in asynchronous situations, where you wish you detect the satisfiability of the expectations at some undetermined point in the future.
  • Expectations for the host driver Expectations for the Bluetooth Host Driver (bt-host)
  • Expectations for remote peers Expectations for Bluetooth Peers (i.e. Remote Devices)
  • Useful convenience methods and macros for working with expectations

Structs§

  • A String whose Debug implementation pretty-prints. Used when we need to return a string which we know will be printed through it’s ‘Debug’ implementation, but we want to ensure that it is not further escaped (for example, because it already is escaped, or because it contains characters that we do not want to be escaped).

Enums§

  • A Boolean predicate on type T. Predicate functions are a boolean algebra just as raw boolean values are; they an be ANDed, ORed, NOTed. This allows a clear and concise language for declaring test expectations.

Traits§

  • Trait representation of a Predicate on members of an existential iterator type
  • Trait representation of a Predicate on members of an existential iterator type
  • Trait representation of OverPred where U is existential