Protocol Mock in library has internal initializer #340
Labels
awaiting response
A Cuckoo maintainer is awaiting response from the issue/PR author/community.
enhancement
good first issue
If you're looking to contribute, this issue is the way to go!
I have a library that I generate all of my mocks into that is imported in my unit tests. When mocking a protocol, the generated mock object doesn't have an initializer declared. This means is uses the default initializer, which would be fine, except the default
init()
method is internal. I can get around this by importing my mock library@testable
, but I'd suggest that protocol mocks for public protocols have apublic init() {}
method generated.The text was updated successfully, but these errors were encountered: