Commit Graph

301 Commits

Author SHA1 Message Date
Matyáš Kříž 5b1ed26237 Address PR comments. 2019-03-27 13:20:43 +01:00
Matyáš Kříž fb5eb7936a Make `Optional` tests functional. 2019-03-27 12:08:56 +01:00
Matyáš Kříž 55b7deaf9e Add throwing and rethrowing stub functionality. 2019-03-27 12:00:37 +01:00
Matyáš Kříž 28de6c1d7d Make closures with no parameters work. 2019-03-27 11:57:35 +01:00
Matyáš Kříž 3cbae5ed2c Add possibility to mock functions with closures containing up to 7 parameters. 2019-03-27 11:57:14 +01:00
Matyáš Kříž 76f85110ac Fix optional closure matching. 2019-03-27 10:35:17 +01:00
Matyáš Kříž e3ac95f5f0 After-rebase fixes. 2019-03-25 13:19:31 +01:00
Matyáš Kříž b73debd32b Finish generic where clause functionality. 2019-03-25 12:57:16 +01:00
Matyáš Kříž a2f9e68e72 Add support for inheritance generic parameters in methods. 2019-03-25 12:54:45 +01:00
Matyáš Kříž 807dc8953b Move collision classes to different file, so that they don’t get mocked. 2019-03-25 12:49:35 +01:00
Matyáš Kříž f236c5e3f6 Remove unnecessary file. 2019-03-25 12:48:58 +01:00
Matyáš Kříž e078d4db98 Add documentation. 2019-03-25 12:48:58 +01:00
Matyáš Kříž 9180694e93 Fix tests. 2019-03-25 12:48:58 +01:00
Matyáš Kříž 335a2175c1 Add some basic tests for generic class and generic protocol mocks. 2019-03-25 12:48:58 +01:00
Matyáš Kříž a7a779c9e2 Add generic protocol capability. 2019-03-25 12:48:58 +01:00
Matyáš Kříž 52a69196dc Add generic protocol parsing and generation.
It doesn’t compile yet, though.
2019-03-25 12:48:58 +01:00
Matyáš Kříž ea9bd46c23 Add generic class support. 2019-03-25 12:46:04 +01:00
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říž 4d617cd573 Bump version. 2019-02-23 16:39:03 +01:00
Matyáš Kříž 03bf8c1c73 Improve the `run` script. 2019-02-23 15:45:51 +01:00
susan335 87d92153d4 Add about environment variable GITHUB_ACCESS_TOKEN 2019-02-23 12:05:01 +01:00
susan335 63b03cb2d1 Fix indent 2019-02-23 12:05:01 +01:00
susan335 b97e7c3dda Add curl option when download cuckoo_generator
To avoid Github rate limit issues.
In shared environment(like a Circle CI), run script could hit a Github API rate limit.
2019-02-23 12:05:01 +01:00
dmazzoni b0b64cf503 Support spaces in script path in build_generator 2019-02-23 11:58:47 +01:00
Maxim Berezhnoy 6e760b70ce consistent usage across the file 2019-02-23 11:42:23 +01:00
Maxim Berezhnoy 83e79fffd6 consistent variable usage 2019-02-23 11:42:23 +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říž 6fc3283bfc Check return type for equality as well. 2019-01-24 11:10:21 +01:00
Matthew Cross 944f2c7f8a Change SwiftKit to Brightify. 2019-01-24 11:10:08 +01:00
Matthew Cross 515a91c5ca Update generator and run script usage. 2019-01-24 11:09:54 +01:00
Matyáš Kříž 2bcce595b3 Add `—clean` option to the run script to rebuild the Cuckoo Generator. 2019-01-24 11:09:17 +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říž 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říž 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
Matyáš Kříž aa0b7ec77a Use older string subscripting to compile on Xcode 9. 2019-01-24 11:08:16 +01:00
Matyáš Kříž 04c9db0400 Generate attributes for methods and variables. 2019-01-24 11:08:16 +01:00
Matyáš Kříž 5867e24421 Add basic attribute generation. 2019-01-24 11:07:08 +01:00
Matyáš Kříž 1b77516e83 Generate attributes. 2019-01-24 11:07:08 +01:00
Matyáš Kříž 2f6ab41bbc Add `@available` attribute support. 2019-01-24 11:05:37 +01:00
Matyáš Kříž 2961debaba Transform IUO return value as well. 2019-01-24 11:04:30 +01:00
Matyáš Kříž 7ad094cf78 Transform IUO into `Optional` to prevent errors. 2019-01-24 11:04:30 +01:00