We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If protocol#1 inherits protocol#2 imported from different module, then protocol#2 requirements are not met:
/// @mockable protocol Foo: Equatable { func foo() }
class FooMock: Foo { init() { } private(set) var fooCallCount = 0 var fooHandler: (() -> ())? func foo() { fooCallCount += 1 if let fooHandler = fooHandler { fooHandler() } } }
Which does not conform to Equatable
Equatable
The text was updated successfully, but these errors were encountered:
You could use the ---header tag to address this, but it can get a bit unwieldy. Have you explored -mocks as well?
---header
-mocks
Sorry, something went wrong.
I've tried to use -mocks and --mock-filelist and am encountering the same issue
--mock-filelist
You can implement the protocol by yourself.
extension FooMock { static func == (lhs: FooMock, rhs: FooMock) -> Bool { return true } }
No branches or pull requests
If protocol#1 inherits protocol#2 imported from different module, then protocol#2 requirements are not met:
Which does not conform to
Equatable
The text was updated successfully, but these errors were encountered: