Registry / testing / mockall-double

mockall-double

JSON →
library0.3.1rscratesunverified

Test double adapter for Mockall.

# Cargo.toml [dependencies] mockall_double = "0.3.1"
INSTALL
IMPORT
SIG · MOCKALL-DOUBLE
M
mockall-double
testingrustv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

double
use mockall_double::double;

Creates a test double for a trait using Mockall's double attribute.

use mockall_double::double; #[double] use some_crate::SomeTrait; fn main() { let mock = SomeTrait::new(); mock.expect_method().returning(|| 42); assert_eq!(mock.method(), 42); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mockall-double — cargo add mockall-double · libregistry