double
double copied to clipboard
Mocking framework for Rust -- inspired by googlemock
Rust: stable/1.60 on macOS 14.6 in a Mac Mini. Hello, I'm trying to mock a function named `lookup_addr` which belongs to an external crape (`dns-lookup`) in order to avoid DNS...
I have a trait like so: ```rust #[async_trait] pub trait RetryMove { fn map_accessor(&self) -> &HashMap; async fn method_1(&self, test: &str); } ``` when I try and use `mock_method!` on...
Double cannot mock a trait that must be `Send`. Example: ```rust fn send() { pub trait A { fn foo(&self); } mock_trait!( MockA, foo() -> () ); impl A for...
I'm looking at using this crate for testing but have run into a bit of a road block. My trait is using the `Error` return type from the [failure](https://crates.io/crates/failure) crate....
Given the following trait: ```rust pub trait Chal { fn set_mech_brakes(&self, amt: BrakeAmt) -> &Self; fn mech_brakes(&self) -> BrakeAmt; } ``` I have tried: ```rust mock_trait!(ChalMock, set_brakes(BrakeAmt) -> &Self, brakes()...
This issue tracks works on adding built-in matchers for various container checks. This allows clients to answer questions like "was this mock method passed a container that contains this specific...