-
Notifications
You must be signed in to change notification settings - Fork 4
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
Class Mock Syntax Errors #1
Comments
This seems to be a problem with NSObject class or |
Cool, thanks @TadeasKriz ! If I can figure out the cause, I'll open a PR. ;) |
Thanks! From what I see, it is the logic of tokenization and generation of initializers. I probably completely forgot about custom initializers as I added class support in a bit of a hurry. Great catch! :) |
Hey, @a-voronov added basic support for initializers, I'll give the dummy project a try :) |
Unfortunately, no dice, it will need more work. |
@TadeasKriz Thanks!
|
@a-voronov I'm aware of these problems. Fortunately @FilipDolnik is working on tests for the generator, so it will be easier to test more files whether or not the generator works as expected. |
Any news on the initializers issue? |
It would be great to be able to Mock classes with custom initializers as this is typically heavily used in our projects or dependent frameworks where we do not have much influence on the structure. Is there a timeline or any plans for working on this issue? Thanks! |
Hey guys, new Cuckoo 0.7.0 is out with fixed initializers issue :) Sorry for the long wait. |
Great Job. Thank you! |
Hey guys, I'm having an issue related to initializers, so I thought I could add it to this thread. I've looked at the Generator code a bit and was able to reproduce this with I think it could be fixed in |
@0xPr0xy check my PR. it fix deinit issue |
@TadeasKriz I'm opening this issue per our discussion on
Cuckoo
repository.Per the README, CuckooGenerator supports mocks created from classes.
In my testing, however, I cannot get this to work. Rather, there are always several syntax errors.
CuckooTestDummy is a dummy test project that showcases the errors I'm seeing.
The text was updated successfully, but these errors were encountered: