Commit Graph

120 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říž b1c7c77dbb Fix type equality check to rule out whitespace inconsistencies. 2020-04-01 15:07:13 +02:00
Tadeas Kriz fb9e2ea421 Fix compilation issue introduced by a wrong merge. 2020-02-20 21:05:29 +01:00
Tadeas Kriz 619d8c73dd Adjust accessibility to match enclosing container. 2020-02-20 21:05:29 +01: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 808a19f920 Code cleaning 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říž 9947868805 Add container accessibility to appropriate places in templates. 2019-07-30 16:18:39 +02:00
Matyáš Kříž 39257d9cc8 Add initial implementation of a type guesser. 2019-07-22 13:10:48 +02:00
Matyáš Kříž e405dbfe0a Copy protocol's accessibility to the implementation caller class. 2019-07-22 13:09:53 +02:00
Matyáš Kříž 86432954a9 Revert accessibility inheritance. 2019-07-22 13:09:53 +02:00
Matyáš Kříž b3fd0dacfd Some more cleaning along with one more compile test case. 2019-05-29 20:06:10 +02:00
Matyáš Kříž fe3af6709e Clean up and fix a bug where adding a private name to a function made it generate twice and fail the compilation. 2019-05-29 19:44:49 +02:00
Matyáš Kříž 694bd9c8be Fix generic protocol generation and type erasure with multiple methods of same name. 2019-05-26 15:37:40 +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říž 922889ca32 Remove redundant optional classes. 2019-05-16 19:10:40 +02:00
Matyáš Kříž e16fb3a383 Add support for optional read only properties. 2019-05-16 18:51:03 +02:00
Matyáš Kříž b4c2bbe5b7 Fix incorrect test and simplify two ternary operators. 2019-05-15 17:48:16 +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
Matyáš Kříž 083a6b5c17 Add support for rethrowing functions. 2019-05-14 17:39:15 +02:00
Davide Mazzoni 1b71fcfd2e Add property attributes to stubs and proxies 2019-05-14 14:54:51 +02:00
Matyáš Kříž 2305ec2221 Add necessary types and fix errors. 2019-05-14 14:53:42 +02:00
Matyáš Kříž ec41a4ff97 Add a test class with generic methods to be generated. 2019-05-14 14:07:54 +02:00
Matyáš Kříž bf8033643c Address PR comments. 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říž 505da8310f Fix known problems with return type containing “w”. 2019-05-14 14:07:54 +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
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říž a4e6e5fae6 Remove unnecessary file. 2019-05-14 14:07:54 +02:00
Matyáš Kříž f4124a6802 Add generic protocol capability. 2019-05-14 14:07:54 +02:00
Matyáš Kříž f2b492e60e Add generic protocol parsing and generation.
It doesn’t compile yet, though.
2019-05-14 14:07:54 +02:00
Matyáš Kříž b739903983 Add generic class support. 2019-05-14 14:04:47 +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říž 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říž 6fc3283bfc Check return type for equality as well. 2019-01-24 11:10:21 +01:00
Matyáš Kříž 1cd91fb1f4 Finish subimports. 2019-01-24 11:09:03 +01:00
Matyáš Kříž dd252b5b75 Generate correct import. 2019-01-24 11:09:03 +01:00
Matyáš Kříž 4f24586e9c Make regular expressions easier to modify and fix missing backslash. 2019-01-24 11:09:03 +01:00
Matyáš Kříž 312257727f Add support for importing individual types. 2019-01-24 11:09:03 +01:00
Matyáš Kříž 233a04fda5 Add `debugMode` capability to `Tokenizer` to output less information in debug mode. 2019-01-24 11:08:16 +01:00
Matyáš Kříž f9f947fc5b Ignore classes marked as `final`. 2019-01-24 11:08:16 +01:00