Commit Graph

39 Commits

Author SHA1 Message Date
Emiel Verlinden a19958b964 Add option to prefix classnames of mocks and stubs. 2020-06-28 16:45:33 +02:00
Matyáš Kříž ed1e947e1f Improve code stylistically. 2019-11-06 13:45:16 +01:00
Matyáš Kříž 44dedd3859 Improve code stylistically. 2019-11-05 16:00:49 +01:00
Pubbus fc91ef5e1c Refactor and fix closure return type matcher 2019-11-05 16:00:49 +01:00
Pubbus 69facb06bb Fix closure generation, return type is required in `withoutActuallyEscaping` from swift 5.1 (XCode11) 2019-11-05 16:00:49 +01:00
Matyáš Kříž 2305ec2221 Add necessary types and fix errors. 2019-05-14 14:53:42 +02:00
Matyáš Kříž ae4d42b8d5 After-rebase fixes. 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
Tadeas Kriz 93a42ccacc Fix not being able to put Optional into functions accepting Optionals. 2019-05-14 14:04:47 +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říž 231216b588 Code cleaning. 2018-11-05 15:12:00 +01:00
Tadeas Kriz 12f9bac435 Fix warnings. 2018-10-09 13:52:23 +02:00
Matyáš Kříž bee9b97bf0 Add a debug flag that generates general info above methods when used. 2018-04-06 19:38:00 +02:00
Tadeas Kriz 8e49eefd4d Remove TemplateEncoder and change Spy behavior. 2017-11-14 22:24:18 +01: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
Tadeas Kriz fe13945a78 Remove old generator methods. 2017-02-24 18:37:50 +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
Valerij Gerasimenko ad4cc004db skip deinit generation. update optional protocol method generation 2017-02-23 23:22:47 +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
Miguel Bassila c0063f1a69 Update minAccessibility to return Open when val1 or val2 is Open 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 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 a4dfb0e301 Remove auto generated inits. 2016-09-22 10:01:21 +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
Filip Dolník 2ea2325157 Add spy method to Mock protocol. 2016-09-07 14:55:33 +02:00
Filip Dolník 4a2a72fac9 Fix spies. 2016-09-07 14:37:18 +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 aeb465339a Merge with CuckooGenerator. 2016-08-26 12:14:35 +02:00