Crate simulacrum [] [src]

Reexports

pub use self::mock::Expectations;
pub use self::user::Method;
pub use self::validator::stock::*;

Modules

constraint
expectation
macros
mock

Mock object internals. Used by the macros to create Mocks for you, or you can use this API to construct your own Mocks manually if you'd like!

user

This is the API that you'll call in your tests when using your Mock objects.

validator

Macros

params

Use this macro to create a Validator that works for methods with 2-6 parameters.

Type Definitions

ExpectationId

The keys used in a HandleBox. A typedef for u32.

MethodName