Commit Graph

19 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říž b3bec5f8ff Clean up project. 2020-06-28 16:43:22 +02: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říž acf338e4a1 Fix two bugs introduced by code cleaning. 2018-11-09 13:36:14 +01: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říž 0a5c4f7f1d Remake `ContainerToken` filtering to be more effective and easier to add more filters in the future. (@TadeasKriz) 2018-04-27 13:55:28 +02:00
Matyáš Kříž 76472af91e Add regular expression `class` and `protocol` matching. 2018-04-27 13:55:28 +02:00
Matyáš Kříž 3793af312a Add `glob` switch that parses input paths as globs enabling for easier project scaling. 2018-04-27 13:55:28 +02:00
Matyáš Kříž 682619c35f Use `Switch` instead of `Option`. 2018-04-06 20:01:30 +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
Gyuri Grell ace61bb081 The sort of input files occurred to soon
* The files input via options are mapped to Path objects then sorted. This actually happened too soon, since the array is then converted to a Set, then converted back to an Array. The Set conversion changes the order (since it is unordered) and those we lost the effect of the sort. I move the sort to the correct place, which is on the outermost Array so that the inputPathValues array is now correctly sorted.
2018-03-23 18:18:37 +01:00
Gyuri Grell f5093adcae Fixes a regression introduced in 96ebbbf
* There was an attempt to make the file order deterministic, but the sorting that was added only worked if all mocks were generated in a single file. If generated to a path, which creates a file per mock, the filenames and the file contents did not match. Solution was to sort the set of paths passed in as options instead, moving the sorting a little earlier than before.
2018-02-21 10:08:02 +01:00
Tadeas Kriz 8e49eefd4d Remove TemplateEncoder and change Spy behavior. 2017-11-14 22:24:18 +01:00
Ian Keen 96ebbbf9ca Fix nondeterministic handling of input files 2017-11-09 11:23:02 +01:00
KaosDG 725e30ef3f Updating Cuckoo for Swift 4.0
- Created new swift 4 Package, and updated to latest API.
- Updated package dependencies.  Note: FileKit points to /develop branch, this should be updated once a Sweift 4 version is released.
- Required code changes to build in Swift-4.0
2017-10-02 19:40:03 +02:00
Arjan Duijzer 8d09211853 Add option to exclude classes and/or protocols from mock generation 2017-04-25 23:13:04 +02:00
Tadeas Kriz 25c061a489 Fix build timeouting. 2017-04-25 18:02:57 +02:00
Tadeas Kriz c24f2edd60 Switch Generator to Swift Package Manager. 2017-02-24 17:52:11 +01:00