Cuckoo
Cuckoo copied to clipboard
Boilerplate-free mocking framework for Swift!
Added support for `OCMQuantifier` to `objcVerify` function. This PR fixes #366
Hi, the following warning occurred due to Swift Concurrency support. `No 'async' operations occur within 'await' expression` I think that `crashOnProtocolSuperclassCall()` method is not an async method so I don't...
Hello! I'm getting a phase script error of `/Pods/Cuckoo/cuckoo_generator: terminated with signal 4; aborting`. I have narrowed it down and believe it's the following line that's causing an issue `@LazyInjected(Container.service)...
When having a protocol define inheritance from `NSObjectProtocol` like this: ```swift protocol TestProtocol: NSObjectProtocol { … } ``` Cuckoo generates: ```swift class MockTestProtocol: TestProtocol, Cuckoo.ProtocolMock { … } ``` which...
Bumps [cocoapods-downloader](https://github.com/CocoaPods/cocoapods-downloader) from 1.5.1 to 1.6.3. Release notes Sourced from cocoapods-downloader's releases. 1.6.3 Enhancements None. Bug Fixes None. 1.6.2 Enhancements None. Bug Fixes None. 1.6.1 Enhancements None. Bug Fixes None....
So I was trying to mock UserDefaults `string(forKey:)` method using OCMock. My attempt: ```swift let mock = objcStub(for: UserDefaults.self) { (stubber, mock) in stubber.when(mock.string(forKey: "key")).thenReturn("value") //SEG FAULT 11 } ```...
This has the added benefit of generating a consistent development environment. The `xcodeproj` generation, CocoaPods integration, and opening the project is provided by the `Makefile` in the project, so that...
Hello, I'm new to Cuckoo and have a basic question. How can I properly expect that a property is called in an Objective-C class? Please find below the relevant files....
I'm mocking a protocol with a function that looks like this: ```swift func foo( completion: @escaping ( _ bar: Int, _ baz: Int, _ qux: Int ) -> Void )...
Is there a plan to use OCMock with Swift Package Manager? Would be awesome to stub Apples Objective-C classes with Cuckoo via SPM 😀