Cuckoo icon indicating copy to clipboard operation
Cuckoo copied to clipboard

Boilerplate-free mocking framework for Swift!

Results 120 Cuckoo issues
Sort by recently updated
recently updated
newest added

## 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...

enhancement

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...

bug

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,...

bug

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...

bug

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() {...

bug
awaiting reply

What is the best way to stub and test closures so you don't have to use waitUntil?

enhancement
awaiting reply

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....

enhancement

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...

duplicate

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...

help wanted

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`...

bug