Commit Graph

85 Commits

Author SHA1 Message Date
Tadeas Kriz 4b403883ea Fix not being able to put Optional into functions accepting Optionals. 2019-03-20 19:17:55 +01:00
Matyáš Kříž 417075a94a WIP allow non-optional values to be passed as matchers for optionals. 2019-03-19 12:58:21 +01:00
Matyáš Kříž ba434e6e91 Add support for inout method parameters. 2019-03-12 17:44:32 +01:00
Matyáš Kříž 9e965f55e2 Ignore everything final. 2019-03-12 14:09:24 +01:00
Matyáš Kříž 0944bca05b Generate public variables and functions in public classes. 2019-03-11 11:17:45 +01:00
Matyáš Kříž 349fa1c154 Temporarily fix unintentional collision because of fail-safe classes being in the input file.
It creates way too many merge conflicts if we tried to apply the full fix here.
2019-01-31 13:24:26 +01:00
Matyáš Kříž 1cd91fb1f4 Finish subimports. 2019-01-24 11:09:03 +01:00
Matyáš Kříž e2bc56d7fc Add `FinalClassStub` to the fail-safe. 2019-01-24 11:08:16 +01:00
Matyáš Kříž 75e5ef54a8 Add name conflict in case Cuckoo Generator tries to generate `final` class as a fail-safe. 2019-01-24 11:08:16 +01:00
Matyáš Kříž f9f947fc5b Ignore classes marked as `final`. 2019-01-24 11:08:16 +01:00
Matyáš Kříž 5867e24421 Add basic attribute generation. 2019-01-24 11:07:08 +01:00
Tadeas Kriz c6baeda34c Add first draft of a new Mock initialization DSL. 2018-07-06 15:39:08 +02:00
Tadeas Kriz 59f2240831 Reintroduce support for pre-0.11.0 Cuckoo spies. 2018-06-05 16:35:51 +02:00
Jason Gavris 645ba65c73 Add test for sub protocol method 2018-03-23 18:35:49 +01:00
Arjan Duijzer 614dfaa515 Added test-cases for excluding Classes and Protocols from Mock stub generation 2018-01-02 11:21:21 +01:00
Arjan Duijzer eaab7db26d Added ParameterMatcher for (optional) throwing closures and optionals, e.g. anyThrowingClosure(), anyOptionalThrowingClosure and null()
Added Acceptance test for inheritance stubbing and verifying
2017-12-29 14:14:46 +01:00
Arjan Duijzer f0f31bd0e9 Adding support for overloaded method names 2017-12-29 10:55:11 +01:00
Tadeas Kriz 0f52ceef7e Add a few more tests. 2017-11-15 00:16:23 +01:00
Tadeas Kriz 8e49eefd4d Remove TemplateEncoder and change Spy behavior. 2017-11-14 22:24:18 +01:00
Tadeas Kriz 0ecde3fdcd Remove workspace and improve project setup. 2017-11-14 17:03:12 +01:00
Tadeas Kriz eb1992abdb Add Array and Set equalTo functions when Element is Equatable. 2017-11-09 19:55:52 +01:00
Tadeas Kriz 3adcde2fc0 Fix warnings. 2017-11-09 16:05:28 +01:00
Tadeas Kriz 52dcdbf17f Fix #151. 2017-10-17 11:55:16 +02:00
KaosDG 75be1e38d7 Adjusted the logic for determining if a closure is implicitly escaping (optional closure)
Adjusted the nested Closure logic so that we can pass whether the parent method `throws`
Adjusted the Mock.swift.stencil to account for the above, and some cleanup
Added a few more test cases in TestedSubclass.swift for closures that throw, etc.
2017-10-02 19:40:03 +02:00
KaosDG 85da0d9fb1 added open/close nested closure filters for the withoutActuallyEscaping(…) portion.
cleaned up the mock stencil a little.
added a sample multi-closure method
2017-10-02 19:40:03 +02:00
KaosDG 4ca15ff61d working on the generated mocks.
Closures are a problem :(
2017-10-02 19:40:03 +02:00
Tadeas Kriz 12e8cdcc8b Fix #118. 2017-04-27 15:36:26 +02:00
Tadeas Kriz 9c09ea19d8 Fix crash when using non-ASCII characters. 2017-04-27 14:46:58 +02:00
Tadeas Kriz 129ba1b9d5 Bump version. 2017-04-19 23:04:22 +02:00
Tadeas Kriz 2f90d0276a Add to compilable and green test state. 2017-04-02 18:03:31 +02:00
Tadeas Kriz b035408a6b WIP: Add objc support. 2017-02-24 20:07:52 +01:00
Tadeas Kriz 61ab7df415 Fix issues from merge. 2017-02-24 18:08:58 +01:00
Tadeas Kriz 35d18f6eb5 Add stencil templates to replace Generator. 2017-02-24 17:53:17 +01:00
Valerij Gerasimenko 78330f15dc rename manager to cuckoo_manager 2017-02-24 17:49:45 +01:00
Louis van der Stam 463ed7a6c1 Generate empty init functions when generating a mock from a protocol. 2017-02-23 15:53:36 +01:00
Arjan Duijzer 4c86636835 Added support for mocking Inherited types 2017-02-23 15:39:53 +01:00
Miguel Bassila 953f4bf9ad Add open class to be generated by Cuckoo 2017-02-14 16:35:09 +01:00
Tadeas Kriz eb569cda77 Bump version and fill changelog. 2017-01-16 17:03:08 +01:00
Louis van der Stam b0661e94b2 Fixed the access modifier and added a public class with public members… 2017-01-16 16:49:23 +01:00
Louis van der Stam a6d60fadfd Added class from which code that doesn't compile is generated 2017-01-16 16:16:42 +01:00
Louis van der Stam efa6e55203 Moved the files fed into the generator out of the test project and fixed the tests. This reflects a common test configuration. 2017-01-16 16:16:42 +01:00
Louis van der Stam 4448feeebb Added function with constructed default values. Don’t know how to properly test this. 2017-01-16 15:46:05 +01:00
Louis van der Stam 25a6a217b0 Added some to the tested class and inspected the generated code 2017-01-13 15:48:27 +01:00
Filip Dolník 5094d166d8 Fix support of closures and unwrapped optionals. 2016-12-18 21:31:41 +01:00
Filip Dolník 36dc88e877 Fix PR issues. 2016-09-23 17:47:08 +02:00
Filip Dolník a823f9bc22 Fix rebase errors. 2016-09-22 10:08:44 +02:00
Filip Dolník c4a7e16d69 Add stub objects. 2016-09-22 10:01:21 +02:00
Filip Dolník b3f6d78c8d Add support for Swift 3. 2016-09-22 10:00:38 +02:00
Filip Dolník f684533f03 Convert code to Swift 3. 2016-09-22 10:00:38 +02:00
Tadeas Kriz 2c545b932b Add generation of no-impl stubs. 2016-09-20 22:45:29 +02:00