Commit Graph

48 Commits

Author SHA1 Message Date
Tadeas Kriz 1d31b0634c Adjust accessibility to match enclosing container. 2020-01-17 11:20:32 +01:00
Matyáš Kříž cc5afef8f7 Add test cases for closures. 2019-11-06 13:42:04 +01:00
Pubbus 808a19f920 Code cleaning 2019-11-05 16:00:49 +01:00
Pubbus ff4c627d42 Add tests for closure return type extraction. 2019-11-05 16:00:49 +01:00
Matyáš Kříž b0c66e7afa Add initial convenience matchers for `Array`, `Dictionary`, and `Set` types. 2019-09-04 17:25:36 +02:00
Matyáš Kříž 39257d9cc8 Add initial implementation of a type guesser. 2019-07-22 13:10:48 +02:00
Matyáš Kříž 86432954a9 Revert accessibility inheritance. 2019-07-22 13:09:53 +02:00
Matyáš Kříž d69bcd5bdd Fix a bug concerning empty public name methods with no private ones. 2019-05-26 15:36:12 +02:00
Matyáš Kříž e16fb3a383 Add support for optional read only properties. 2019-05-16 18:51:03 +02:00
Dotor, Dr. Alexander f9e035475c Add tests for stubbing optional read only properties. 2019-05-16 18:51:03 +02:00
Matyáš Kříž 449b71e3db Fix `any()` not working anymore by itself with optional parameters in functions. 2019-05-15 17:44:34 +02:00
Davide Mazzoni 14afe0a125 Add @available-annotated property to TestedClass 2019-05-14 14:55:20 +02:00
Matyáš Kříž 2305ec2221 Add necessary types and fix errors. 2019-05-14 14:53:42 +02:00
Matyáš Kříž 0e894e2b7d Don’t use `UIKit` in tests so that it can be tested on Mac OS. 2019-05-14 14:07:54 +02:00
Matyáš Kříž 803bd38b58 Add throwing and rethrowing stub functionality. 2019-05-14 14:07:54 +02:00
Matyáš Kříž ffc33ba6db Make closures with no parameters work. 2019-05-14 14:07:54 +02:00
Matyáš Kříž 7cd237c212 Add possibility to mock functions with closures containing up to 7 parameters. 2019-05-14 14:07:54 +02:00
Matyáš Kříž 7d07b486ac Finish generic where clause functionality. 2019-05-14 14:07:54 +02:00
Matyáš Kříž 79c7961e68 Add support for inheritance generic parameters in methods. 2019-05-14 14:07:54 +02:00
Matyáš Kříž ffa15c5a84 Move collision classes to different file, so that they don’t get mocked. 2019-05-14 14:07:54 +02:00
Matyáš Kříž edb170175e WIP allow non-optional values to be passed as matchers for optionals. 2019-05-14 14:04:47 +02:00
Matyáš Kříž 6affe4029b Add support for inout method parameters. 2019-05-14 14:04:47 +02:00
Matyáš Kříž 170f1b4004 Ignore everything final. 2019-05-14 14:04:47 +02:00
Matyáš Kříž 98559606f8 Generate public variables and functions in public classes. 2019-05-14 14:04:47 +02: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 8e49eefd4d Remove TemplateEncoder and change Spy behavior. 2017-11-14 22:24:18 +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
Tadeas Kriz 12e8cdcc8b Fix #118. 2017-04-27 15:36:26 +02:00
Tadeas Kriz b035408a6b WIP: Add objc support. 2017-02-24 20:07:52 +01:00
Miguel Bassila 953f4bf9ad Add open class to be generated by Cuckoo 2017-02-14 16:35:09 +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 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 a823f9bc22 Fix rebase errors. 2016-09-22 10:08:44 +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
Filip Dolník c7dd503669 Fix #54. 2016-09-07 12:57:45 +02:00
Tadeas Kriz d8b65f542f Fix #55. 2016-08-31 15:54:44 +02:00
Filip Dolník 05cb848704 Refactor tests. 2016-07-05 18:29:10 +02:00