Cuckoo
Cuckoo copied to clipboard
Boilerplate-free mocking framework for Swift!
## Expected Behavior The run script successfully generates all mocks. ## Current Behavior The run script crashes with the message `Fatal error: String index is out of bounds` ## Steps...
Hi, I'm using Cuckoo 1.1.1 with Carthage and it's causing my build to fail. When the generator runs against a specific file it causes a segfault. I've created a demo...
I want to stub `inout` parameter. Like below. ```swift // This is a protocol which uses `inout` parameter. protocol InoutProtocol { func doSomething(inoutValue: inout Int) } // In test code,...
The other commands work fine, but I’m not able to get the version. It just prints a blank line! ``` $ ./Pods/Cuckoo/cuckoo_generator Available commands: generate Generates mock files help Display...
Hey, i am trying to stub a function that takes a generic: ```swift func createUser(creds: T, completion: @escaping CreateAuthUserHandler) ``` The way I try to stub: ```swift func test_registerUser_withThridParty() {...
What is the best way to stub and test closures so you don't have to use waitUntil?
I have a class that accepts an instance of third-party library class in initializer (injection). But Cuckoo framework does not allow mocking a class that is not in our project....
In my project, I'm defining protocols to use for dependency injection. When used for injecting system provided classes, I'm purposefully calling my protocol the same as the type from Foundation...
Hi! I'm an Android developer that has been working on iOS for one year now. I'm used to libraries like mockito that create mocks automatically, I've been looking for something...
I have an input file that contains two protocols and one class. I would like Cuckoo to ignore the class. Despite running cuckoo with the options `--no-classes` and `--exclude ClassName`...