-
I have 2 creates in my project, base and service, and service crate based on base.
And the code is something like this:
```
crate base {
db.rs
#[mockable]
fun get_users()
}
crate se…
-
Mocktopus is very handy for mocking free functions. But when mocking structs, it requires a real copy of the struct to be instantiated. That's not always easy or possible in test environments. That…
-
## Brief feature description
Yeah, the iceoryx logo is awesome but what about combining the rust logo with the iceoryx logo so that the gear surrounds iceoryx.
See this here: https://raw.githubu…
-
should be replaced with mocking probably. blocks #10
-
Trying to mock an unsafe function results in an error. Is there any particular reason my unsafe function cannot be mocked?
Minimal test:
```
unsafe fn count() -> i32 {
1
}
…
-
Add feature of injecting all modules in a crate with a single line of code in root module:
```#![inject_mocks]```
Blocked: https://github.com/rust-lang/rust/issues/41430
-
This crate needs a whole lot of testing.
I'm not sure of the best way forward here- short of spamming my own account with tiny transfers and notifications
-
No idea, how to do it, compiler plugin passed to rustc maybe?
-
Hi, for function to test like following:
``````
fn handle_response(response:Response) {
save_db(response.get_users());
let unread_count = read_unread_from_db();
send_push_notification(unrea…
-
Hey,
what do you think of adding a completly new API to improve readability of mockings. I would suggest something like this:
```rust
when(namespace::function)
.expected(times(3))
.call…