You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mock!(
Foo {}
impl A for Foo {
fn new(&self) -> A;
}
impl B for Foo {
fn new(&self) -> B;
}
);
Then I am getting an error saying that expect_new() is already defined. I would strongly prefer the created method to be named something like expect_A_new(), you get the point.
The text was updated successfully, but these errors were encountered:
This name collision is a well known problem, and there's no setting in Mockall that can fix it for you. You'll have to manually mock one of those methods.
Let say I want to mock a struct like this:
Then I am getting an error saying that expect_new() is already defined. I would strongly prefer the created method to be named something like expect_A_new(), you get the point.
The text was updated successfully, but these errors were encountered: