Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to double type aliases to mockall_double #374

Merged
merged 1 commit into from May 4, 2022

Conversation

asomers
Copy link
Owner

@asomers asomers commented Mar 25, 2022

 #[double]
type Foo = bar::Baz;

will become

 #[cfg(not(test))]
type Foo = bar::Baz;
 #[cfg(test)]
type Foo = bar::MockBaz;

```rust
 #[double]
type Foo = bar::Baz;
```
will become
```rust
 #[cfg(not(test))]
type Foo = bar::Baz;
 #[cfg(test)]
type Foo = bar::MockBaz;
```
@asomers asomers merged commit 1dc7781 into master May 4, 2022
@asomers asomers deleted the double_type branch May 4, 2022 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant