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říž
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říž
b5c472b4a2
Remove forgotten return value.
2019-05-29 20:16:56 +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říž
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
Matyáš Kříž
083a6b5c17
Add support for rethrowing functions.
2019-05-14 17:39:15 +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říž
ec41a4ff97
Add a test class with generic methods to be generated.
2019-05-14 14:07:54 +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říž
14eaaf945f
Add some basic tests for generic class and generic protocol mocks.
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
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
Arjan Duijzer
614dfaa515
Added test-cases for excluding Classes and Protocols from Mock stub generation
2018-01-02 11:21:21 +01:00
Arjan Duijzer
eaab7db26d
Added ParameterMatcher for (optional) throwing closures and optionals, e.g. anyThrowingClosure(), anyOptionalThrowingClosure and null()
...
Added Acceptance test for inheritance stubbing and verifying
2017-12-29 14:14:46 +01:00
Arjan Duijzer
f0f31bd0e9
Adding support for overloaded method names
2017-12-29 10:55:11 +01:00
Tadeas Kriz
0f52ceef7e
Add a few more tests.
2017-11-15 00:16:23 +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
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