Andres

Results 16 issues of Andres

### Environment How do you use Sentry? Sentry SaaS (sentry.io) Which SDK and version? Rust 0.23 ### Steps to Reproduce 1. Initialize sentry: `sentry::init` 2. Send events in different threads...

Neither of these work. ```rust pub fn new_generic_input(&self, a: T) { /* some code here */ } ``` ```rust pub fn new_generic_output(&self) -> T { /* some code here */...

The only implemented matchers at the moment are: `Any`: matches any argument `Eq` matches based on `Arg: PartialEq` `EqAgainst` matches based on `Arg: PartialEq` We could implement other matchers so...

General issue for writing the guide * Exporting mocks across crates * Interactions with other proc macros (in particular, `async-trait`)

While there exist other libraries already capable of doing this, it might be nice to also provide that functionality here to not force the user to find yet another mocking...

Add an argument matcher that is able to capture an argument for later verification. Potential pitfalls: * It will probably require the argument to be cloneable + 'static. This is...

`faux` should support verification that a mock got called with certain arguments. cc: @muscovite

A mocked struct cannot have a mocked method that takes another instance as a parameter.

`#[faux::methods]`creates a module with the name of the struct being mocked. This means that if there are multiple `impl` blocks for the same type, two modules with the same name...

aa18c66a349c8f33ad061e2d6ff655233aa2b762 allowed mocks to be Send/Sync by forcing the user only provide Send closures, and using `Mutex` instead of `RefCell` for the interior mutability of the `MockStore`. While this is...