> marathon install MakeAWishFoundation/SwiftyMocky-CLI
+Still, we would encourage to try new CLI and share a feedback. We believe it will make using and setting up SwiftyMocky way easier. If you have an existing setup, install CLI as per this guide and try:
+> swiftymocky migrate
-Make:
-
-Clone from https://github.com/MakeAWishFoundation/SwiftyMockyCLI and run make
in the root directory.
+
+Getting started
-2. Integrating SwiftyMocky runtime into test target:
+1. Integrating SwiftyMocky:
CocoaPods:
@@ -373,6 +362,13 @@ 2. I
pod "SwiftyMocky"
+
Use CLI tool from your project directory:
+# To setup initial Mockfile
+% ./Pods/SwiftyMocky/bin/swiftymocky init
+# To generate mocks
+% ./Pods/SwiftyMocky/bin/swiftymocky generate
+
+
Carthage:
To install, add following to you Cartfile:
@@ -381,34 +377,56 @@ 2. I
Then execute carthage update
-For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation or consult [Carthage documentation][carthage-adding-framework].
+For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation or consult [Carthage documentation][carthage-adding-framework].
+
+You need to install CLI to generate mocks - see installation
Swift Package Manager:
Add SwiftyMocky to you Package.swift dependencies:
dependencies: [
- .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0-pre"),
+ .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0"),
]
+You need to install CLI to generate mocks - see installation
+
Note: Examples of SwiftyMocky integration as a tool for Unit tests, as well as a Prototyping framework, are here: https://github.com/MakeAWishFoundation/SM-Integration-Tests
+
+2. Installing SwiftyMocky CLI:
+
+Mint 🌱:
+> brew install mint
+> mint install MakeAWishFoundation/SwiftyMocky
+
+
+Marathon 🏃:
+> marathon install MakeAWishFoundation/SwiftyMocky
+
+
+Make:
+
+Clone from https://github.com/MakeAWishFoundation/SwiftyMockyCLI and run make
in the root directory.
+
+
+
3. Generate mocks
Annotate your protocols that are going to be mocked, making them adopt AutoMockable
protocol, or adding annotation comment above their definition in the source code.
-Mocks are generated from your project root directory, based on configuration inside Mockfile.
+Mocks are generated from your project root directory, based on configuration inside Mockfile.
> swiftymocky setup # if you don't have a Mockfile yet
> swiftymocky doctor # validate your setup
> swiftymocky generate # generate mocks
-More informations about CLI and mock generation
+More informations about CLI and mock generation
-If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
+If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
Usage
@@ -465,7 +483,7 @@ 3. Check invocations of methods, subscripts and properties - Verify
@@ -528,21 +546,21 @@ Full documentation is available here, as well as through docs directory.
+Full documentation is available here, as well as through docs directory.
-Guides - Table of contents
+Guides - Table of contents
-Changelog is available here
+Changelog is available here
All supported features
-For list all supported features, check documentation here or [guides][link-guides-features]
+For list all supported features, check documentation here or [guides][link-guides-features]
Examples of usage
-For more examples, check out our example project, or examples section in guides.
+For more examples, check out our example project, or examples section in guides.
To run the example project, clone the repo, and run pod install
from the Example directory first.
diff --git a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/installation.html b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/installation.html
index 19df0679..9aa9df99 100644
--- a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/installation.html
+++ b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/installation.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
FatalErrorUtil
+
+ OptionalType
+
WithSequencingPolicy
@@ -281,11 +284,11 @@ SwiftyMocky CLI
Mint 🌱:
> brew install mint
-> mint install MakeAWishFoundation/SwiftyMocky-CLI
+> mint install MakeAWishFoundation/SwiftyMocky
Marathon 🏃:
-> marathon install MakeAWishFoundation/SwiftyMocky-CLI
+> marathon install MakeAWishFoundation/SwiftyMocky
Make:
@@ -345,7 +348,7 @@ Join our community on Slack! -> [invitation link here][link-slack]
+ SwiftyMocky 4.1.0
+
-Check out guides, or full documentation
+Check out guides, or full documentation
Table of contents
@@ -286,8 +287,8 @@ Table of contents
- Getting started:
-- Installing SwiftyMocky CLI
- Integrating SwiftyMocky runtime into test target
+- Installation SwiftyMocky CLI
- Generate mocks
- Usage:
@@ -312,9 +313,9 @@
Table of contents
Overview
-SwiftyMocky is Lightweight, strongly typed framework for Mockito-like unit testing experience. As Swift doesn’t support reflections well enough to allow building mocks in runtime, library depends on Sourcery, that scans your source code and generates Mocks Swift code for you!
+SwiftyMocky is a strongly typed framework for Mockito-like unit testing experience. Library depends on Sourcery, that scans your source code and generates Mocks Swift code for you!
-The idea of SwiftyMocky is to automatically mock Swift protocols. The main features are:
+The idea of SwiftyMocky is to automatically mock Swift protocols and protocol compositions. The main features are:
- easy syntax, utilising full power of auto-complete, which makes writing test easier and faster
@@ -329,43 +330,31 @@ Overview
-Important!!! Version 4.x.x
-
-Current version has several significant changes. It removes deprecated methods (which might be breaking) and moves CLI to the new repository.
-
-We consider current version as stable. We are moving toward using the new Mockfile but the previous configuration format would be still supported. Library works with Swift 4.1, 4.2, 5.0, 5.1.2 and Sourcery 0.17-0.18.
+Important!!! Version 4.1.x
-While it is technically possible to integrate SwiftyMocky on Linux targets, there is no Mock generation feature there yet. You can use SwiftyMokcy runtime via SwiftPM though, as long as your are fine with generating mocks on mac machine.
+CLI was moved bask to the main (this) repo. CLI in this repository will be supported at least until version 5.0.0.
+Version 4.0.x
-
-Getting started
+Current version has several significant changes. It removes deprecated methods (which might be breaking) and deprecates having CLI in the new repository.
-To start working with SwiftyMocky you need to:
+SwiftyPrototype was also extracted to separate library. There are no more compilation flags, so if you were relying on SwiftyMocky with -DMockyCustom
, you will have to switch to SwiftyPrototype
.
-
-- Install CLI
-- Integrate SwiftyMocky runtime library
-- Generate Mocks and add to your test target
-
+We consider current version as stable. We are moving toward using the new Mockfile but the previous configuration format would be still supported. Library works with Swift 4.1, 4.2, 5.0, 5.1.2 and Sourcery 1.0.x.
-
-1. Installing SwiftyMocky CLI:
+While it is technically possible to integrate SwiftyMocky on Linux targets, there is no Mock generation feature there yet. You can use SwiftyMokcy runtime via SwiftPM though, as long as your are fine with generating mocks on mac machine.
+Migration from 3.2.0 and below
-Mint 🌱:
-> brew install mint
-> mint install MakeAWishFoundation/SwiftyMocky-CLI
-
+The migration is not required, you can keep using SwiftyMocky as you did before. The Legacy setup is described in guides section.
-Marathon 🏃:
-> marathon install MakeAWishFoundation/SwiftyMocky-CLI
+Still, we would encourage to try new CLI and share a feedback. We believe it will make using and setting up SwiftyMocky way easier. If you have an existing setup, install CLI as per this guide and try:
+> swiftymocky migrate
-Make:
-
-Clone from https://github.com/MakeAWishFoundation/SwiftyMockyCLI and run make
in the root directory.
+
+Getting started
-2. Integrating SwiftyMocky runtime into test target:
+1. Integrating SwiftyMocky:
CocoaPods:
@@ -373,6 +362,13 @@ 2. I
pod "SwiftyMocky"
+
Use CLI tool from your project directory:
+# To setup initial Mockfile
+% ./Pods/SwiftyMocky/bin/swiftymocky init
+# To generate mocks
+% ./Pods/SwiftyMocky/bin/swiftymocky generate
+
+
Carthage:
To install, add following to you Cartfile:
@@ -381,34 +377,56 @@ 2. I
Then execute carthage update
-For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation or consult [Carthage documentation][carthage-adding-framework].
+For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation or consult [Carthage documentation][carthage-adding-framework].
+
+You need to install CLI to generate mocks - see installation
Swift Package Manager:
Add SwiftyMocky to you Package.swift dependencies:
dependencies: [
- .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0-pre"),
+ .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0"),
]
+You need to install CLI to generate mocks - see installation
+
Note: Examples of SwiftyMocky integration as a tool for Unit tests, as well as a Prototyping framework, are here: https://github.com/MakeAWishFoundation/SM-Integration-Tests
+
+2. Installing SwiftyMocky CLI:
+
+Mint 🌱:
+> brew install mint
+> mint install MakeAWishFoundation/SwiftyMocky
+
+
+Marathon 🏃:
+> marathon install MakeAWishFoundation/SwiftyMocky
+
+
+Make:
+
+Clone from https://github.com/MakeAWishFoundation/SwiftyMockyCLI and run make
in the root directory.
+
+
+
3. Generate mocks
Annotate your protocols that are going to be mocked, making them adopt AutoMockable
protocol, or adding annotation comment above their definition in the source code.
-Mocks are generated from your project root directory, based on configuration inside Mockfile.
+Mocks are generated from your project root directory, based on configuration inside Mockfile.
> swiftymocky setup # if you don't have a Mockfile yet
> swiftymocky doctor # validate your setup
> swiftymocky generate # generate mocks
-More informations about CLI and mock generation
+More informations about CLI and mock generation
-If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
+If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
Usage
@@ -465,7 +483,7 @@ 3. Check invocations of methods, subscripts and properties - Verify
@@ -528,21 +546,21 @@
Documentation
-
Full documentation is available here, as well as through docs directory.
+Full documentation is available here, as well as through docs directory.
-Guides - Table of contents
+Guides - Table of contents
-Changelog is available here
+Changelog is available here
All supported features
-For list all supported features, check documentation here or [guides][link-guides-features]
+For list all supported features, check documentation here or [guides][link-guides-features]
Examples of usage
-For more examples, check out our example project, or examples section in guides.
+For more examples, check out our example project, or examples section in guides.
To run the example project, clone the repo, and run pod install
from the Example directory first.
diff --git a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/prototyping.html b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/prototyping.html
index 24ab1a1a..1b12c292 100644
--- a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/prototyping.html
+++ b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/prototyping.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
diff --git a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/search.json b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/search.json
index 2745b158..4862a2d6 100644
--- a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/search.json
+++ b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/search.json
@@ -1 +1 @@
-{"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV5valueypvp":{"name":"value","abstract":"[internal] Returned value
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV8intValueSivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other attribute
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV5value8intValue16shortDescription7compareACyp_SiSSSbyp_ypAA7MatcherCtctcfc":{"name":"init(value:intValue:shortDescription:compare:)","abstract":"[internal] Creates new TypeErasedAttribute instance, with specified return value and compare closure
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html":{"name":"TypeErasedAttribute","abstract":"[Internal] Used to wrap availability constrained attributes, since enum cases used ubternally to"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP5valueypvp":{"name":"value","abstract":"
[internal] Returned value
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP03intE0Sivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other generic attributes values
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html":{"name":"TypeErasedValue","abstract":"[Internal] Used as generic constraint for generic method stubs.
"},"Enums/Utils.html#/s:11SwiftyMocky5UtilsO19closestCallsMessage3for4nameSSSayAA7MatcherC16ComparisonResultVG_SStFZ":{"name":"closestCallsMessage(for:name:)","abstract":"Undocumented
","parent_name":"Utils"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO10invocationyA2CmF":{"name":"invocation","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO5givenyA2CmF":{"name":"given","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO7performyA2CmF":{"name":"perform","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html":{"name":"MockScope","abstract":"Undocumented
"},"Enums/Utils.html":{"name":"Utils","abstract":"Undocumented
"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC5valuexSgvp":{"name":"value","abstract":"Last captured value (if any)
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC9allValuesSayxGvp":{"name":"allValues","abstract":"All captured values
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorCACyxGycfc":{"name":"init()","abstract":"Undocumented
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC7capture5whereAA9ParameterOyxGSbxcSg_tF":{"name":"capture(where:)","abstract":"Return parameter matcher which captures the argument.
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html":{"name":"ArgumentCaptor","abstract":"Undocumented
"},"contents.html":{"name":"Contents"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC7isValidSbvp":{"name":"isValid","abstract":"[Internal] Returns whether there are still products to be used as stub return values
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"[Internal] Stubbing policy. By default uses parent mock policy
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodCyACSayAA11StubProductOGcfc":{"name":"init(_:)","abstract":"[Internal] Creates new method init with given products.
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC10getProduct6policyAA04StubF0OAA14StubbingPolicyO_tF":{"name":"getProduct(policy:)","abstract":"[Internal] Get next product, with respect to self.policy and inherited policy
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC4stub3forAA7StubberVyxGxm_tlF":{"name":"stub(for:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC10stubThrows3forAA07StubberF0VyxGxm_tlF":{"name":"stubThrows(for:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubbedMethod"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO6returnyACypcACmF":{"name":"return(_:)","abstract":"Undocumented
","parent_name":"StubProduct"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO5throwyACs5Error_pcACmF":{"name":"throw(_:)","abstract":"Undocumented
","parent_name":"StubProduct"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO6castedxyKlF":{"name":"casted()","abstract":"[Internal] If self is returns, and nested value can be casted to T, returns value. Can fail (fatalError)
","parent_name":"StubProduct"},"Enums/MockError.html#/s:11SwiftyMocky9MockErrorO9notStubedyA2CmF":{"name":"notStubed","abstract":"Undocumented
","parent_name":"MockError"},"Extensions/UInt.html#/s:Su11SwiftyMockyE7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"UInt"},"Extensions/Optional.html#/s:Sq11SwiftyMockyE6orFailyxSSF":{"name":"orFail(_:)","abstract":"Returns unwrapped value, or fails.
","parent_name":"Optional"},"Extensions/Optional.html#/s:s26ExpressibleByStringLiteralP0cD4TypeQa":{"name":"StringLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP0cdeF4TypeQa":{"name":"ExtendedGraphemeClusterLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s33ExpressibleByUnicodeScalarLiteralP0cdE4TypeQa":{"name":"UnicodeScalarLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s26ExpressibleByStringLiteralP06stringD0x0cD4TypeQz_tcfc":{"name":"init(stringLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP08extendeddeF0x0cdeF4TypeQz_tcfc":{"name":"init(extendedGraphemeClusterLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s33ExpressibleByUnicodeScalarLiteralP07unicodedE0x0cdE4TypeQz_tcfc":{"name":"init(unicodeScalarLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByIntegerLiteralP0cD4TypeQa":{"name":"IntegerLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByIntegerLiteralP07integerD0x0cD4TypeQz_tcfc":{"name":"init(integerLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByBooleanLiteralP0cD4TypeQa":{"name":"BooleanLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByBooleanLiteralP07booleanD0x0cD4TypeQz_tcfc":{"name":"init(booleanLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByFloatLiteralP0cD4TypeQa":{"name":"FloatLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByFloatLiteralP05floatD0x0cD4TypeQz_tcfc":{"name":"init(floatLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByArrayLiteralP0cD7ElementQa":{"name":"ArrayLiteralElement","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfc":{"name":"init(arrayLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP3KeyQa":{"name":"Key","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP5ValueQa":{"name":"Value","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP010dictionaryD0x3KeyQz_5ValueQztd_tcfc":{"name":"init(dictionaryLiteral:)","parent_name":"Optional"},"Extensions/Int.html#/s:Si11SwiftyMockyE7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Int"},"Protocols/WithStubbingPolicy.html#/s:11SwiftyMocky18WithStubbingPolicyP6policyAA0dE0Ovp":{"name":"policy","abstract":"Stubbing policy
","parent_name":"WithStubbingPolicy"},"Protocols/WithStubbingPolicy.html#/s:11SwiftyMocky18WithStubbingPolicyP4withyxAA0dE0OF":{"name":"with(_:)","abstract":"[Internal] with new policy
","parent_name":"WithStubbingPolicy"},"Protocols/WithStaticSequencingPolicy.html#/s:11SwiftyMocky26WithStaticSequencingPolicyP010sequencingF0AA0eF0OvpZ":{"name":"sequencingPolicy","abstract":"Used sequencibg policy
","parent_name":"WithStaticSequencingPolicy"},"Protocols/WithSequencingPolicy.html#/s:11SwiftyMocky20WithSequencingPolicyP010sequencingE0AA0dE0Ovp":{"name":"sequencingPolicy","abstract":"Used sequencibg policy
","parent_name":"WithSequencingPolicy"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV3setyys5NeverOSScFZ":{"name":"set(_:)","abstract":"[Internal] Override handling error handler
","parent_name":"FatalErrorUtil"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV7restoreyyFZ":{"name":"restore()","abstract":"[Internal] Restores default handler
","parent_name":"FatalErrorUtil"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV05fatalD0ys5NeverOSSFZ":{"name":"fatalError(_:)","abstract":"[Internal] Perform fatal error handler
","parent_name":"FatalErrorUtil"},"Classes/SwiftyMockyTestObserver.html#/setup()":{"name":"setup()","abstract":"[Internal] No setup whatsoever
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/handleFatalError(message:file:line:)":{"name":"handleFatalError(message:file:line:)","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/s:11SwiftyMocky0aB12TestObserverC5setupyyFZ":{"name":"setup()","abstract":"Call this method to setup custom error handling for SwiftyMocky, that allows to gracefully handle missing stub fatal errors.","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/c:@M@SwiftyMocky@objc(cs)SwiftyMockyTestObserver(im)testCaseWillStart:":{"name":"testCaseWillStart(_:)","abstract":"
[Internal] Observer for test start
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/c:@M@SwiftyMocky@objc(cs)SwiftyMockyTestObserver(im)testCaseDidFinish:":{"name":"testCaseDidFinish(_:)","abstract":"[Internal] Observer for test finished
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/s:11SwiftyMocky0aB12TestObserverC16handleFatalError7message4file4lineySS_s12StaticStringVSutFZ":{"name":"handleFatalError(message:file:line:)","abstract":"[Internal] used to notify about internal error. Do not call it directly.
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html":{"name":"SwiftyMockyTestObserver"},"Structs/FatalErrorUtil.html":{"name":"FatalErrorUtil","abstract":"[Internal] Used for handling fatal errors inside library.
"},"Protocols/WithSequencingPolicy.html":{"name":"WithSequencingPolicy","abstract":"Has sequencing policy for stubbing methods
"},"Protocols/WithStaticSequencingPolicy.html":{"name":"WithStaticSequencingPolicy","abstract":"Has sequencing policy for stubbing static methods
"},"Protocols/WithStubbingPolicy.html":{"name":"WithStubbingPolicy","abstract":"[Internal] used for marking that stubs have configurable policy
"},"Extensions/Int.html":{"name":"Int"},"Extensions/Optional.html":{"name":"Optional"},"Extensions/UInt.html":{"name":"UInt"},"Enums/MockError.html":{"name":"MockError","abstract":"[Internal] Generic Mock library errors
"},"Enums/StubProduct.html":{"name":"StubProduct","abstract":"[Internal] Possible Given products. Method can either return or throw an error (in general)
"},"Classes/StubbedMethod.html":{"name":"StubbedMethod","abstract":"[Internal] Allows to reduce Mock.generated.swif size, by moving part of implementation here.
"},"Internal.html#/s:11SwiftyMocky7Failureys5NeverOSSF":{"name":"Failure(_:)","abstract":"[Internal] Fails flow with given message
"},"Internal.html#/s:11SwiftyMocky0B6Assert__4file4lineySbyXK_SSyXKs12StaticStringVSutF":{"name":"MockyAssert(_:_:file:line:)","abstract":"[internal] Assertion used by mocks and Verify methods
"},"Classes/MockyAssertion.html#/s:11SwiftyMocky0B9AssertionC7handlerySb_SSs12StaticStringVSutcSgvpZ":{"name":"handler","abstract":"You can use it to define assertion behaviour.","parent_name":"MockyAssertion"},"Helpers.html#/s:11SwiftyMocky20XCTAssertThrowsError_2of_4file4lineyxyKXK_q_mSSyXKs12StaticStringVSuts0E0R_r0_lF":{"name":"XCTAssertThrowsError(_:of:_:file:line:)","abstract":"
Allows to verify if error was thrown, and if it is of given type.
"},"Helpers.html#/s:11SwiftyMocky20XCTAssertThrowsError_5error_4file4lineyxyKXK_q_SSyXKs12StaticStringVSutSQR_s0E0R_r0_lF":{"name":"XCTAssertThrowsError(_:error:_:file:line:)","abstract":"Allows to verify if error was throws, and if its exactly the one expected.
"},"Classes/MockyAssertion.html":{"name":"MockyAssertion","abstract":"You can use this class if there is need to define custom"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV5valueypvp":{"name":"value","abstract":"
[internal] Returned value
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV8intValueSivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other generic attributes
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV5value8intValue16shortDescription7compareACyp_SiSSSbyp_ypAA7MatcherCtctcfc":{"name":"init(value:intValue:shortDescription:compare:)","abstract":"[internal] Creates new GenericAttribute instance, with specified return value and compare closure
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html":{"name":"GenericAttribute","abstract":"[Internal] Used to wrap generic parameters, for sake of generic method stubs.
"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"Stubbing policy. If wrap - it will iterate over recorded values. If drop - it will remove value when stub returns. If default - it will use mock settings
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV_9returningACyxGAA13StubbedMethodC_xmtcfc":{"name":"init(_:returning:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6returnyyxF":{"name":"return(_:)","abstract":"Record return value
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6returnyyxd_tF":{"name":"return(_:)","abstract":"Record subsequent return values, in given order (comma separated)
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV5throwyys5Error_pF":{"name":"throw(_:)","abstract":"Record thrown error
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV5throwyys5Error_pd_tF":{"name":"throw(_:)","abstract":"Record subsequent thrown errors, in given order (comma separated)
","parent_name":"StubberThrows"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"Stubbing policy. If wrap - it will iterate over recorded values. If drop - it will remove value when stub returns. If default - it will use mock settings
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV_9returningACyxGAA13StubbedMethodC_xmtcfc":{"name":"init(_:returning:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6returnyyxF":{"name":"return(_:)","abstract":"Record return value
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6returnyyxd_tF":{"name":"return(_:)","abstract":"Record subsequent return values, in given order (comma separated)
","parent_name":"Stubber"},"Enums/Count.html#/s:11SwiftyMocky5CountO21CustomMatchingClosurea":{"name":"CustomMatchingClosure","abstract":"Count matching closure
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO18IntegerLiteralTypea":{"name":"IntegerLiteralType","abstract":"[Internal] Count is represented by integer literals, with type Int
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11atLeastOnceyA2CmF":{"name":"atLeastOnce","abstract":"Called at least once
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4onceyA2CmF":{"name":"once","abstract":"Called exactly once
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO6customyACSbSiccACmF":{"name":"custom(_:)","abstract":"Custom count resolving closure
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO7exactlyyACSicACmF":{"name":"exactly(_:)","abstract":"Called exactly n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4fromyACSi_SitcACmF":{"name":"from(_:to:)","abstract":"Called in a…b range
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4lessyACSi_tcACmF":{"name":"less(than:)","abstract":"Called less than n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11lessOrEqualyACSi_tcACmF":{"name":"lessOrEqual(to:)","abstract":"Called less than ot equal to n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4moreyACSi_tcACmF":{"name":"more(than:)","abstract":"Called more than n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11moreOrEqualyACSi_tcACmF":{"name":"moreOrEqual(to:)","abstract":"Called more than ot equal to n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO5neveryA2CmF":{"name":"never","abstract":"Never called
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO14integerLiteralACSi_tcfc":{"name":"init(integerLiteral:)","abstract":"Creates new count instance, matching specific count
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11descriptionSSvp":{"name":"description","abstract":"Human readable description
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Count"},"Protocols/Countable.html#/s:11SwiftyMocky9CountableP7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Countable"},"Classes/Matcher/ParameterComparisonResult.html#/s:11SwiftyMocky7MatcherC25ParameterComparisonResultVyAESb_AA0D0OyxGAGyq_GSStcr0_lufc":{"name":"init(_:_:_:_:)","abstract":"Undocumented
","parent_name":"ParameterComparisonResult"},"Classes/Matcher/ParameterComparisonResult.html#/s:11SwiftyMocky7MatcherC25ParameterComparisonResultV12resultStringSSvp":{"name":"resultString","abstract":"Undocumented
","parent_name":"ParameterComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7matchedSivp":{"name":"matched","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV5totalSivp":{"name":"total","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7resultsSayAC09ParameterdE0VGvp":{"name":"results","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV10percentageSfvp":{"name":"percentage","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV16percentageStringSSvp":{"name":"percentageString","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV11isFullMatchSbvp":{"name":"isFullMatch","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7isMatchSbvp":{"name":"isMatch","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultVyAESayAC09ParameterdE0VGcfc":{"name":"init(_:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7matched5totalAESi_Sitcfc":{"name":"init(matched:total:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV5matchAEvpZ":{"name":"match","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV4noneAEvpZ":{"name":"none","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV12resultStringySSSi_SStF":{"name":"resultString(_:_:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC7defaultACvpZ":{"name":"default","abstract":"Shared Matcher instance
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC17fatalErrorHandleryySS_s12StaticStringVSutcvpZ":{"name":"fatalErrorHandler","abstract":"[Internal] matcher fatal error handler
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherCACycfc":{"name":"init()","abstract":"Create new clean matcher instance.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC7matcherA2C_tcfc":{"name":"init(matcher:)","abstract":"Creante new matcher instance, copying existing comparator from another instance.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC3set4file4lineys12StaticStringVSg_SuSgtF":{"name":"set(file:line:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC23setupCorrentFileAndLine4file4lineys12StaticStringV_SutF":{"name":"setupCorrentFileAndLine(file:line:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC16clearFileAndLineyyF":{"name":"clearFileAndLine()","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC14onFatalFailureyySSF":{"name":"onFatalFailure(_:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8register_5matchyxm_Sbx_xtctlF":{"name":"register(_:match:)","abstract":"Registers comparator for given type T.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8registeryyxmmlF":{"name":"register(_:)","abstract":"Registers comparator for type, like comparing Int.self to Int.self. These types of comparators always returns true. Register like: Matcher.default.register(CustomType.Type.self)
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8registeryyxmSQRzlF":{"name":"register(_:)","abstract":"Register default comparatot for Equatable types. Required for generic mocks to work.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tlF":{"name":"comparator(for:)","abstract":"Returns comparator closure for given type (if any).
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSTRzlF":{"name":"comparator(for:)","abstract":"Default Sequence comparator, compares count, and then depending on sequence type:
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSQRzlF":{"name":"comparator(for:)","abstract":"Default Equatable comparator, compares if elements are equal.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSQRzSTRzlF":{"name":"comparator(for:)","abstract":"Default Equatable Sequence comparator, compares count, and then for every element equal element.
","parent_name":"Matcher"},"Classes/Matcher/ComparisonResult.html":{"name":"ComparisonResult","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher/ParameterComparisonResult.html":{"name":"ParameterComparisonResult","abstract":"Undocumented
","parent_name":"Matcher"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO1_yACyxGAEmlF":{"name":"_","abstract":"Wildcard - any value
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO5valueyACyxGxcAEmlF":{"name":"value(_:)","abstract":"Explicit value
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO8matchingyACyxGSbxccAEmlF":{"name":"matching(_:)","abstract":"Any value matching
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3anyACyxGvpZ":{"name":"any","abstract":"Represents and matches any parameter value - syntactic sugar for ._
case.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3anyyACyqd__Gqd__mlFZ":{"name":"any(_:)","abstract":"Represents and matches any parameter value - syntactic sugar for ._
case. Used, when needs to explicitely specify","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO16shortDescriptionSSvp":{"name":"shortDescription","abstract":"
Undocumented
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAARlzClE12sameInstance2asACyxGqd___tRld__ClFZ":{"name":"sameInstance(as:)","abstract":"Represents and matches values on an same instance
basis.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAARlzClE10isInstance2ofACyxGqd__m_tRld__ClFZ":{"name":"isInstance(of:)","abstract":"Represents and matches whether parameter is of specific type, using is
operator.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3allyACyxGAEd_tFZ":{"name":"all(_:)","abstract":"Allows combining multiple Parameter constraints into one Parameter constraint.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOA2A15TypeErasedValueRzlE03intF0Sivp":{"name":"intValue","abstract":"Used for invocations sorting purpose.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO8intValueSivp":{"name":"intValue","abstract":"Used for invocations sorting purpose.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:s26ExpressibleByStringLiteralP0cD4TypeQa":{"name":"StringLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP0cdeF4TypeQa":{"name":"ExtendedGraphemeClusterLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s33ExpressibleByUnicodeScalarLiteralP0cdE4TypeQa":{"name":"UnicodeScalarLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s26ExpressibleByStringLiteralP06stringD0x0cD4TypeQz_tcfc":{"name":"init(stringLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP08extendeddeF0x0cdeF4TypeQz_tcfc":{"name":"init(extendedGraphemeClusterLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s33ExpressibleByUnicodeScalarLiteralP07unicodedE0x0cdE4TypeQz_tcfc":{"name":"init(unicodeScalarLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s23ExpressibleByNilLiteralP03nilD0xyt_tcfc":{"name":"init(nilLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByIntegerLiteralP0cD4TypeQa":{"name":"IntegerLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByIntegerLiteralP07integerD0x0cD4TypeQz_tcfc":{"name":"init(integerLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByBooleanLiteralP0cD4TypeQa":{"name":"BooleanLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByBooleanLiteralP07booleanD0x0cD4TypeQz_tcfc":{"name":"init(booleanLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByFloatLiteralP0cD4TypeQa":{"name":"FloatLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByFloatLiteralP05floatD0x0cD4TypeQz_tcfc":{"name":"init(floatLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByArrayLiteralP0cD7ElementQa":{"name":"ArrayLiteralElement","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfc":{"name":"init(arrayLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP3KeyQa":{"name":"Key","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP5ValueQa":{"name":"Value","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP010dictionaryD0x3KeyQz_5ValueQztd_tcfc":{"name":"init(dictionaryLiteral:)","parent_name":"Parameter"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C5GivenQa":{"name":"StaticGiven","abstract":"Stubbed method and property type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C6VerifyQa":{"name":"StaticVerify","abstract":"Verification type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C7PerformQa":{"name":"StaticPerform","abstract":"Perform type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP5givenyy0C5GivenQzFZ":{"name":"given(_:)","abstract":"Registers return value for stubbed method, for specified attributes set.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP7performyy0C7PerformQzFZ":{"name":"perform(_:)","abstract":"Registers perform closure, which will be executed upon calling stubbed method, for specified attribtes.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP6verify_5count4file4liney0C6VerifyQz_AA5CountOs0C6StringVSutFZ":{"name":"verify(_:count:file:line:)","abstract":"Verifies, that given method stub was called exact number of times.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP05resetD0yyAA0D5ScopeOd_tFZ":{"name":"resetMock(_:)","abstract":"Clear mock internals. You can specify what to clear (invocations aka verify, givens or performs)","parent_name":"StaticMock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP5GivenQa":{"name":"Given","abstract":"
Stubbed method and property type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP6VerifyQa":{"name":"Verify","abstract":"Verification type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP7PerformQa":{"name":"Perform","abstract":"Perform type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP5givenyy5GivenQzF":{"name":"given(_:)","abstract":"Registers return value for stubbed method, for specified attributes set.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP7performyy7PerformQzF":{"name":"perform(_:)","abstract":"Registers perform closure, which will be executed upon calling stubbed method, for specified attribtes.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP6verify_5count4file4liney6VerifyQz_AA5CountOs12StaticStringVSutF":{"name":"verify(_:count:file:line:)","abstract":"Verifies, that given method stub was called exact number of times.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP05resetC0yyAA0C5ScopeOd_tF":{"name":"resetMock(_:)","abstract":"Clear mock internals. You can specify what to clear (invocations aka verify, givens or performs)","parent_name":"Mock"},"Protocols/Mock.html":{"name":"Mock","abstract":"
Every generated mock implementation adopts Mock protocol."},"Protocols/StaticMock.html":{"name":"StaticMock","abstract":"
Every mock, that stubs static methods, should adopt StaticMock protocol."},"Enums/Parameter.html":{"name":"Parameter","abstract":"
Parameter wraps method attribute, allowing to make a difference between explicit value,"},"Classes/Matcher.html":{"name":"Matcher","abstract":"
Matcher is container class, responsible for storing and resolving comparators for given types.
"},"Protocols/Countable.html":{"name":"Countable","abstract":"Allows matching count, verifying whether given count is right or not
"},"Enums/Count.html":{"name":"Count","abstract":"Count enum. Use it for all Verify features, when checking how many times something happened.
"},"Structs/Stubber.html":{"name":"Stubber","abstract":"Used to populate stubbed method with sequence of events. Call it’s methods, to record subsequent stub return values.
"},"Structs/StubberThrows.html":{"name":"StubberThrows","abstract":"Used to populate stubbed method with sequence of events. Call it’s methods, to record subsequent stub return/throw values.
"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO24lastWrittenResolvedFirstyA2CmF":{"name":"lastWrittenResolvedFirst","abstract":"Default policy. Last given overrides previous, if they are both with same generocity level
","parent_name":"SequencingPolicy"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO14inWritingOrderyA2CmF":{"name":"inWritingOrder","abstract":"Givens would be recalled in order of generocity, respecting writing order (first line resolved first)
","parent_name":"SequencingPolicy"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO6sorted_2bySayxGAF_Sbx_xtXEtlF":{"name":"sorted(_:by:)","abstract":"[Internal] Sorts stub return values / errors throw with respect to ordering rule and policy
","parent_name":"SequencingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO7defaultyA2CmF":{"name":"default","abstract":"Use current policy specified for Mock method type
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4wrapyA2CmF":{"name":"wrap","abstract":"Default policy in general. When reaching end of sequence of events, index will rewind to beginning (looping)
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4dropyA2CmF":{"name":"drop","abstract":"With this policy, every call drops event. When events count reaches zero, given is removed from mock.
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4realyA2CF":{"name":"real(_:)","abstract":"[Internal] Resolves used policy. If self is default, will use inherited, otherwise self
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO7updated_4withS2i_SitF":{"name":"updated(_:with:)","abstract":"[Internal] Computes new index for stubs array. For wrap will rewind if out of bounds, for drop will not.","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html":{"name":"StubbingPolicy","abstract":"
Given Policy for treating sequence of events (products). Used to determine if stub return values should be consumed"},"Enums/SequencingPolicy.html":{"name":"SequencingPolicy","abstract":"
Sequencing policy - in which order Given would be resolved. Pleas ehve in mind that this policy is applied ONLY after"},"Global%20methods.html#/s:11SwiftyMocky5Givenyyx_ABQzAA14StubbingPolicyOtAA4MockRzlF":{"name":"Given(_:_:_:)","abstract":"
Setup return value for method stubs in mock instance. When this method will be called on mock, it"},"Global%20methods.html#/s:11SwiftyMocky5Givenyyxm_06StaticC0QzAA14StubbingPolicyOtAA0D4MockRzlF":{"name":"Given(_:_:_:)","abstract":"
Setup return value for static method stubs on mock type. When this static method will be called, it"},"Global%20methods.html#/s:11SwiftyMocky7Performyyx_ABQztAA4MockRzlF":{"name":"Perform(_:_:)","abstract":"
Setup perform closure for method stubs in mock instance. When this method will be called on mock, it"},"Global%20methods.html#/s:11SwiftyMocky7Performyyxm_06StaticC0QztAA0D4MockRzlF":{"name":"Perform(_:_:)","abstract":"
Setup perform closure for static method stubs for mock type. When this method will be called on mock type, it"},"Global%20methods.html#/s:11SwiftyMocky6Verify__4file4lineyx_ABQzs12StaticStringVSutAA4MockRzlF":{"name":"Verify(_:_:file:line:)","abstract":"
Verify that given method was called on mock object at least once.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify__4file4lineyxm_06StaticC0Qzs0F6StringVSutAA0F4MockRzlF":{"name":"Verify(_:_:file:line:)","abstract":"Verify that given static method was called on mock type at least once.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify___4file4lineyx_AA5CountOABQzs12StaticStringVSutAA4MockRzlF":{"name":"Verify(_:_:_:file:line:)","abstract":"Verify that given method was called on mock object exact number of times.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify___4file4lineyxm_AA5CountO06StaticC0Qzs0G6StringVSutAA0G4MockRzlF":{"name":"Verify(_:_:_:file:line:)","abstract":"Verify that given static method was called on mock type exact number of times.
"},"matcher-support-for-not-equatable.html":{"name":"Matcher support for not Equatable"},"handling-generics.html":{"name":"Handling Generics"},"examples.html":{"name":"Examples"},"legacy.html":{"name":"Legacy"},"add-xcode-generate-action.html":{"name":"Add XCode generate action"},"known-issues.html":{"name":"Known issues"},"changelog.html":{"name":"CHANGELOG"},"overview.html":{"name":"Overview"},"installation.html":{"name":"Installation"},"setup-in-project.html":{"name":"Setup in project"},"mockfile.html":{"name":"Mockfile"},"command-line-interface.html":{"name":"Command Line Interface"},"supported-features.html":{"name":"Supported features"},"prototyping.html":{"name":"Prototyping"},"Main%20Guides.html":{"name":"Main Guides"},"Additional%20Guides.html":{"name":"Additional Guides"},"Global%20methods.html":{"name":"Global methods"},"Configuration.html":{"name":"Configuration"},"Types.html":{"name":"Types"},"Generics.html":{"name":"Generics"},"Helpers.html":{"name":"Helpers"},"Internal.html":{"name":"Internal"},"Other%20Guides.html":{"name":"Other Guides","abstract":"The following guides are available globally.
"},"Other%20Classes.html":{"name":"Other Classes","abstract":"The following classes are available globally.
"},"Other%20Enums.html":{"name":"Other Enumerations","abstract":"The following enumerations are available globally.
"},"Other%20Protocols.html":{"name":"Other Protocols","abstract":"The following protocols are available globally.
"},"Other%20Structs.html":{"name":"Other Structures","abstract":"The following structures are available globally.
"}}
\ No newline at end of file
+{"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV5valueypvp":{"name":"value","abstract":"[internal] Returned value
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV8intValueSivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other attribute
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV5value8intValue16shortDescription7compareACyp_SiSSSbyp_ypAA7MatcherCtctcfc":{"name":"init(value:intValue:shortDescription:compare:)","abstract":"[internal] Creates new TypeErasedAttribute instance, with specified return value and compare closure
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html":{"name":"TypeErasedAttribute","abstract":"[Internal] Used to wrap availability constrained attributes, since enum cases used ubternally to"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP5valueypvp":{"name":"value","abstract":"
[internal] Returned value
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP03intE0Sivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other generic attributes values
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html":{"name":"TypeErasedValue","abstract":"[Internal] Used as generic constraint for generic method stubs.
"},"Enums/Utils.html#/s:11SwiftyMocky5UtilsO19closestCallsMessage3for4nameSSSayAA7MatcherC16ComparisonResultVG_SStFZ":{"name":"closestCallsMessage(for:name:)","abstract":"Undocumented
","parent_name":"Utils"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO10invocationyA2CmF":{"name":"invocation","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO5givenyA2CmF":{"name":"given","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO7performyA2CmF":{"name":"perform","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html":{"name":"MockScope","abstract":"Undocumented
"},"Enums/Utils.html":{"name":"Utils","abstract":"Undocumented
"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC5valuexSgvp":{"name":"value","abstract":"Last captured value (if any)
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC9allValuesSayxGvp":{"name":"allValues","abstract":"All captured values
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorCACyxGycfc":{"name":"init()","abstract":"Undocumented
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC7capture5whereAA9ParameterOyxGSbxcSg_tF":{"name":"capture(where:)","abstract":"Return parameter matcher which captures the argument.
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html":{"name":"ArgumentCaptor","abstract":"Undocumented
"},"contents.html":{"name":"Contents"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC7isValidSbvp":{"name":"isValid","abstract":"[Internal] Returns whether there are still products to be used as stub return values
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"[Internal] Stubbing policy. By default uses parent mock policy
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodCyACSayAA11StubProductOGcfc":{"name":"init(_:)","abstract":"[Internal] Creates new method init with given products.
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC10getProduct6policyAA04StubF0OAA14StubbingPolicyO_tF":{"name":"getProduct(policy:)","abstract":"[Internal] Get next product, with respect to self.policy and inherited policy
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC4stub3forAA7StubberVyxGxm_tlF":{"name":"stub(for:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC10stubThrows3forAA07StubberF0VyxGxm_tlF":{"name":"stubThrows(for:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubbedMethod"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO6returnyACypcACmF":{"name":"return(_:)","abstract":"Undocumented
","parent_name":"StubProduct"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO5throwyACs5Error_pcACmF":{"name":"throw(_:)","abstract":"Undocumented
","parent_name":"StubProduct"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO6castedxyKlF":{"name":"casted()","abstract":"[Internal] If self is returns, and nested value can be casted to T, returns value. Can fail (fatalError)
","parent_name":"StubProduct"},"Enums/MockError.html#/s:11SwiftyMocky9MockErrorO9notStubedyA2CmF":{"name":"notStubed","abstract":"Undocumented
","parent_name":"MockError"},"Extensions/UInt.html#/s:Su11SwiftyMockyE7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"UInt"},"Extensions/Optional.html#/s:Sq11SwiftyMockyE6orFailyxSSF":{"name":"orFail(_:)","abstract":"Returns unwrapped value, or fails.
","parent_name":"Optional"},"Extensions/Optional.html#/s:Sq11SwiftyMockyE8isNotNilSbvp":{"name":"isNotNil","abstract":"Undocumented
","parent_name":"Optional"},"Extensions/Optional.html#/s:s26ExpressibleByStringLiteralP0cD4TypeQa":{"name":"StringLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP0cdeF4TypeQa":{"name":"ExtendedGraphemeClusterLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s33ExpressibleByUnicodeScalarLiteralP0cdE4TypeQa":{"name":"UnicodeScalarLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s26ExpressibleByStringLiteralP06stringD0x0cD4TypeQz_tcfc":{"name":"init(stringLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP08extendeddeF0x0cdeF4TypeQz_tcfc":{"name":"init(extendedGraphemeClusterLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s33ExpressibleByUnicodeScalarLiteralP07unicodedE0x0cdE4TypeQz_tcfc":{"name":"init(unicodeScalarLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByIntegerLiteralP0cD4TypeQa":{"name":"IntegerLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByIntegerLiteralP07integerD0x0cD4TypeQz_tcfc":{"name":"init(integerLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByBooleanLiteralP0cD4TypeQa":{"name":"BooleanLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByBooleanLiteralP07booleanD0x0cD4TypeQz_tcfc":{"name":"init(booleanLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByFloatLiteralP0cD4TypeQa":{"name":"FloatLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByFloatLiteralP05floatD0x0cD4TypeQz_tcfc":{"name":"init(floatLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByArrayLiteralP0cD7ElementQa":{"name":"ArrayLiteralElement","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfc":{"name":"init(arrayLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP3KeyQa":{"name":"Key","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP5ValueQa":{"name":"Value","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP010dictionaryD0x3KeyQz_5ValueQztd_tcfc":{"name":"init(dictionaryLiteral:)","parent_name":"Optional"},"Extensions/Int.html#/s:Si11SwiftyMockyE7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Int"},"Protocols/WithStubbingPolicy.html#/s:11SwiftyMocky18WithStubbingPolicyP6policyAA0dE0Ovp":{"name":"policy","abstract":"Stubbing policy
","parent_name":"WithStubbingPolicy"},"Protocols/WithStubbingPolicy.html#/s:11SwiftyMocky18WithStubbingPolicyP4withyxAA0dE0OF":{"name":"with(_:)","abstract":"[Internal] with new policy
","parent_name":"WithStubbingPolicy"},"Protocols/WithStaticSequencingPolicy.html#/s:11SwiftyMocky26WithStaticSequencingPolicyP010sequencingF0AA0eF0OvpZ":{"name":"sequencingPolicy","abstract":"Used sequencibg policy
","parent_name":"WithStaticSequencingPolicy"},"Protocols/WithSequencingPolicy.html#/s:11SwiftyMocky20WithSequencingPolicyP010sequencingE0AA0dE0Ovp":{"name":"sequencingPolicy","abstract":"Used sequencibg policy
","parent_name":"WithSequencingPolicy"},"Protocols/OptionalType.html#/s:11SwiftyMocky12OptionalTypeP8isNotNilSbvp":{"name":"isNotNil","abstract":"Undocumented
","parent_name":"OptionalType"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV3setyys5NeverOSScFZ":{"name":"set(_:)","abstract":"[Internal] Override handling error handler
","parent_name":"FatalErrorUtil"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV7restoreyyFZ":{"name":"restore()","abstract":"[Internal] Restores default handler
","parent_name":"FatalErrorUtil"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV05fatalD0ys5NeverOSSFZ":{"name":"fatalError(_:)","abstract":"[Internal] Perform fatal error handler
","parent_name":"FatalErrorUtil"},"Classes/SwiftyMockyTestObserver.html#/setup()":{"name":"setup()","abstract":"[Internal] No setup whatsoever
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/handleFatalError(message:file:line:)":{"name":"handleFatalError(message:file:line:)","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/s:11SwiftyMocky0aB12TestObserverC5setupyyFZ":{"name":"setup()","abstract":"Call this method to setup custom error handling for SwiftyMocky, that allows to gracefully handle missing stub fatal errors.","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/c:@M@SwiftyMocky@objc(cs)SwiftyMockyTestObserver(im)testCaseWillStart:":{"name":"testCaseWillStart(_:)","abstract":"
[Internal] Observer for test start
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/c:@M@SwiftyMocky@objc(cs)SwiftyMockyTestObserver(im)testCaseDidFinish:":{"name":"testCaseDidFinish(_:)","abstract":"[Internal] Observer for test finished
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/s:11SwiftyMocky0aB12TestObserverC16handleFatalError7message4file4lineySS_s12StaticStringVSutFZ":{"name":"handleFatalError(message:file:line:)","abstract":"[Internal] used to notify about internal error. Do not call it directly.
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html":{"name":"SwiftyMockyTestObserver"},"Structs/FatalErrorUtil.html":{"name":"FatalErrorUtil","abstract":"[Internal] Used for handling fatal errors inside library.
"},"Protocols/OptionalType.html":{"name":"OptionalType","abstract":"Protocol around Optional, allowing additional checks and features on Paramater
where value is optional.
"},"Protocols/WithSequencingPolicy.html":{"name":"WithSequencingPolicy","abstract":"Has sequencing policy for stubbing methods
"},"Protocols/WithStaticSequencingPolicy.html":{"name":"WithStaticSequencingPolicy","abstract":"Has sequencing policy for stubbing static methods
"},"Protocols/WithStubbingPolicy.html":{"name":"WithStubbingPolicy","abstract":"[Internal] used for marking that stubs have configurable policy
"},"Extensions/Int.html":{"name":"Int"},"Extensions/Optional.html":{"name":"Optional"},"Extensions/UInt.html":{"name":"UInt"},"Enums/MockError.html":{"name":"MockError","abstract":"[Internal] Generic Mock library errors
"},"Enums/StubProduct.html":{"name":"StubProduct","abstract":"[Internal] Possible Given products. Method can either return or throw an error (in general)
"},"Classes/StubbedMethod.html":{"name":"StubbedMethod","abstract":"[Internal] Allows to reduce Mock.generated.swif size, by moving part of implementation here.
"},"Internal.html#/s:11SwiftyMocky7Failureys5NeverOSSF":{"name":"Failure(_:)","abstract":"[Internal] Fails flow with given message
"},"Internal.html#/s:11SwiftyMocky0B6Assert__4file4lineySbyXK_SSyXKs12StaticStringVSutF":{"name":"MockyAssert(_:_:file:line:)","abstract":"[internal] Assertion used by mocks and Verify methods
"},"Classes/MockyAssertion.html#/s:11SwiftyMocky0B9AssertionC7handlerySb_SSs12StaticStringVSutcSgvpZ":{"name":"handler","abstract":"You can use it to define assertion behaviour.","parent_name":"MockyAssertion"},"Helpers.html#/s:11SwiftyMocky20XCTAssertThrowsError_2of_4file4lineyxyKXK_q_mSSyXKs12StaticStringVSuts0E0R_r0_lF":{"name":"XCTAssertThrowsError(_:of:_:file:line:)","abstract":"
Allows to verify if error was thrown, and if it is of given type.
"},"Helpers.html#/s:11SwiftyMocky20XCTAssertThrowsError_5error_4file4lineyxyKXK_q_SSyXKs12StaticStringVSutSQR_s0E0R_r0_lF":{"name":"XCTAssertThrowsError(_:error:_:file:line:)","abstract":"Allows to verify if error was throws, and if its exactly the one expected.
"},"Classes/MockyAssertion.html":{"name":"MockyAssertion","abstract":"You can use this class if there is need to define custom"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV5valueypvp":{"name":"value","abstract":"
[internal] Returned value
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV8intValueSivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other generic attributes
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV5value8intValue16shortDescription7compareACyp_SiSSSbyp_ypAA7MatcherCtctcfc":{"name":"init(value:intValue:shortDescription:compare:)","abstract":"[internal] Creates new GenericAttribute instance, with specified return value and compare closure
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html":{"name":"GenericAttribute","abstract":"[Internal] Used to wrap generic parameters, for sake of generic method stubs.
"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"Stubbing policy. If wrap - it will iterate over recorded values. If drop - it will remove value when stub returns. If default - it will use mock settings
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV_9returningACyxGAA13StubbedMethodC_xmtcfc":{"name":"init(_:returning:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6returnyyxF":{"name":"return(_:)","abstract":"Record return value
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6returnyyxd_tF":{"name":"return(_:)","abstract":"Record subsequent return values, in given order (comma separated)
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV5throwyys5Error_pF":{"name":"throw(_:)","abstract":"Record thrown error
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV5throwyys5Error_pd_tF":{"name":"throw(_:)","abstract":"Record subsequent thrown errors, in given order (comma separated)
","parent_name":"StubberThrows"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"Stubbing policy. If wrap - it will iterate over recorded values. If drop - it will remove value when stub returns. If default - it will use mock settings
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV_9returningACyxGAA13StubbedMethodC_xmtcfc":{"name":"init(_:returning:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6returnyyxF":{"name":"return(_:)","abstract":"Record return value
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6returnyyxd_tF":{"name":"return(_:)","abstract":"Record subsequent return values, in given order (comma separated)
","parent_name":"Stubber"},"Enums/Count.html#/s:11SwiftyMocky5CountO21CustomMatchingClosurea":{"name":"CustomMatchingClosure","abstract":"Count matching closure
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO18IntegerLiteralTypea":{"name":"IntegerLiteralType","abstract":"[Internal] Count is represented by integer literals, with type Int
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11atLeastOnceyA2CmF":{"name":"atLeastOnce","abstract":"Called at least once
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4onceyA2CmF":{"name":"once","abstract":"Called exactly once
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO6customyACSbSiccACmF":{"name":"custom(_:)","abstract":"Custom count resolving closure
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO7exactlyyACSicACmF":{"name":"exactly(_:)","abstract":"Called exactly n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4fromyACSi_SitcACmF":{"name":"from(_:to:)","abstract":"Called in a…b range
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4lessyACSi_tcACmF":{"name":"less(than:)","abstract":"Called less than n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11lessOrEqualyACSi_tcACmF":{"name":"lessOrEqual(to:)","abstract":"Called less than ot equal to n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4moreyACSi_tcACmF":{"name":"more(than:)","abstract":"Called more than n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11moreOrEqualyACSi_tcACmF":{"name":"moreOrEqual(to:)","abstract":"Called more than ot equal to n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO5neveryA2CmF":{"name":"never","abstract":"Never called
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO14integerLiteralACSi_tcfc":{"name":"init(integerLiteral:)","abstract":"Creates new count instance, matching specific count
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11descriptionSSvp":{"name":"description","abstract":"Human readable description
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Count"},"Protocols/Countable.html#/s:11SwiftyMocky9CountableP7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Countable"},"Classes/Matcher/ParameterComparisonResult.html#/s:11SwiftyMocky7MatcherC25ParameterComparisonResultVyAESb_AA0D0OyxGAGyq_GSStcr0_lufc":{"name":"init(_:_:_:_:)","abstract":"Undocumented
","parent_name":"ParameterComparisonResult"},"Classes/Matcher/ParameterComparisonResult.html#/s:11SwiftyMocky7MatcherC25ParameterComparisonResultV12resultStringSSvp":{"name":"resultString","abstract":"Undocumented
","parent_name":"ParameterComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7matchedSivp":{"name":"matched","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV5totalSivp":{"name":"total","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7resultsSayAC09ParameterdE0VGvp":{"name":"results","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV10percentageSfvp":{"name":"percentage","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV16percentageStringSSvp":{"name":"percentageString","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV11isFullMatchSbvp":{"name":"isFullMatch","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7isMatchSbvp":{"name":"isMatch","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultVyAESayAC09ParameterdE0VGcfc":{"name":"init(_:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7matched5totalAESi_Sitcfc":{"name":"init(matched:total:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV5matchAEvpZ":{"name":"match","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV4noneAEvpZ":{"name":"none","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV12resultStringySSSi_SStF":{"name":"resultString(_:_:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC7defaultACvpZ":{"name":"default","abstract":"Shared Matcher instance
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC17fatalErrorHandleryySS_s12StaticStringVSutcvpZ":{"name":"fatalErrorHandler","abstract":"[Internal] matcher fatal error handler
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherCACycfc":{"name":"init()","abstract":"Create new clean matcher instance.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC7matcherA2C_tcfc":{"name":"init(matcher:)","abstract":"Creante new matcher instance, copying existing comparator from another instance.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC3set4file4lineys12StaticStringVSg_SuSgtF":{"name":"set(file:line:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC23setupCorrentFileAndLine4file4lineys12StaticStringV_SutF":{"name":"setupCorrentFileAndLine(file:line:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC16clearFileAndLineyyF":{"name":"clearFileAndLine()","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC14onFatalFailureyySSF":{"name":"onFatalFailure(_:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8register_5matchyxm_Sbx_xtctlF":{"name":"register(_:match:)","abstract":"Registers comparator for given type T.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8registeryyxmmlF":{"name":"register(_:)","abstract":"Registers comparator for type, like comparing Int.self to Int.self. These types of comparators always returns true. Register like: Matcher.default.register(CustomType.Type.self)
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8registeryyxmSQRzlF":{"name":"register(_:)","abstract":"Register default comparatot for Equatable types. Required for generic mocks to work.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tlF":{"name":"comparator(for:)","abstract":"Returns comparator closure for given type (if any).
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSTRzlF":{"name":"comparator(for:)","abstract":"Default Sequence comparator, compares count, and then depending on sequence type:
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSQRzlF":{"name":"comparator(for:)","abstract":"Default Equatable comparator, compares if elements are equal.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSQRzSTRzlF":{"name":"comparator(for:)","abstract":"Default Equatable Sequence comparator, compares count, and then for every element equal element.
","parent_name":"Matcher"},"Classes/Matcher/ComparisonResult.html":{"name":"ComparisonResult","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher/ParameterComparisonResult.html":{"name":"ParameterComparisonResult","abstract":"Undocumented
","parent_name":"Matcher"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO1_yACyxGAEmlF":{"name":"_","abstract":"Wildcard - any value
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO5valueyACyxGxcAEmlF":{"name":"value(_:)","abstract":"Explicit value
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO8matchingyACyxGSbxccAEmlF":{"name":"matching(_:)","abstract":"Any value matching
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3anyACyxGvpZ":{"name":"any","abstract":"Represents and matches any parameter value - syntactic sugar for ._
case.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3anyyACyqd__Gqd__mlFZ":{"name":"any(_:)","abstract":"Represents and matches any parameter value - syntactic sugar for ._
case. Used, when needs to explicitely specify","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO16shortDescriptionSSvp":{"name":"shortDescription","abstract":"
Undocumented
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO7compare3lhs3rhs4withSbACyxG_AhA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"Returns whether given two parameters are matching each other, with following rules:
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO13wrapAsGenericACyAA0F9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO19typeErasedAttributeACyAA04TypeeF0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO19noComparatorFailure2ins5NeverOAA7MatcherC_tFZ":{"name":"noComparatorFailure(in:)","abstract":"[Internal] Fatal error raised when no comparator or default comparator found for ValueType
.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOA2A15TypeErasedValueRzlE7compare3lhs3rhs4withSbACyxG_AiA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzlE7compare3lhs3rhs4withSbACyxG_AhA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzlE13wrapAsGenericACyAA0F9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzlE19typeErasedAttributeACyAA04TypeeF0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzSQ7ElementRpzlE7compare3lhs3rhs4withSbACyxG_AjA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzSQ7ElementRpzlE13wrapAsGenericACyAA0G9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzSQ7ElementRpzlE19typeErasedAttributeACyAA04TypefG0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzSQ7ElementSTRpzlE7compare3lhs3rhs4withSbACyxG_AjA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzSQ7ElementSTRpzlE13wrapAsGenericACyAA0G9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzSQ7ElementSTRpzlE19typeErasedAttributeACyAA04TypefG0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzlE7Elementa":{"name":"Element","abstract":"Element
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzlE7compare3lhs3rhs4withSbACyxG_AhA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzlE13wrapAsGenericACyAA0F9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzlE19typeErasedAttributeACyAA04TypeeF0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzlE7compare3lhs3rhs4withSbACyxG_AhA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzlE13wrapAsGenericACyAA0F9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzlE19typeErasedAttributeACyAA04TypeeF0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOA2A12OptionalTypeRzlE6notNilACyxGvpZ":{"name":"notNil","abstract":"Undocumented
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAARlzClE12sameInstance2asACyxGqd___tRld__ClFZ":{"name":"sameInstance(as:)","abstract":"Represents and matches values on an same instance
basis.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAARlzClE10isInstance2ofACyxGqd__m_tRld__ClFZ":{"name":"isInstance(of:)","abstract":"Represents and matches whether parameter is of specific type, using is
operator.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3allyACyxGAEd_tFZ":{"name":"all(_:)","abstract":"Allows combining multiple Parameter constraints into one Parameter constraint.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOA2A15TypeErasedValueRzlE03intF0Sivp":{"name":"intValue","abstract":"Used for invocations sorting purpose.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO8intValueSivp":{"name":"intValue","abstract":"Used for invocations sorting purpose.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:s26ExpressibleByStringLiteralP0cD4TypeQa":{"name":"StringLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP0cdeF4TypeQa":{"name":"ExtendedGraphemeClusterLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s33ExpressibleByUnicodeScalarLiteralP0cdE4TypeQa":{"name":"UnicodeScalarLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s26ExpressibleByStringLiteralP06stringD0x0cD4TypeQz_tcfc":{"name":"init(stringLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP08extendeddeF0x0cdeF4TypeQz_tcfc":{"name":"init(extendedGraphemeClusterLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s33ExpressibleByUnicodeScalarLiteralP07unicodedE0x0cdE4TypeQz_tcfc":{"name":"init(unicodeScalarLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s23ExpressibleByNilLiteralP03nilD0xyt_tcfc":{"name":"init(nilLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByIntegerLiteralP0cD4TypeQa":{"name":"IntegerLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByIntegerLiteralP07integerD0x0cD4TypeQz_tcfc":{"name":"init(integerLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByBooleanLiteralP0cD4TypeQa":{"name":"BooleanLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByBooleanLiteralP07booleanD0x0cD4TypeQz_tcfc":{"name":"init(booleanLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByFloatLiteralP0cD4TypeQa":{"name":"FloatLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByFloatLiteralP05floatD0x0cD4TypeQz_tcfc":{"name":"init(floatLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByArrayLiteralP0cD7ElementQa":{"name":"ArrayLiteralElement","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfc":{"name":"init(arrayLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP3KeyQa":{"name":"Key","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP5ValueQa":{"name":"Value","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP010dictionaryD0x3KeyQz_5ValueQztd_tcfc":{"name":"init(dictionaryLiteral:)","parent_name":"Parameter"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C5GivenQa":{"name":"StaticGiven","abstract":"Stubbed method and property type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C6VerifyQa":{"name":"StaticVerify","abstract":"Verification type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C7PerformQa":{"name":"StaticPerform","abstract":"Perform type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP5givenyy0C5GivenQzFZ":{"name":"given(_:)","abstract":"Registers return value for stubbed method, for specified attributes set.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP7performyy0C7PerformQzFZ":{"name":"perform(_:)","abstract":"Registers perform closure, which will be executed upon calling stubbed method, for specified attribtes.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP6verify_5count4file4liney0C6VerifyQz_AA5CountOs0C6StringVSutFZ":{"name":"verify(_:count:file:line:)","abstract":"Verifies, that given method stub was called exact number of times.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP05resetD0yyAA0D5ScopeOd_tFZ":{"name":"resetMock(_:)","abstract":"Clear mock internals. You can specify what to clear (invocations aka verify, givens or performs)","parent_name":"StaticMock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP5GivenQa":{"name":"Given","abstract":"
Stubbed method and property type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP6VerifyQa":{"name":"Verify","abstract":"Verification type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP7PerformQa":{"name":"Perform","abstract":"Perform type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP5givenyy5GivenQzF":{"name":"given(_:)","abstract":"Registers return value for stubbed method, for specified attributes set.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP7performyy7PerformQzF":{"name":"perform(_:)","abstract":"Registers perform closure, which will be executed upon calling stubbed method, for specified attribtes.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP6verify_5count4file4liney6VerifyQz_AA5CountOs12StaticStringVSutF":{"name":"verify(_:count:file:line:)","abstract":"Verifies, that given method stub was called exact number of times.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP05resetC0yyAA0C5ScopeOd_tF":{"name":"resetMock(_:)","abstract":"Clear mock internals. You can specify what to clear (invocations aka verify, givens or performs)","parent_name":"Mock"},"Protocols/Mock.html":{"name":"Mock","abstract":"
Every generated mock implementation adopts Mock protocol."},"Protocols/StaticMock.html":{"name":"StaticMock","abstract":"
Every mock, that stubs static methods, should adopt StaticMock protocol."},"Enums/Parameter.html":{"name":"Parameter","abstract":"
Parameter wraps method attribute, allowing to make a difference between explicit value,"},"Classes/Matcher.html":{"name":"Matcher","abstract":"
Matcher is container class, responsible for storing and resolving comparators for given types.
"},"Protocols/Countable.html":{"name":"Countable","abstract":"Allows matching count, verifying whether given count is right or not
"},"Enums/Count.html":{"name":"Count","abstract":"Count enum. Use it for all Verify features, when checking how many times something happened.
"},"Structs/Stubber.html":{"name":"Stubber","abstract":"Used to populate stubbed method with sequence of events. Call it’s methods, to record subsequent stub return values.
"},"Structs/StubberThrows.html":{"name":"StubberThrows","abstract":"Used to populate stubbed method with sequence of events. Call it’s methods, to record subsequent stub return/throw values.
"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO24lastWrittenResolvedFirstyA2CmF":{"name":"lastWrittenResolvedFirst","abstract":"Default policy. Last given overrides previous, if they are both with same generocity level
","parent_name":"SequencingPolicy"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO14inWritingOrderyA2CmF":{"name":"inWritingOrder","abstract":"Givens would be recalled in order of generocity, respecting writing order (first line resolved first)
","parent_name":"SequencingPolicy"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO6sorted_2bySayxGAF_Sbx_xtXEtlF":{"name":"sorted(_:by:)","abstract":"[Internal] Sorts stub return values / errors throw with respect to ordering rule and policy
","parent_name":"SequencingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO7defaultyA2CmF":{"name":"default","abstract":"Use current policy specified for Mock method type
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4wrapyA2CmF":{"name":"wrap","abstract":"Default policy in general. When reaching end of sequence of events, index will rewind to beginning (looping)
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4dropyA2CmF":{"name":"drop","abstract":"With this policy, every call drops event. When events count reaches zero, given is removed from mock.
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4realyA2CF":{"name":"real(_:)","abstract":"[Internal] Resolves used policy. If self is default, will use inherited, otherwise self
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO7updated_4withS2i_SitF":{"name":"updated(_:with:)","abstract":"[Internal] Computes new index for stubs array. For wrap will rewind if out of bounds, for drop will not.","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html":{"name":"StubbingPolicy","abstract":"
Given Policy for treating sequence of events (products). Used to determine if stub return values should be consumed"},"Enums/SequencingPolicy.html":{"name":"SequencingPolicy","abstract":"
Sequencing policy - in which order Given would be resolved. Pleas ehve in mind that this policy is applied ONLY after"},"Global%20methods.html#/s:11SwiftyMocky5Givenyyx_ABQzAA14StubbingPolicyOtAA4MockRzlF":{"name":"Given(_:_:_:)","abstract":"
Setup return value for method stubs in mock instance. When this method will be called on mock, it"},"Global%20methods.html#/s:11SwiftyMocky5Givenyyxm_06StaticC0QzAA14StubbingPolicyOtAA0D4MockRzlF":{"name":"Given(_:_:_:)","abstract":"
Setup return value for static method stubs on mock type. When this static method will be called, it"},"Global%20methods.html#/s:11SwiftyMocky7Performyyx_ABQztAA4MockRzlF":{"name":"Perform(_:_:)","abstract":"
Setup perform closure for method stubs in mock instance. When this method will be called on mock, it"},"Global%20methods.html#/s:11SwiftyMocky7Performyyxm_06StaticC0QztAA0D4MockRzlF":{"name":"Perform(_:_:)","abstract":"
Setup perform closure for static method stubs for mock type. When this method will be called on mock type, it"},"Global%20methods.html#/s:11SwiftyMocky6Verify__4file4lineyx_ABQzs12StaticStringVSutAA4MockRzlF":{"name":"Verify(_:_:file:line:)","abstract":"
Verify that given method was called on mock object at least once.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify__4file4lineyxm_06StaticC0Qzs0F6StringVSutAA0F4MockRzlF":{"name":"Verify(_:_:file:line:)","abstract":"Verify that given static method was called on mock type at least once.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify___4file4lineyx_AA5CountOABQzs12StaticStringVSutAA4MockRzlF":{"name":"Verify(_:_:_:file:line:)","abstract":"Verify that given method was called on mock object exact number of times.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify___4file4lineyxm_AA5CountO06StaticC0Qzs0G6StringVSutAA0G4MockRzlF":{"name":"Verify(_:_:_:file:line:)","abstract":"Verify that given static method was called on mock type exact number of times.
"},"matcher-support-for-not-equatable.html":{"name":"Matcher support for not Equatable"},"handling-generics.html":{"name":"Handling Generics"},"examples.html":{"name":"Examples"},"legacy.html":{"name":"Legacy"},"add-xcode-generate-action.html":{"name":"Add XCode generate action"},"known-issues.html":{"name":"Known issues"},"changelog.html":{"name":"CHANGELOG"},"overview.html":{"name":"Overview"},"installation.html":{"name":"Installation"},"setup-in-project.html":{"name":"Setup in project"},"mockfile.html":{"name":"Mockfile"},"command-line-interface.html":{"name":"Command Line Interface"},"supported-features.html":{"name":"Supported features"},"prototyping.html":{"name":"Prototyping"},"Main%20Guides.html":{"name":"Main Guides"},"Additional%20Guides.html":{"name":"Additional Guides"},"Global%20methods.html":{"name":"Global methods"},"Configuration.html":{"name":"Configuration"},"Types.html":{"name":"Types"},"Generics.html":{"name":"Generics"},"Helpers.html":{"name":"Helpers"},"Internal.html":{"name":"Internal"},"Other%20Guides.html":{"name":"Other Guides","abstract":"The following guides are available globally.
"},"Other%20Classes.html":{"name":"Other Classes","abstract":"The following classes are available globally.
"},"Other%20Enums.html":{"name":"Other Enumerations","abstract":"The following enumerations are available globally.
"},"Other%20Protocols.html":{"name":"Other Protocols","abstract":"The following protocols are available globally.
"},"Other%20Structs.html":{"name":"Other Structures","abstract":"The following structures are available globally.
"}}
\ No newline at end of file
diff --git a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/setup-in-project.html b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/setup-in-project.html
index 897a6951..2d228dd9 100644
--- a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/setup-in-project.html
+++ b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/setup-in-project.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
diff --git a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/supported-features.html b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/supported-features.html
index 7be009bb..3155478d 100644
--- a/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/supported-features.html
+++ b/docs/docsets/SwiftyMocky.docset/Contents/Resources/Documents/supported-features.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
diff --git a/docs/docsets/SwiftyMocky.docset/Contents/Resources/docSet.dsidx b/docs/docsets/SwiftyMocky.docset/Contents/Resources/docSet.dsidx
index d0d6fca4..817b1b3a 100644
Binary files a/docs/docsets/SwiftyMocky.docset/Contents/Resources/docSet.dsidx and b/docs/docsets/SwiftyMocky.docset/Contents/Resources/docSet.dsidx differ
diff --git a/docs/docsets/SwiftyMocky.tgz b/docs/docsets/SwiftyMocky.tgz
index 28c21498..50396039 100644
Binary files a/docs/docsets/SwiftyMocky.tgz and b/docs/docsets/SwiftyMocky.tgz differ
diff --git a/docs/examples.html b/docs/examples.html
index d4712478..5a01c876 100644
--- a/docs/examples.html
+++ b/docs/examples.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
diff --git a/docs/handling-generics.html b/docs/handling-generics.html
index 7b63b4d8..7588a620 100644
--- a/docs/handling-generics.html
+++ b/docs/handling-generics.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
diff --git a/docs/index.html b/docs/index.html
index 95314138..10763176 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
@@ -272,12 +275,10 @@
- SwiftyMocky 4.1.0-pre
-
-
-Join our community on Slack! -> [invitation link here][link-slack]
+ SwiftyMocky 4.1.0
+
-Check out guides, or full documentation
+Check out guides, or full documentation
Table of contents
@@ -286,8 +287,8 @@ Table of contents
- Getting started:
-- Installing SwiftyMocky CLI
- Integrating SwiftyMocky runtime into test target
+- Installation SwiftyMocky CLI
- Generate mocks
- Usage:
@@ -312,9 +313,9 @@
Table of contents
Overview
-SwiftyMocky is Lightweight, strongly typed framework for Mockito-like unit testing experience. As Swift doesn’t support reflections well enough to allow building mocks in runtime, library depends on Sourcery, that scans your source code and generates Mocks Swift code for you!
+SwiftyMocky is a strongly typed framework for Mockito-like unit testing experience. Library depends on Sourcery, that scans your source code and generates Mocks Swift code for you!
-The idea of SwiftyMocky is to automatically mock Swift protocols. The main features are:
+The idea of SwiftyMocky is to automatically mock Swift protocols and protocol compositions. The main features are:
- easy syntax, utilising full power of auto-complete, which makes writing test easier and faster
@@ -329,43 +330,31 @@ Overview
-Important!!! Version 4.x.x
-
-Current version has several significant changes. It removes deprecated methods (which might be breaking) and moves CLI to the new repository.
-
-We consider current version as stable. We are moving toward using the new Mockfile but the previous configuration format would be still supported. Library works with Swift 4.1, 4.2, 5.0, 5.1.2 and Sourcery 0.17-0.18.
+Important!!! Version 4.1.x
-While it is technically possible to integrate SwiftyMocky on Linux targets, there is no Mock generation feature there yet. You can use SwiftyMokcy runtime via SwiftPM though, as long as your are fine with generating mocks on mac machine.
+CLI was moved bask to the main (this) repo. CLI in this repository will be supported at least until version 5.0.0.
+Version 4.0.x
-
-Getting started
+Current version has several significant changes. It removes deprecated methods (which might be breaking) and deprecates having CLI in the new repository.
-To start working with SwiftyMocky you need to:
+SwiftyPrototype was also extracted to separate library. There are no more compilation flags, so if you were relying on SwiftyMocky with -DMockyCustom
, you will have to switch to SwiftyPrototype
.
-
-- Install CLI
-- Integrate SwiftyMocky runtime library
-- Generate Mocks and add to your test target
-
+We consider current version as stable. We are moving toward using the new Mockfile but the previous configuration format would be still supported. Library works with Swift 4.1, 4.2, 5.0, 5.1.2 and Sourcery 1.0.x.
-
-1. Installing SwiftyMocky CLI:
+While it is technically possible to integrate SwiftyMocky on Linux targets, there is no Mock generation feature there yet. You can use SwiftyMokcy runtime via SwiftPM though, as long as your are fine with generating mocks on mac machine.
+Migration from 3.2.0 and below
-Mint 🌱:
-> brew install mint
-> mint install MakeAWishFoundation/SwiftyMocky-CLI
-
+The migration is not required, you can keep using SwiftyMocky as you did before. The Legacy setup is described in guides section.
-Marathon 🏃:
-> marathon install MakeAWishFoundation/SwiftyMocky-CLI
+Still, we would encourage to try new CLI and share a feedback. We believe it will make using and setting up SwiftyMocky way easier. If you have an existing setup, install CLI as per this guide and try:
+> swiftymocky migrate
-Make:
-
-Clone from https://github.com/MakeAWishFoundation/SwiftyMockyCLI and run make
in the root directory.
+
+Getting started
-2. Integrating SwiftyMocky runtime into test target:
+1. Integrating SwiftyMocky:
CocoaPods:
@@ -373,6 +362,13 @@ 2. I
pod "SwiftyMocky"
+
Use CLI tool from your project directory:
+# To setup initial Mockfile
+% ./Pods/SwiftyMocky/bin/swiftymocky init
+# To generate mocks
+% ./Pods/SwiftyMocky/bin/swiftymocky generate
+
+
Carthage:
To install, add following to you Cartfile:
@@ -381,34 +377,56 @@ 2. I
Then execute carthage update
-For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation or consult [Carthage documentation][carthage-adding-framework].
+For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation or consult [Carthage documentation][carthage-adding-framework].
+
+You need to install CLI to generate mocks - see installation
Swift Package Manager:
Add SwiftyMocky to you Package.swift dependencies:
dependencies: [
- .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0-pre"),
+ .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0"),
]
+You need to install CLI to generate mocks - see installation
+
Note: Examples of SwiftyMocky integration as a tool for Unit tests, as well as a Prototyping framework, are here: https://github.com/MakeAWishFoundation/SM-Integration-Tests
+
+2. Installing SwiftyMocky CLI:
+
+Mint 🌱:
+> brew install mint
+> mint install MakeAWishFoundation/SwiftyMocky
+
+
+Marathon 🏃:
+> marathon install MakeAWishFoundation/SwiftyMocky
+
+
+Make:
+
+Clone from https://github.com/MakeAWishFoundation/SwiftyMockyCLI and run make
in the root directory.
+
+
+
3. Generate mocks
Annotate your protocols that are going to be mocked, making them adopt AutoMockable
protocol, or adding annotation comment above their definition in the source code.
-Mocks are generated from your project root directory, based on configuration inside Mockfile.
+Mocks are generated from your project root directory, based on configuration inside Mockfile.
> swiftymocky setup # if you don't have a Mockfile yet
> swiftymocky doctor # validate your setup
> swiftymocky generate # generate mocks
-More informations about CLI and mock generation
+More informations about CLI and mock generation
-If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
+If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
Usage
@@ -465,7 +483,7 @@ 3. Check invocations of methods, subscripts and properties - Verify
@@ -528,21 +546,21 @@
Documentation
-
Full documentation is available here, as well as through docs directory.
+Full documentation is available here, as well as through docs directory.
-Guides - Table of contents
+Guides - Table of contents
-Changelog is available here
+Changelog is available here
All supported features
-For list all supported features, check documentation here or [guides][link-guides-features]
+For list all supported features, check documentation here or [guides][link-guides-features]
Examples of usage
-For more examples, check out our example project, or examples section in guides.
+For more examples, check out our example project, or examples section in guides.
To run the example project, clone the repo, and run pod install
from the Example directory first.
diff --git a/docs/installation.html b/docs/installation.html
index 19df0679..9aa9df99 100644
--- a/docs/installation.html
+++ b/docs/installation.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
@@ -281,11 +284,11 @@ SwiftyMocky CLI
Mint 🌱:
> brew install mint
-> mint install MakeAWishFoundation/SwiftyMocky-CLI
+> mint install MakeAWishFoundation/SwiftyMocky
Marathon 🏃:
-> marathon install MakeAWishFoundation/SwiftyMocky-CLI
+> marathon install MakeAWishFoundation/SwiftyMocky
Make:
@@ -345,7 +348,7 @@ Join our community on Slack! -> [invitation link here][link-slack]
+ SwiftyMocky 4.1.0
+
-Check out guides, or full documentation
+Check out guides, or full documentation
Table of contents
@@ -286,8 +287,8 @@ Table of contents
- Getting started:
-- Installing SwiftyMocky CLI
- Integrating SwiftyMocky runtime into test target
+- Installation SwiftyMocky CLI
- Generate mocks
- Usage:
@@ -312,9 +313,9 @@
Table of contents
Overview
-SwiftyMocky is Lightweight, strongly typed framework for Mockito-like unit testing experience. As Swift doesn’t support reflections well enough to allow building mocks in runtime, library depends on Sourcery, that scans your source code and generates Mocks Swift code for you!
+SwiftyMocky is a strongly typed framework for Mockito-like unit testing experience. Library depends on Sourcery, that scans your source code and generates Mocks Swift code for you!
-The idea of SwiftyMocky is to automatically mock Swift protocols. The main features are:
+The idea of SwiftyMocky is to automatically mock Swift protocols and protocol compositions. The main features are:
- easy syntax, utilising full power of auto-complete, which makes writing test easier and faster
@@ -329,43 +330,31 @@ Overview
-Important!!! Version 4.x.x
-
-Current version has several significant changes. It removes deprecated methods (which might be breaking) and moves CLI to the new repository.
-
-We consider current version as stable. We are moving toward using the new Mockfile but the previous configuration format would be still supported. Library works with Swift 4.1, 4.2, 5.0, 5.1.2 and Sourcery 0.17-0.18.
+Important!!! Version 4.1.x
-While it is technically possible to integrate SwiftyMocky on Linux targets, there is no Mock generation feature there yet. You can use SwiftyMokcy runtime via SwiftPM though, as long as your are fine with generating mocks on mac machine.
+CLI was moved bask to the main (this) repo. CLI in this repository will be supported at least until version 5.0.0.
+Version 4.0.x
-
-Getting started
+Current version has several significant changes. It removes deprecated methods (which might be breaking) and deprecates having CLI in the new repository.
-To start working with SwiftyMocky you need to:
+SwiftyPrototype was also extracted to separate library. There are no more compilation flags, so if you were relying on SwiftyMocky with -DMockyCustom
, you will have to switch to SwiftyPrototype
.
-
-- Install CLI
-- Integrate SwiftyMocky runtime library
-- Generate Mocks and add to your test target
-
+We consider current version as stable. We are moving toward using the new Mockfile but the previous configuration format would be still supported. Library works with Swift 4.1, 4.2, 5.0, 5.1.2 and Sourcery 1.0.x.
-
-1. Installing SwiftyMocky CLI:
+While it is technically possible to integrate SwiftyMocky on Linux targets, there is no Mock generation feature there yet. You can use SwiftyMokcy runtime via SwiftPM though, as long as your are fine with generating mocks on mac machine.
+Migration from 3.2.0 and below
-Mint 🌱:
-> brew install mint
-> mint install MakeAWishFoundation/SwiftyMocky-CLI
-
+The migration is not required, you can keep using SwiftyMocky as you did before. The Legacy setup is described in guides section.
-Marathon 🏃:
-> marathon install MakeAWishFoundation/SwiftyMocky-CLI
+Still, we would encourage to try new CLI and share a feedback. We believe it will make using and setting up SwiftyMocky way easier. If you have an existing setup, install CLI as per this guide and try:
+> swiftymocky migrate
-Make:
-
-Clone from https://github.com/MakeAWishFoundation/SwiftyMockyCLI and run make
in the root directory.
+
+Getting started
-2. Integrating SwiftyMocky runtime into test target:
+1. Integrating SwiftyMocky:
CocoaPods:
@@ -373,6 +362,13 @@ 2. I
pod "SwiftyMocky"
+
Use CLI tool from your project directory:
+# To setup initial Mockfile
+% ./Pods/SwiftyMocky/bin/swiftymocky init
+# To generate mocks
+% ./Pods/SwiftyMocky/bin/swiftymocky generate
+
+
Carthage:
To install, add following to you Cartfile:
@@ -381,34 +377,56 @@ 2. I
Then execute carthage update
-For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation or consult [Carthage documentation][carthage-adding-framework].
+For Carthage, few additional steps are required ⚠️. For detailed install instructions, see full documentation or consult [Carthage documentation][carthage-adding-framework].
+
+You need to install CLI to generate mocks - see installation
Swift Package Manager:
Add SwiftyMocky to you Package.swift dependencies:
dependencies: [
- .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0-pre"),
+ .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0"),
]
+You need to install CLI to generate mocks - see installation
+
Note: Examples of SwiftyMocky integration as a tool for Unit tests, as well as a Prototyping framework, are here: https://github.com/MakeAWishFoundation/SM-Integration-Tests
+
+2. Installing SwiftyMocky CLI:
+
+Mint 🌱:
+> brew install mint
+> mint install MakeAWishFoundation/SwiftyMocky
+
+
+Marathon 🏃:
+> marathon install MakeAWishFoundation/SwiftyMocky
+
+
+Make:
+
+Clone from https://github.com/MakeAWishFoundation/SwiftyMockyCLI and run make
in the root directory.
+
+
+
3. Generate mocks
Annotate your protocols that are going to be mocked, making them adopt AutoMockable
protocol, or adding annotation comment above their definition in the source code.
-Mocks are generated from your project root directory, based on configuration inside Mockfile.
+Mocks are generated from your project root directory, based on configuration inside Mockfile.
> swiftymocky setup # if you don't have a Mockfile yet
> swiftymocky doctor # validate your setup
> swiftymocky generate # generate mocks
-More informations about CLI and mock generation
+More informations about CLI and mock generation
-If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
+If you don’t want to migrate to our CLI and prefer to use raw
Sourcery, please refer to this section in documentation.
Usage
@@ -465,7 +483,7 @@ 3. Check invocations of methods, subscripts and properties - Verify
@@ -528,21 +546,21 @@
Documentation
-
Full documentation is available here, as well as through docs directory.
+Full documentation is available here, as well as through docs directory.
-Guides - Table of contents
+Guides - Table of contents
-Changelog is available here
+Changelog is available here
All supported features
-For list all supported features, check documentation here or [guides][link-guides-features]
+For list all supported features, check documentation here or [guides][link-guides-features]
Examples of usage
-For more examples, check out our example project, or examples section in guides.
+For more examples, check out our example project, or examples section in guides.
To run the example project, clone the repo, and run pod install
from the Example directory first.
diff --git a/docs/prototyping.html b/docs/prototyping.html
index 24ab1a1a..1b12c292 100644
--- a/docs/prototyping.html
+++ b/docs/prototyping.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
diff --git a/docs/search.json b/docs/search.json
index 2745b158..4862a2d6 100644
--- a/docs/search.json
+++ b/docs/search.json
@@ -1 +1 @@
-{"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV5valueypvp":{"name":"value","abstract":"[internal] Returned value
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV8intValueSivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other attribute
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV5value8intValue16shortDescription7compareACyp_SiSSSbyp_ypAA7MatcherCtctcfc":{"name":"init(value:intValue:shortDescription:compare:)","abstract":"[internal] Creates new TypeErasedAttribute instance, with specified return value and compare closure
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html":{"name":"TypeErasedAttribute","abstract":"[Internal] Used to wrap availability constrained attributes, since enum cases used ubternally to"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP5valueypvp":{"name":"value","abstract":"
[internal] Returned value
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP03intE0Sivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other generic attributes values
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html":{"name":"TypeErasedValue","abstract":"[Internal] Used as generic constraint for generic method stubs.
"},"Enums/Utils.html#/s:11SwiftyMocky5UtilsO19closestCallsMessage3for4nameSSSayAA7MatcherC16ComparisonResultVG_SStFZ":{"name":"closestCallsMessage(for:name:)","abstract":"Undocumented
","parent_name":"Utils"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO10invocationyA2CmF":{"name":"invocation","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO5givenyA2CmF":{"name":"given","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO7performyA2CmF":{"name":"perform","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html":{"name":"MockScope","abstract":"Undocumented
"},"Enums/Utils.html":{"name":"Utils","abstract":"Undocumented
"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC5valuexSgvp":{"name":"value","abstract":"Last captured value (if any)
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC9allValuesSayxGvp":{"name":"allValues","abstract":"All captured values
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorCACyxGycfc":{"name":"init()","abstract":"Undocumented
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC7capture5whereAA9ParameterOyxGSbxcSg_tF":{"name":"capture(where:)","abstract":"Return parameter matcher which captures the argument.
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html":{"name":"ArgumentCaptor","abstract":"Undocumented
"},"contents.html":{"name":"Contents"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC7isValidSbvp":{"name":"isValid","abstract":"[Internal] Returns whether there are still products to be used as stub return values
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"[Internal] Stubbing policy. By default uses parent mock policy
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodCyACSayAA11StubProductOGcfc":{"name":"init(_:)","abstract":"[Internal] Creates new method init with given products.
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC10getProduct6policyAA04StubF0OAA14StubbingPolicyO_tF":{"name":"getProduct(policy:)","abstract":"[Internal] Get next product, with respect to self.policy and inherited policy
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC4stub3forAA7StubberVyxGxm_tlF":{"name":"stub(for:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC10stubThrows3forAA07StubberF0VyxGxm_tlF":{"name":"stubThrows(for:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubbedMethod"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO6returnyACypcACmF":{"name":"return(_:)","abstract":"Undocumented
","parent_name":"StubProduct"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO5throwyACs5Error_pcACmF":{"name":"throw(_:)","abstract":"Undocumented
","parent_name":"StubProduct"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO6castedxyKlF":{"name":"casted()","abstract":"[Internal] If self is returns, and nested value can be casted to T, returns value. Can fail (fatalError)
","parent_name":"StubProduct"},"Enums/MockError.html#/s:11SwiftyMocky9MockErrorO9notStubedyA2CmF":{"name":"notStubed","abstract":"Undocumented
","parent_name":"MockError"},"Extensions/UInt.html#/s:Su11SwiftyMockyE7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"UInt"},"Extensions/Optional.html#/s:Sq11SwiftyMockyE6orFailyxSSF":{"name":"orFail(_:)","abstract":"Returns unwrapped value, or fails.
","parent_name":"Optional"},"Extensions/Optional.html#/s:s26ExpressibleByStringLiteralP0cD4TypeQa":{"name":"StringLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP0cdeF4TypeQa":{"name":"ExtendedGraphemeClusterLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s33ExpressibleByUnicodeScalarLiteralP0cdE4TypeQa":{"name":"UnicodeScalarLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s26ExpressibleByStringLiteralP06stringD0x0cD4TypeQz_tcfc":{"name":"init(stringLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP08extendeddeF0x0cdeF4TypeQz_tcfc":{"name":"init(extendedGraphemeClusterLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s33ExpressibleByUnicodeScalarLiteralP07unicodedE0x0cdE4TypeQz_tcfc":{"name":"init(unicodeScalarLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByIntegerLiteralP0cD4TypeQa":{"name":"IntegerLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByIntegerLiteralP07integerD0x0cD4TypeQz_tcfc":{"name":"init(integerLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByBooleanLiteralP0cD4TypeQa":{"name":"BooleanLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByBooleanLiteralP07booleanD0x0cD4TypeQz_tcfc":{"name":"init(booleanLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByFloatLiteralP0cD4TypeQa":{"name":"FloatLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByFloatLiteralP05floatD0x0cD4TypeQz_tcfc":{"name":"init(floatLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByArrayLiteralP0cD7ElementQa":{"name":"ArrayLiteralElement","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfc":{"name":"init(arrayLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP3KeyQa":{"name":"Key","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP5ValueQa":{"name":"Value","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP010dictionaryD0x3KeyQz_5ValueQztd_tcfc":{"name":"init(dictionaryLiteral:)","parent_name":"Optional"},"Extensions/Int.html#/s:Si11SwiftyMockyE7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Int"},"Protocols/WithStubbingPolicy.html#/s:11SwiftyMocky18WithStubbingPolicyP6policyAA0dE0Ovp":{"name":"policy","abstract":"Stubbing policy
","parent_name":"WithStubbingPolicy"},"Protocols/WithStubbingPolicy.html#/s:11SwiftyMocky18WithStubbingPolicyP4withyxAA0dE0OF":{"name":"with(_:)","abstract":"[Internal] with new policy
","parent_name":"WithStubbingPolicy"},"Protocols/WithStaticSequencingPolicy.html#/s:11SwiftyMocky26WithStaticSequencingPolicyP010sequencingF0AA0eF0OvpZ":{"name":"sequencingPolicy","abstract":"Used sequencibg policy
","parent_name":"WithStaticSequencingPolicy"},"Protocols/WithSequencingPolicy.html#/s:11SwiftyMocky20WithSequencingPolicyP010sequencingE0AA0dE0Ovp":{"name":"sequencingPolicy","abstract":"Used sequencibg policy
","parent_name":"WithSequencingPolicy"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV3setyys5NeverOSScFZ":{"name":"set(_:)","abstract":"[Internal] Override handling error handler
","parent_name":"FatalErrorUtil"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV7restoreyyFZ":{"name":"restore()","abstract":"[Internal] Restores default handler
","parent_name":"FatalErrorUtil"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV05fatalD0ys5NeverOSSFZ":{"name":"fatalError(_:)","abstract":"[Internal] Perform fatal error handler
","parent_name":"FatalErrorUtil"},"Classes/SwiftyMockyTestObserver.html#/setup()":{"name":"setup()","abstract":"[Internal] No setup whatsoever
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/handleFatalError(message:file:line:)":{"name":"handleFatalError(message:file:line:)","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/s:11SwiftyMocky0aB12TestObserverC5setupyyFZ":{"name":"setup()","abstract":"Call this method to setup custom error handling for SwiftyMocky, that allows to gracefully handle missing stub fatal errors.","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/c:@M@SwiftyMocky@objc(cs)SwiftyMockyTestObserver(im)testCaseWillStart:":{"name":"testCaseWillStart(_:)","abstract":"
[Internal] Observer for test start
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/c:@M@SwiftyMocky@objc(cs)SwiftyMockyTestObserver(im)testCaseDidFinish:":{"name":"testCaseDidFinish(_:)","abstract":"[Internal] Observer for test finished
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/s:11SwiftyMocky0aB12TestObserverC16handleFatalError7message4file4lineySS_s12StaticStringVSutFZ":{"name":"handleFatalError(message:file:line:)","abstract":"[Internal] used to notify about internal error. Do not call it directly.
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html":{"name":"SwiftyMockyTestObserver"},"Structs/FatalErrorUtil.html":{"name":"FatalErrorUtil","abstract":"[Internal] Used for handling fatal errors inside library.
"},"Protocols/WithSequencingPolicy.html":{"name":"WithSequencingPolicy","abstract":"Has sequencing policy for stubbing methods
"},"Protocols/WithStaticSequencingPolicy.html":{"name":"WithStaticSequencingPolicy","abstract":"Has sequencing policy for stubbing static methods
"},"Protocols/WithStubbingPolicy.html":{"name":"WithStubbingPolicy","abstract":"[Internal] used for marking that stubs have configurable policy
"},"Extensions/Int.html":{"name":"Int"},"Extensions/Optional.html":{"name":"Optional"},"Extensions/UInt.html":{"name":"UInt"},"Enums/MockError.html":{"name":"MockError","abstract":"[Internal] Generic Mock library errors
"},"Enums/StubProduct.html":{"name":"StubProduct","abstract":"[Internal] Possible Given products. Method can either return or throw an error (in general)
"},"Classes/StubbedMethod.html":{"name":"StubbedMethod","abstract":"[Internal] Allows to reduce Mock.generated.swif size, by moving part of implementation here.
"},"Internal.html#/s:11SwiftyMocky7Failureys5NeverOSSF":{"name":"Failure(_:)","abstract":"[Internal] Fails flow with given message
"},"Internal.html#/s:11SwiftyMocky0B6Assert__4file4lineySbyXK_SSyXKs12StaticStringVSutF":{"name":"MockyAssert(_:_:file:line:)","abstract":"[internal] Assertion used by mocks and Verify methods
"},"Classes/MockyAssertion.html#/s:11SwiftyMocky0B9AssertionC7handlerySb_SSs12StaticStringVSutcSgvpZ":{"name":"handler","abstract":"You can use it to define assertion behaviour.","parent_name":"MockyAssertion"},"Helpers.html#/s:11SwiftyMocky20XCTAssertThrowsError_2of_4file4lineyxyKXK_q_mSSyXKs12StaticStringVSuts0E0R_r0_lF":{"name":"XCTAssertThrowsError(_:of:_:file:line:)","abstract":"
Allows to verify if error was thrown, and if it is of given type.
"},"Helpers.html#/s:11SwiftyMocky20XCTAssertThrowsError_5error_4file4lineyxyKXK_q_SSyXKs12StaticStringVSutSQR_s0E0R_r0_lF":{"name":"XCTAssertThrowsError(_:error:_:file:line:)","abstract":"Allows to verify if error was throws, and if its exactly the one expected.
"},"Classes/MockyAssertion.html":{"name":"MockyAssertion","abstract":"You can use this class if there is need to define custom"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV5valueypvp":{"name":"value","abstract":"
[internal] Returned value
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV8intValueSivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other generic attributes
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV5value8intValue16shortDescription7compareACyp_SiSSSbyp_ypAA7MatcherCtctcfc":{"name":"init(value:intValue:shortDescription:compare:)","abstract":"[internal] Creates new GenericAttribute instance, with specified return value and compare closure
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html":{"name":"GenericAttribute","abstract":"[Internal] Used to wrap generic parameters, for sake of generic method stubs.
"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"Stubbing policy. If wrap - it will iterate over recorded values. If drop - it will remove value when stub returns. If default - it will use mock settings
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV_9returningACyxGAA13StubbedMethodC_xmtcfc":{"name":"init(_:returning:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6returnyyxF":{"name":"return(_:)","abstract":"Record return value
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6returnyyxd_tF":{"name":"return(_:)","abstract":"Record subsequent return values, in given order (comma separated)
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV5throwyys5Error_pF":{"name":"throw(_:)","abstract":"Record thrown error
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV5throwyys5Error_pd_tF":{"name":"throw(_:)","abstract":"Record subsequent thrown errors, in given order (comma separated)
","parent_name":"StubberThrows"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"Stubbing policy. If wrap - it will iterate over recorded values. If drop - it will remove value when stub returns. If default - it will use mock settings
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV_9returningACyxGAA13StubbedMethodC_xmtcfc":{"name":"init(_:returning:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6returnyyxF":{"name":"return(_:)","abstract":"Record return value
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6returnyyxd_tF":{"name":"return(_:)","abstract":"Record subsequent return values, in given order (comma separated)
","parent_name":"Stubber"},"Enums/Count.html#/s:11SwiftyMocky5CountO21CustomMatchingClosurea":{"name":"CustomMatchingClosure","abstract":"Count matching closure
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO18IntegerLiteralTypea":{"name":"IntegerLiteralType","abstract":"[Internal] Count is represented by integer literals, with type Int
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11atLeastOnceyA2CmF":{"name":"atLeastOnce","abstract":"Called at least once
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4onceyA2CmF":{"name":"once","abstract":"Called exactly once
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO6customyACSbSiccACmF":{"name":"custom(_:)","abstract":"Custom count resolving closure
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO7exactlyyACSicACmF":{"name":"exactly(_:)","abstract":"Called exactly n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4fromyACSi_SitcACmF":{"name":"from(_:to:)","abstract":"Called in a…b range
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4lessyACSi_tcACmF":{"name":"less(than:)","abstract":"Called less than n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11lessOrEqualyACSi_tcACmF":{"name":"lessOrEqual(to:)","abstract":"Called less than ot equal to n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4moreyACSi_tcACmF":{"name":"more(than:)","abstract":"Called more than n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11moreOrEqualyACSi_tcACmF":{"name":"moreOrEqual(to:)","abstract":"Called more than ot equal to n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO5neveryA2CmF":{"name":"never","abstract":"Never called
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO14integerLiteralACSi_tcfc":{"name":"init(integerLiteral:)","abstract":"Creates new count instance, matching specific count
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11descriptionSSvp":{"name":"description","abstract":"Human readable description
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Count"},"Protocols/Countable.html#/s:11SwiftyMocky9CountableP7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Countable"},"Classes/Matcher/ParameterComparisonResult.html#/s:11SwiftyMocky7MatcherC25ParameterComparisonResultVyAESb_AA0D0OyxGAGyq_GSStcr0_lufc":{"name":"init(_:_:_:_:)","abstract":"Undocumented
","parent_name":"ParameterComparisonResult"},"Classes/Matcher/ParameterComparisonResult.html#/s:11SwiftyMocky7MatcherC25ParameterComparisonResultV12resultStringSSvp":{"name":"resultString","abstract":"Undocumented
","parent_name":"ParameterComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7matchedSivp":{"name":"matched","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV5totalSivp":{"name":"total","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7resultsSayAC09ParameterdE0VGvp":{"name":"results","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV10percentageSfvp":{"name":"percentage","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV16percentageStringSSvp":{"name":"percentageString","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV11isFullMatchSbvp":{"name":"isFullMatch","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7isMatchSbvp":{"name":"isMatch","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultVyAESayAC09ParameterdE0VGcfc":{"name":"init(_:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7matched5totalAESi_Sitcfc":{"name":"init(matched:total:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV5matchAEvpZ":{"name":"match","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV4noneAEvpZ":{"name":"none","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV12resultStringySSSi_SStF":{"name":"resultString(_:_:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC7defaultACvpZ":{"name":"default","abstract":"Shared Matcher instance
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC17fatalErrorHandleryySS_s12StaticStringVSutcvpZ":{"name":"fatalErrorHandler","abstract":"[Internal] matcher fatal error handler
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherCACycfc":{"name":"init()","abstract":"Create new clean matcher instance.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC7matcherA2C_tcfc":{"name":"init(matcher:)","abstract":"Creante new matcher instance, copying existing comparator from another instance.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC3set4file4lineys12StaticStringVSg_SuSgtF":{"name":"set(file:line:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC23setupCorrentFileAndLine4file4lineys12StaticStringV_SutF":{"name":"setupCorrentFileAndLine(file:line:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC16clearFileAndLineyyF":{"name":"clearFileAndLine()","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC14onFatalFailureyySSF":{"name":"onFatalFailure(_:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8register_5matchyxm_Sbx_xtctlF":{"name":"register(_:match:)","abstract":"Registers comparator for given type T.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8registeryyxmmlF":{"name":"register(_:)","abstract":"Registers comparator for type, like comparing Int.self to Int.self. These types of comparators always returns true. Register like: Matcher.default.register(CustomType.Type.self)
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8registeryyxmSQRzlF":{"name":"register(_:)","abstract":"Register default comparatot for Equatable types. Required for generic mocks to work.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tlF":{"name":"comparator(for:)","abstract":"Returns comparator closure for given type (if any).
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSTRzlF":{"name":"comparator(for:)","abstract":"Default Sequence comparator, compares count, and then depending on sequence type:
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSQRzlF":{"name":"comparator(for:)","abstract":"Default Equatable comparator, compares if elements are equal.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSQRzSTRzlF":{"name":"comparator(for:)","abstract":"Default Equatable Sequence comparator, compares count, and then for every element equal element.
","parent_name":"Matcher"},"Classes/Matcher/ComparisonResult.html":{"name":"ComparisonResult","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher/ParameterComparisonResult.html":{"name":"ParameterComparisonResult","abstract":"Undocumented
","parent_name":"Matcher"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO1_yACyxGAEmlF":{"name":"_","abstract":"Wildcard - any value
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO5valueyACyxGxcAEmlF":{"name":"value(_:)","abstract":"Explicit value
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO8matchingyACyxGSbxccAEmlF":{"name":"matching(_:)","abstract":"Any value matching
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3anyACyxGvpZ":{"name":"any","abstract":"Represents and matches any parameter value - syntactic sugar for ._
case.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3anyyACyqd__Gqd__mlFZ":{"name":"any(_:)","abstract":"Represents and matches any parameter value - syntactic sugar for ._
case. Used, when needs to explicitely specify","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO16shortDescriptionSSvp":{"name":"shortDescription","abstract":"
Undocumented
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAARlzClE12sameInstance2asACyxGqd___tRld__ClFZ":{"name":"sameInstance(as:)","abstract":"Represents and matches values on an same instance
basis.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAARlzClE10isInstance2ofACyxGqd__m_tRld__ClFZ":{"name":"isInstance(of:)","abstract":"Represents and matches whether parameter is of specific type, using is
operator.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3allyACyxGAEd_tFZ":{"name":"all(_:)","abstract":"Allows combining multiple Parameter constraints into one Parameter constraint.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOA2A15TypeErasedValueRzlE03intF0Sivp":{"name":"intValue","abstract":"Used for invocations sorting purpose.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO8intValueSivp":{"name":"intValue","abstract":"Used for invocations sorting purpose.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:s26ExpressibleByStringLiteralP0cD4TypeQa":{"name":"StringLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP0cdeF4TypeQa":{"name":"ExtendedGraphemeClusterLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s33ExpressibleByUnicodeScalarLiteralP0cdE4TypeQa":{"name":"UnicodeScalarLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s26ExpressibleByStringLiteralP06stringD0x0cD4TypeQz_tcfc":{"name":"init(stringLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP08extendeddeF0x0cdeF4TypeQz_tcfc":{"name":"init(extendedGraphemeClusterLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s33ExpressibleByUnicodeScalarLiteralP07unicodedE0x0cdE4TypeQz_tcfc":{"name":"init(unicodeScalarLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s23ExpressibleByNilLiteralP03nilD0xyt_tcfc":{"name":"init(nilLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByIntegerLiteralP0cD4TypeQa":{"name":"IntegerLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByIntegerLiteralP07integerD0x0cD4TypeQz_tcfc":{"name":"init(integerLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByBooleanLiteralP0cD4TypeQa":{"name":"BooleanLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByBooleanLiteralP07booleanD0x0cD4TypeQz_tcfc":{"name":"init(booleanLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByFloatLiteralP0cD4TypeQa":{"name":"FloatLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByFloatLiteralP05floatD0x0cD4TypeQz_tcfc":{"name":"init(floatLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByArrayLiteralP0cD7ElementQa":{"name":"ArrayLiteralElement","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfc":{"name":"init(arrayLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP3KeyQa":{"name":"Key","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP5ValueQa":{"name":"Value","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP010dictionaryD0x3KeyQz_5ValueQztd_tcfc":{"name":"init(dictionaryLiteral:)","parent_name":"Parameter"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C5GivenQa":{"name":"StaticGiven","abstract":"Stubbed method and property type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C6VerifyQa":{"name":"StaticVerify","abstract":"Verification type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C7PerformQa":{"name":"StaticPerform","abstract":"Perform type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP5givenyy0C5GivenQzFZ":{"name":"given(_:)","abstract":"Registers return value for stubbed method, for specified attributes set.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP7performyy0C7PerformQzFZ":{"name":"perform(_:)","abstract":"Registers perform closure, which will be executed upon calling stubbed method, for specified attribtes.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP6verify_5count4file4liney0C6VerifyQz_AA5CountOs0C6StringVSutFZ":{"name":"verify(_:count:file:line:)","abstract":"Verifies, that given method stub was called exact number of times.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP05resetD0yyAA0D5ScopeOd_tFZ":{"name":"resetMock(_:)","abstract":"Clear mock internals. You can specify what to clear (invocations aka verify, givens or performs)","parent_name":"StaticMock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP5GivenQa":{"name":"Given","abstract":"
Stubbed method and property type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP6VerifyQa":{"name":"Verify","abstract":"Verification type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP7PerformQa":{"name":"Perform","abstract":"Perform type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP5givenyy5GivenQzF":{"name":"given(_:)","abstract":"Registers return value for stubbed method, for specified attributes set.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP7performyy7PerformQzF":{"name":"perform(_:)","abstract":"Registers perform closure, which will be executed upon calling stubbed method, for specified attribtes.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP6verify_5count4file4liney6VerifyQz_AA5CountOs12StaticStringVSutF":{"name":"verify(_:count:file:line:)","abstract":"Verifies, that given method stub was called exact number of times.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP05resetC0yyAA0C5ScopeOd_tF":{"name":"resetMock(_:)","abstract":"Clear mock internals. You can specify what to clear (invocations aka verify, givens or performs)","parent_name":"Mock"},"Protocols/Mock.html":{"name":"Mock","abstract":"
Every generated mock implementation adopts Mock protocol."},"Protocols/StaticMock.html":{"name":"StaticMock","abstract":"
Every mock, that stubs static methods, should adopt StaticMock protocol."},"Enums/Parameter.html":{"name":"Parameter","abstract":"
Parameter wraps method attribute, allowing to make a difference between explicit value,"},"Classes/Matcher.html":{"name":"Matcher","abstract":"
Matcher is container class, responsible for storing and resolving comparators for given types.
"},"Protocols/Countable.html":{"name":"Countable","abstract":"Allows matching count, verifying whether given count is right or not
"},"Enums/Count.html":{"name":"Count","abstract":"Count enum. Use it for all Verify features, when checking how many times something happened.
"},"Structs/Stubber.html":{"name":"Stubber","abstract":"Used to populate stubbed method with sequence of events. Call it’s methods, to record subsequent stub return values.
"},"Structs/StubberThrows.html":{"name":"StubberThrows","abstract":"Used to populate stubbed method with sequence of events. Call it’s methods, to record subsequent stub return/throw values.
"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO24lastWrittenResolvedFirstyA2CmF":{"name":"lastWrittenResolvedFirst","abstract":"Default policy. Last given overrides previous, if they are both with same generocity level
","parent_name":"SequencingPolicy"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO14inWritingOrderyA2CmF":{"name":"inWritingOrder","abstract":"Givens would be recalled in order of generocity, respecting writing order (first line resolved first)
","parent_name":"SequencingPolicy"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO6sorted_2bySayxGAF_Sbx_xtXEtlF":{"name":"sorted(_:by:)","abstract":"[Internal] Sorts stub return values / errors throw with respect to ordering rule and policy
","parent_name":"SequencingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO7defaultyA2CmF":{"name":"default","abstract":"Use current policy specified for Mock method type
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4wrapyA2CmF":{"name":"wrap","abstract":"Default policy in general. When reaching end of sequence of events, index will rewind to beginning (looping)
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4dropyA2CmF":{"name":"drop","abstract":"With this policy, every call drops event. When events count reaches zero, given is removed from mock.
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4realyA2CF":{"name":"real(_:)","abstract":"[Internal] Resolves used policy. If self is default, will use inherited, otherwise self
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO7updated_4withS2i_SitF":{"name":"updated(_:with:)","abstract":"[Internal] Computes new index for stubs array. For wrap will rewind if out of bounds, for drop will not.","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html":{"name":"StubbingPolicy","abstract":"
Given Policy for treating sequence of events (products). Used to determine if stub return values should be consumed"},"Enums/SequencingPolicy.html":{"name":"SequencingPolicy","abstract":"
Sequencing policy - in which order Given would be resolved. Pleas ehve in mind that this policy is applied ONLY after"},"Global%20methods.html#/s:11SwiftyMocky5Givenyyx_ABQzAA14StubbingPolicyOtAA4MockRzlF":{"name":"Given(_:_:_:)","abstract":"
Setup return value for method stubs in mock instance. When this method will be called on mock, it"},"Global%20methods.html#/s:11SwiftyMocky5Givenyyxm_06StaticC0QzAA14StubbingPolicyOtAA0D4MockRzlF":{"name":"Given(_:_:_:)","abstract":"
Setup return value for static method stubs on mock type. When this static method will be called, it"},"Global%20methods.html#/s:11SwiftyMocky7Performyyx_ABQztAA4MockRzlF":{"name":"Perform(_:_:)","abstract":"
Setup perform closure for method stubs in mock instance. When this method will be called on mock, it"},"Global%20methods.html#/s:11SwiftyMocky7Performyyxm_06StaticC0QztAA0D4MockRzlF":{"name":"Perform(_:_:)","abstract":"
Setup perform closure for static method stubs for mock type. When this method will be called on mock type, it"},"Global%20methods.html#/s:11SwiftyMocky6Verify__4file4lineyx_ABQzs12StaticStringVSutAA4MockRzlF":{"name":"Verify(_:_:file:line:)","abstract":"
Verify that given method was called on mock object at least once.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify__4file4lineyxm_06StaticC0Qzs0F6StringVSutAA0F4MockRzlF":{"name":"Verify(_:_:file:line:)","abstract":"Verify that given static method was called on mock type at least once.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify___4file4lineyx_AA5CountOABQzs12StaticStringVSutAA4MockRzlF":{"name":"Verify(_:_:_:file:line:)","abstract":"Verify that given method was called on mock object exact number of times.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify___4file4lineyxm_AA5CountO06StaticC0Qzs0G6StringVSutAA0G4MockRzlF":{"name":"Verify(_:_:_:file:line:)","abstract":"Verify that given static method was called on mock type exact number of times.
"},"matcher-support-for-not-equatable.html":{"name":"Matcher support for not Equatable"},"handling-generics.html":{"name":"Handling Generics"},"examples.html":{"name":"Examples"},"legacy.html":{"name":"Legacy"},"add-xcode-generate-action.html":{"name":"Add XCode generate action"},"known-issues.html":{"name":"Known issues"},"changelog.html":{"name":"CHANGELOG"},"overview.html":{"name":"Overview"},"installation.html":{"name":"Installation"},"setup-in-project.html":{"name":"Setup in project"},"mockfile.html":{"name":"Mockfile"},"command-line-interface.html":{"name":"Command Line Interface"},"supported-features.html":{"name":"Supported features"},"prototyping.html":{"name":"Prototyping"},"Main%20Guides.html":{"name":"Main Guides"},"Additional%20Guides.html":{"name":"Additional Guides"},"Global%20methods.html":{"name":"Global methods"},"Configuration.html":{"name":"Configuration"},"Types.html":{"name":"Types"},"Generics.html":{"name":"Generics"},"Helpers.html":{"name":"Helpers"},"Internal.html":{"name":"Internal"},"Other%20Guides.html":{"name":"Other Guides","abstract":"The following guides are available globally.
"},"Other%20Classes.html":{"name":"Other Classes","abstract":"The following classes are available globally.
"},"Other%20Enums.html":{"name":"Other Enumerations","abstract":"The following enumerations are available globally.
"},"Other%20Protocols.html":{"name":"Other Protocols","abstract":"The following protocols are available globally.
"},"Other%20Structs.html":{"name":"Other Structures","abstract":"The following structures are available globally.
"}}
\ No newline at end of file
+{"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV5valueypvp":{"name":"value","abstract":"[internal] Returned value
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV8intValueSivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other attribute
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html#/s:11SwiftyMocky19TypeErasedAttributeV5value8intValue16shortDescription7compareACyp_SiSSSbyp_ypAA7MatcherCtctcfc":{"name":"init(value:intValue:shortDescription:compare:)","abstract":"[internal] Creates new TypeErasedAttribute instance, with specified return value and compare closure
","parent_name":"TypeErasedAttribute"},"Structs/TypeErasedAttribute.html":{"name":"TypeErasedAttribute","abstract":"[Internal] Used to wrap availability constrained attributes, since enum cases used ubternally to"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP5valueypvp":{"name":"value","abstract":"
[internal] Returned value
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP03intE0Sivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other generic attributes values
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html#/s:11SwiftyMocky15TypeErasedValueP16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"TypeErasedValue"},"Protocols/TypeErasedValue.html":{"name":"TypeErasedValue","abstract":"[Internal] Used as generic constraint for generic method stubs.
"},"Enums/Utils.html#/s:11SwiftyMocky5UtilsO19closestCallsMessage3for4nameSSSayAA7MatcherC16ComparisonResultVG_SStFZ":{"name":"closestCallsMessage(for:name:)","abstract":"Undocumented
","parent_name":"Utils"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO10invocationyA2CmF":{"name":"invocation","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO5givenyA2CmF":{"name":"given","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html#/s:11SwiftyMocky9MockScopeO7performyA2CmF":{"name":"perform","abstract":"Undocumented
","parent_name":"MockScope"},"Enums/MockScope.html":{"name":"MockScope","abstract":"Undocumented
"},"Enums/Utils.html":{"name":"Utils","abstract":"Undocumented
"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC5valuexSgvp":{"name":"value","abstract":"Last captured value (if any)
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC9allValuesSayxGvp":{"name":"allValues","abstract":"All captured values
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorCACyxGycfc":{"name":"init()","abstract":"Undocumented
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html#/s:11SwiftyMocky14ArgumentCaptorC7capture5whereAA9ParameterOyxGSbxcSg_tF":{"name":"capture(where:)","abstract":"Return parameter matcher which captures the argument.
","parent_name":"ArgumentCaptor"},"Classes/ArgumentCaptor.html":{"name":"ArgumentCaptor","abstract":"Undocumented
"},"contents.html":{"name":"Contents"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC7isValidSbvp":{"name":"isValid","abstract":"[Internal] Returns whether there are still products to be used as stub return values
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"[Internal] Stubbing policy. By default uses parent mock policy
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodCyACSayAA11StubProductOGcfc":{"name":"init(_:)","abstract":"[Internal] Creates new method init with given products.
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC10getProduct6policyAA04StubF0OAA14StubbingPolicyO_tF":{"name":"getProduct(policy:)","abstract":"[Internal] Get next product, with respect to self.policy and inherited policy
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC4stub3forAA7StubberVyxGxm_tlF":{"name":"stub(for:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubbedMethod"},"Classes/StubbedMethod.html#/s:11SwiftyMocky13StubbedMethodC10stubThrows3forAA07StubberF0VyxGxm_tlF":{"name":"stubThrows(for:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubbedMethod"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO6returnyACypcACmF":{"name":"return(_:)","abstract":"Undocumented
","parent_name":"StubProduct"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO5throwyACs5Error_pcACmF":{"name":"throw(_:)","abstract":"Undocumented
","parent_name":"StubProduct"},"Enums/StubProduct.html#/s:11SwiftyMocky11StubProductO6castedxyKlF":{"name":"casted()","abstract":"[Internal] If self is returns, and nested value can be casted to T, returns value. Can fail (fatalError)
","parent_name":"StubProduct"},"Enums/MockError.html#/s:11SwiftyMocky9MockErrorO9notStubedyA2CmF":{"name":"notStubed","abstract":"Undocumented
","parent_name":"MockError"},"Extensions/UInt.html#/s:Su11SwiftyMockyE7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"UInt"},"Extensions/Optional.html#/s:Sq11SwiftyMockyE6orFailyxSSF":{"name":"orFail(_:)","abstract":"Returns unwrapped value, or fails.
","parent_name":"Optional"},"Extensions/Optional.html#/s:Sq11SwiftyMockyE8isNotNilSbvp":{"name":"isNotNil","abstract":"Undocumented
","parent_name":"Optional"},"Extensions/Optional.html#/s:s26ExpressibleByStringLiteralP0cD4TypeQa":{"name":"StringLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP0cdeF4TypeQa":{"name":"ExtendedGraphemeClusterLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s33ExpressibleByUnicodeScalarLiteralP0cdE4TypeQa":{"name":"UnicodeScalarLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s26ExpressibleByStringLiteralP06stringD0x0cD4TypeQz_tcfc":{"name":"init(stringLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP08extendeddeF0x0cdeF4TypeQz_tcfc":{"name":"init(extendedGraphemeClusterLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s33ExpressibleByUnicodeScalarLiteralP07unicodedE0x0cdE4TypeQz_tcfc":{"name":"init(unicodeScalarLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByIntegerLiteralP0cD4TypeQa":{"name":"IntegerLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByIntegerLiteralP07integerD0x0cD4TypeQz_tcfc":{"name":"init(integerLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByBooleanLiteralP0cD4TypeQa":{"name":"BooleanLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s27ExpressibleByBooleanLiteralP07booleanD0x0cD4TypeQz_tcfc":{"name":"init(booleanLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByFloatLiteralP0cD4TypeQa":{"name":"FloatLiteralType","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByFloatLiteralP05floatD0x0cD4TypeQz_tcfc":{"name":"init(floatLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByArrayLiteralP0cD7ElementQa":{"name":"ArrayLiteralElement","parent_name":"Optional"},"Extensions/Optional.html#/s:s25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfc":{"name":"init(arrayLiteral:)","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP3KeyQa":{"name":"Key","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP5ValueQa":{"name":"Value","parent_name":"Optional"},"Extensions/Optional.html#/s:s30ExpressibleByDictionaryLiteralP010dictionaryD0x3KeyQz_5ValueQztd_tcfc":{"name":"init(dictionaryLiteral:)","parent_name":"Optional"},"Extensions/Int.html#/s:Si11SwiftyMockyE7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Int"},"Protocols/WithStubbingPolicy.html#/s:11SwiftyMocky18WithStubbingPolicyP6policyAA0dE0Ovp":{"name":"policy","abstract":"Stubbing policy
","parent_name":"WithStubbingPolicy"},"Protocols/WithStubbingPolicy.html#/s:11SwiftyMocky18WithStubbingPolicyP4withyxAA0dE0OF":{"name":"with(_:)","abstract":"[Internal] with new policy
","parent_name":"WithStubbingPolicy"},"Protocols/WithStaticSequencingPolicy.html#/s:11SwiftyMocky26WithStaticSequencingPolicyP010sequencingF0AA0eF0OvpZ":{"name":"sequencingPolicy","abstract":"Used sequencibg policy
","parent_name":"WithStaticSequencingPolicy"},"Protocols/WithSequencingPolicy.html#/s:11SwiftyMocky20WithSequencingPolicyP010sequencingE0AA0dE0Ovp":{"name":"sequencingPolicy","abstract":"Used sequencibg policy
","parent_name":"WithSequencingPolicy"},"Protocols/OptionalType.html#/s:11SwiftyMocky12OptionalTypeP8isNotNilSbvp":{"name":"isNotNil","abstract":"Undocumented
","parent_name":"OptionalType"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV3setyys5NeverOSScFZ":{"name":"set(_:)","abstract":"[Internal] Override handling error handler
","parent_name":"FatalErrorUtil"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV7restoreyyFZ":{"name":"restore()","abstract":"[Internal] Restores default handler
","parent_name":"FatalErrorUtil"},"Structs/FatalErrorUtil.html#/s:11SwiftyMocky14FatalErrorUtilV05fatalD0ys5NeverOSSFZ":{"name":"fatalError(_:)","abstract":"[Internal] Perform fatal error handler
","parent_name":"FatalErrorUtil"},"Classes/SwiftyMockyTestObserver.html#/setup()":{"name":"setup()","abstract":"[Internal] No setup whatsoever
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/handleFatalError(message:file:line:)":{"name":"handleFatalError(message:file:line:)","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/s:11SwiftyMocky0aB12TestObserverC5setupyyFZ":{"name":"setup()","abstract":"Call this method to setup custom error handling for SwiftyMocky, that allows to gracefully handle missing stub fatal errors.","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/c:@M@SwiftyMocky@objc(cs)SwiftyMockyTestObserver(im)testCaseWillStart:":{"name":"testCaseWillStart(_:)","abstract":"
[Internal] Observer for test start
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/c:@M@SwiftyMocky@objc(cs)SwiftyMockyTestObserver(im)testCaseDidFinish:":{"name":"testCaseDidFinish(_:)","abstract":"[Internal] Observer for test finished
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html#/s:11SwiftyMocky0aB12TestObserverC16handleFatalError7message4file4lineySS_s12StaticStringVSutFZ":{"name":"handleFatalError(message:file:line:)","abstract":"[Internal] used to notify about internal error. Do not call it directly.
","parent_name":"SwiftyMockyTestObserver"},"Classes/SwiftyMockyTestObserver.html":{"name":"SwiftyMockyTestObserver"},"Structs/FatalErrorUtil.html":{"name":"FatalErrorUtil","abstract":"[Internal] Used for handling fatal errors inside library.
"},"Protocols/OptionalType.html":{"name":"OptionalType","abstract":"Protocol around Optional, allowing additional checks and features on Paramater
where value is optional.
"},"Protocols/WithSequencingPolicy.html":{"name":"WithSequencingPolicy","abstract":"Has sequencing policy for stubbing methods
"},"Protocols/WithStaticSequencingPolicy.html":{"name":"WithStaticSequencingPolicy","abstract":"Has sequencing policy for stubbing static methods
"},"Protocols/WithStubbingPolicy.html":{"name":"WithStubbingPolicy","abstract":"[Internal] used for marking that stubs have configurable policy
"},"Extensions/Int.html":{"name":"Int"},"Extensions/Optional.html":{"name":"Optional"},"Extensions/UInt.html":{"name":"UInt"},"Enums/MockError.html":{"name":"MockError","abstract":"[Internal] Generic Mock library errors
"},"Enums/StubProduct.html":{"name":"StubProduct","abstract":"[Internal] Possible Given products. Method can either return or throw an error (in general)
"},"Classes/StubbedMethod.html":{"name":"StubbedMethod","abstract":"[Internal] Allows to reduce Mock.generated.swif size, by moving part of implementation here.
"},"Internal.html#/s:11SwiftyMocky7Failureys5NeverOSSF":{"name":"Failure(_:)","abstract":"[Internal] Fails flow with given message
"},"Internal.html#/s:11SwiftyMocky0B6Assert__4file4lineySbyXK_SSyXKs12StaticStringVSutF":{"name":"MockyAssert(_:_:file:line:)","abstract":"[internal] Assertion used by mocks and Verify methods
"},"Classes/MockyAssertion.html#/s:11SwiftyMocky0B9AssertionC7handlerySb_SSs12StaticStringVSutcSgvpZ":{"name":"handler","abstract":"You can use it to define assertion behaviour.","parent_name":"MockyAssertion"},"Helpers.html#/s:11SwiftyMocky20XCTAssertThrowsError_2of_4file4lineyxyKXK_q_mSSyXKs12StaticStringVSuts0E0R_r0_lF":{"name":"XCTAssertThrowsError(_:of:_:file:line:)","abstract":"
Allows to verify if error was thrown, and if it is of given type.
"},"Helpers.html#/s:11SwiftyMocky20XCTAssertThrowsError_5error_4file4lineyxyKXK_q_SSyXKs12StaticStringVSutSQR_s0E0R_r0_lF":{"name":"XCTAssertThrowsError(_:error:_:file:line:)","abstract":"Allows to verify if error was throws, and if its exactly the one expected.
"},"Classes/MockyAssertion.html":{"name":"MockyAssertion","abstract":"You can use this class if there is need to define custom"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV5valueypvp":{"name":"value","abstract":"
[internal] Returned value
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV8intValueSivp":{"name":"intValue","abstract":"[internal] Used to describe attribute generocity (0 is general, 1 is specific)
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV7compareySbyp_ypAA7MatcherCtcvp":{"name":"compare","abstract":"[internal] Used to compare with other generic attributes
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV16shortDescriptionSSvp":{"name":"shortDescription","abstract":"[internal] Used for formatting messages.
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html#/s:11SwiftyMocky16GenericAttributeV5value8intValue16shortDescription7compareACyp_SiSSSbyp_ypAA7MatcherCtctcfc":{"name":"init(value:intValue:shortDescription:compare:)","abstract":"[internal] Creates new GenericAttribute instance, with specified return value and compare closure
","parent_name":"GenericAttribute"},"Structs/GenericAttribute.html":{"name":"GenericAttribute","abstract":"[Internal] Used to wrap generic parameters, for sake of generic method stubs.
"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"Stubbing policy. If wrap - it will iterate over recorded values. If drop - it will remove value when stub returns. If default - it will use mock settings
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV_9returningACyxGAA13StubbedMethodC_xmtcfc":{"name":"init(_:returning:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6returnyyxF":{"name":"return(_:)","abstract":"Record return value
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV6returnyyxd_tF":{"name":"return(_:)","abstract":"Record subsequent return values, in given order (comma separated)
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV5throwyys5Error_pF":{"name":"throw(_:)","abstract":"Record thrown error
","parent_name":"StubberThrows"},"Structs/StubberThrows.html#/s:11SwiftyMocky13StubberThrowsV5throwyys5Error_pd_tF":{"name":"throw(_:)","abstract":"Record subsequent thrown errors, in given order (comma separated)
","parent_name":"StubberThrows"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6policyAA14StubbingPolicyOvp":{"name":"policy","abstract":"Stubbing policy. If wrap - it will iterate over recorded values. If drop - it will remove value when stub returns. If default - it will use mock settings
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV_9returningACyxGAA13StubbedMethodC_xmtcfc":{"name":"init(_:returning:)","abstract":"[Internal] New instance of stubber class, used to populate products array
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6returnyyxF":{"name":"return(_:)","abstract":"Record return value
","parent_name":"Stubber"},"Structs/Stubber.html#/s:11SwiftyMocky7StubberV6returnyyxd_tF":{"name":"return(_:)","abstract":"Record subsequent return values, in given order (comma separated)
","parent_name":"Stubber"},"Enums/Count.html#/s:11SwiftyMocky5CountO21CustomMatchingClosurea":{"name":"CustomMatchingClosure","abstract":"Count matching closure
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO18IntegerLiteralTypea":{"name":"IntegerLiteralType","abstract":"[Internal] Count is represented by integer literals, with type Int
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11atLeastOnceyA2CmF":{"name":"atLeastOnce","abstract":"Called at least once
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4onceyA2CmF":{"name":"once","abstract":"Called exactly once
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO6customyACSbSiccACmF":{"name":"custom(_:)","abstract":"Custom count resolving closure
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO7exactlyyACSicACmF":{"name":"exactly(_:)","abstract":"Called exactly n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4fromyACSi_SitcACmF":{"name":"from(_:to:)","abstract":"Called in a…b range
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4lessyACSi_tcACmF":{"name":"less(than:)","abstract":"Called less than n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11lessOrEqualyACSi_tcACmF":{"name":"lessOrEqual(to:)","abstract":"Called less than ot equal to n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO4moreyACSi_tcACmF":{"name":"more(than:)","abstract":"Called more than n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11moreOrEqualyACSi_tcACmF":{"name":"moreOrEqual(to:)","abstract":"Called more than ot equal to n times
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO5neveryA2CmF":{"name":"never","abstract":"Never called
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO14integerLiteralACSi_tcfc":{"name":"init(integerLiteral:)","abstract":"Creates new count instance, matching specific count
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO11descriptionSSvp":{"name":"description","abstract":"Human readable description
","parent_name":"Count"},"Enums/Count.html#/s:11SwiftyMocky5CountO7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Count"},"Protocols/Countable.html#/s:11SwiftyMocky9CountableP7matchesySbSiF":{"name":"matches(_:)","abstract":"Returns whether given count matches countable case.
","parent_name":"Countable"},"Classes/Matcher/ParameterComparisonResult.html#/s:11SwiftyMocky7MatcherC25ParameterComparisonResultVyAESb_AA0D0OyxGAGyq_GSStcr0_lufc":{"name":"init(_:_:_:_:)","abstract":"Undocumented
","parent_name":"ParameterComparisonResult"},"Classes/Matcher/ParameterComparisonResult.html#/s:11SwiftyMocky7MatcherC25ParameterComparisonResultV12resultStringSSvp":{"name":"resultString","abstract":"Undocumented
","parent_name":"ParameterComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7matchedSivp":{"name":"matched","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV5totalSivp":{"name":"total","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7resultsSayAC09ParameterdE0VGvp":{"name":"results","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV10percentageSfvp":{"name":"percentage","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV16percentageStringSSvp":{"name":"percentageString","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV11isFullMatchSbvp":{"name":"isFullMatch","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7isMatchSbvp":{"name":"isMatch","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultVyAESayAC09ParameterdE0VGcfc":{"name":"init(_:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV7matched5totalAESi_Sitcfc":{"name":"init(matched:total:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV5matchAEvpZ":{"name":"match","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV4noneAEvpZ":{"name":"none","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher/ComparisonResult.html#/s:11SwiftyMocky7MatcherC16ComparisonResultV12resultStringySSSi_SStF":{"name":"resultString(_:_:)","abstract":"Undocumented
","parent_name":"ComparisonResult"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC7defaultACvpZ":{"name":"default","abstract":"Shared Matcher instance
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC17fatalErrorHandleryySS_s12StaticStringVSutcvpZ":{"name":"fatalErrorHandler","abstract":"[Internal] matcher fatal error handler
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherCACycfc":{"name":"init()","abstract":"Create new clean matcher instance.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC7matcherA2C_tcfc":{"name":"init(matcher:)","abstract":"Creante new matcher instance, copying existing comparator from another instance.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC3set4file4lineys12StaticStringVSg_SuSgtF":{"name":"set(file:line:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC23setupCorrentFileAndLine4file4lineys12StaticStringV_SutF":{"name":"setupCorrentFileAndLine(file:line:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC16clearFileAndLineyyF":{"name":"clearFileAndLine()","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC14onFatalFailureyySSF":{"name":"onFatalFailure(_:)","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8register_5matchyxm_Sbx_xtctlF":{"name":"register(_:match:)","abstract":"Registers comparator for given type T.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8registeryyxmmlF":{"name":"register(_:)","abstract":"Registers comparator for type, like comparing Int.self to Int.self. These types of comparators always returns true. Register like: Matcher.default.register(CustomType.Type.self)
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC8registeryyxmSQRzlF":{"name":"register(_:)","abstract":"Register default comparatot for Equatable types. Required for generic mocks to work.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tlF":{"name":"comparator(for:)","abstract":"Returns comparator closure for given type (if any).
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSTRzlF":{"name":"comparator(for:)","abstract":"Default Sequence comparator, compares count, and then depending on sequence type:
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSQRzlF":{"name":"comparator(for:)","abstract":"Default Equatable comparator, compares if elements are equal.
","parent_name":"Matcher"},"Classes/Matcher.html#/s:11SwiftyMocky7MatcherC10comparator3forSbx_xtcSgxm_tSQRzSTRzlF":{"name":"comparator(for:)","abstract":"Default Equatable Sequence comparator, compares count, and then for every element equal element.
","parent_name":"Matcher"},"Classes/Matcher/ComparisonResult.html":{"name":"ComparisonResult","abstract":"Undocumented
","parent_name":"Matcher"},"Classes/Matcher/ParameterComparisonResult.html":{"name":"ParameterComparisonResult","abstract":"Undocumented
","parent_name":"Matcher"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO1_yACyxGAEmlF":{"name":"_","abstract":"Wildcard - any value
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO5valueyACyxGxcAEmlF":{"name":"value(_:)","abstract":"Explicit value
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO8matchingyACyxGSbxccAEmlF":{"name":"matching(_:)","abstract":"Any value matching
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3anyACyxGvpZ":{"name":"any","abstract":"Represents and matches any parameter value - syntactic sugar for ._
case.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3anyyACyqd__Gqd__mlFZ":{"name":"any(_:)","abstract":"Represents and matches any parameter value - syntactic sugar for ._
case. Used, when needs to explicitely specify","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO16shortDescriptionSSvp":{"name":"shortDescription","abstract":"
Undocumented
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO7compare3lhs3rhs4withSbACyxG_AhA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"Returns whether given two parameters are matching each other, with following rules:
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO13wrapAsGenericACyAA0F9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO19typeErasedAttributeACyAA04TypeeF0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO19noComparatorFailure2ins5NeverOAA7MatcherC_tFZ":{"name":"noComparatorFailure(in:)","abstract":"[Internal] Fatal error raised when no comparator or default comparator found for ValueType
.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOA2A15TypeErasedValueRzlE7compare3lhs3rhs4withSbACyxG_AiA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzlE7compare3lhs3rhs4withSbACyxG_AhA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzlE13wrapAsGenericACyAA0F9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzlE19typeErasedAttributeACyAA04TypeeF0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzSQ7ElementRpzlE7compare3lhs3rhs4withSbACyxG_AjA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzSQ7ElementRpzlE13wrapAsGenericACyAA0G9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzSQ7ElementRpzlE19typeErasedAttributeACyAA04TypefG0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzSQ7ElementSTRpzlE7compare3lhs3rhs4withSbACyxG_AjA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzSQ7ElementSTRpzlE13wrapAsGenericACyAA0G9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzSTRzSQ7ElementSTRpzlE19typeErasedAttributeACyAA04TypefG0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzlE7Elementa":{"name":"Element","abstract":"Element
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzlE7compare3lhs3rhs4withSbACyxG_AhA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzlE13wrapAsGenericACyAA0F9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASTRzlE19typeErasedAttributeACyAA04TypeeF0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzlE7compare3lhs3rhs4withSbACyxG_AhA7MatcherCtFZ":{"name":"compare(lhs:rhs:with:)","abstract":"[Internal] Compare two parameters
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzlE13wrapAsGenericACyAA0F9AttributeVGyF":{"name":"wrapAsGeneric()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAASQRzlE19typeErasedAttributeACyAA04TypeeF0VGyF":{"name":"typeErasedAttribute()","abstract":"[Internal] Wraps as generic Parameter instance. Should not be ever called directly.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOA2A12OptionalTypeRzlE6notNilACyxGvpZ":{"name":"notNil","abstract":"Undocumented
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAARlzClE12sameInstance2asACyxGqd___tRld__ClFZ":{"name":"sameInstance(as:)","abstract":"Represents and matches values on an same instance
basis.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOAARlzClE10isInstance2ofACyxGqd__m_tRld__ClFZ":{"name":"isInstance(of:)","abstract":"Represents and matches whether parameter is of specific type, using is
operator.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO3allyACyxGAEd_tFZ":{"name":"all(_:)","abstract":"Allows combining multiple Parameter constraints into one Parameter constraint.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterOA2A15TypeErasedValueRzlE03intF0Sivp":{"name":"intValue","abstract":"Used for invocations sorting purpose.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:11SwiftyMocky9ParameterO8intValueSivp":{"name":"intValue","abstract":"Used for invocations sorting purpose.
","parent_name":"Parameter"},"Enums/Parameter.html#/s:s26ExpressibleByStringLiteralP0cD4TypeQa":{"name":"StringLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP0cdeF4TypeQa":{"name":"ExtendedGraphemeClusterLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s33ExpressibleByUnicodeScalarLiteralP0cdE4TypeQa":{"name":"UnicodeScalarLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s26ExpressibleByStringLiteralP06stringD0x0cD4TypeQz_tcfc":{"name":"init(stringLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s43ExpressibleByExtendedGraphemeClusterLiteralP08extendeddeF0x0cdeF4TypeQz_tcfc":{"name":"init(extendedGraphemeClusterLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s33ExpressibleByUnicodeScalarLiteralP07unicodedE0x0cdE4TypeQz_tcfc":{"name":"init(unicodeScalarLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s23ExpressibleByNilLiteralP03nilD0xyt_tcfc":{"name":"init(nilLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByIntegerLiteralP0cD4TypeQa":{"name":"IntegerLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByIntegerLiteralP07integerD0x0cD4TypeQz_tcfc":{"name":"init(integerLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByBooleanLiteralP0cD4TypeQa":{"name":"BooleanLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s27ExpressibleByBooleanLiteralP07booleanD0x0cD4TypeQz_tcfc":{"name":"init(booleanLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByFloatLiteralP0cD4TypeQa":{"name":"FloatLiteralType","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByFloatLiteralP05floatD0x0cD4TypeQz_tcfc":{"name":"init(floatLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByArrayLiteralP0cD7ElementQa":{"name":"ArrayLiteralElement","parent_name":"Parameter"},"Enums/Parameter.html#/s:s25ExpressibleByArrayLiteralP05arrayD0x0cD7ElementQzd_tcfc":{"name":"init(arrayLiteral:)","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP3KeyQa":{"name":"Key","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP5ValueQa":{"name":"Value","parent_name":"Parameter"},"Enums/Parameter.html#/s:s30ExpressibleByDictionaryLiteralP010dictionaryD0x3KeyQz_5ValueQztd_tcfc":{"name":"init(dictionaryLiteral:)","parent_name":"Parameter"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C5GivenQa":{"name":"StaticGiven","abstract":"Stubbed method and property type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C6VerifyQa":{"name":"StaticVerify","abstract":"Verification type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP0C7PerformQa":{"name":"StaticPerform","abstract":"Perform type
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP5givenyy0C5GivenQzFZ":{"name":"given(_:)","abstract":"Registers return value for stubbed method, for specified attributes set.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP7performyy0C7PerformQzFZ":{"name":"perform(_:)","abstract":"Registers perform closure, which will be executed upon calling stubbed method, for specified attribtes.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP6verify_5count4file4liney0C6VerifyQz_AA5CountOs0C6StringVSutFZ":{"name":"verify(_:count:file:line:)","abstract":"Verifies, that given method stub was called exact number of times.
","parent_name":"StaticMock"},"Protocols/StaticMock.html#/s:11SwiftyMocky10StaticMockP05resetD0yyAA0D5ScopeOd_tFZ":{"name":"resetMock(_:)","abstract":"Clear mock internals. You can specify what to clear (invocations aka verify, givens or performs)","parent_name":"StaticMock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP5GivenQa":{"name":"Given","abstract":"
Stubbed method and property type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP6VerifyQa":{"name":"Verify","abstract":"Verification type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP7PerformQa":{"name":"Perform","abstract":"Perform type
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP5givenyy5GivenQzF":{"name":"given(_:)","abstract":"Registers return value for stubbed method, for specified attributes set.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP7performyy7PerformQzF":{"name":"perform(_:)","abstract":"Registers perform closure, which will be executed upon calling stubbed method, for specified attribtes.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP6verify_5count4file4liney6VerifyQz_AA5CountOs12StaticStringVSutF":{"name":"verify(_:count:file:line:)","abstract":"Verifies, that given method stub was called exact number of times.
","parent_name":"Mock"},"Protocols/Mock.html#/s:11SwiftyMocky4MockP05resetC0yyAA0C5ScopeOd_tF":{"name":"resetMock(_:)","abstract":"Clear mock internals. You can specify what to clear (invocations aka verify, givens or performs)","parent_name":"Mock"},"Protocols/Mock.html":{"name":"Mock","abstract":"
Every generated mock implementation adopts Mock protocol."},"Protocols/StaticMock.html":{"name":"StaticMock","abstract":"
Every mock, that stubs static methods, should adopt StaticMock protocol."},"Enums/Parameter.html":{"name":"Parameter","abstract":"
Parameter wraps method attribute, allowing to make a difference between explicit value,"},"Classes/Matcher.html":{"name":"Matcher","abstract":"
Matcher is container class, responsible for storing and resolving comparators for given types.
"},"Protocols/Countable.html":{"name":"Countable","abstract":"Allows matching count, verifying whether given count is right or not
"},"Enums/Count.html":{"name":"Count","abstract":"Count enum. Use it for all Verify features, when checking how many times something happened.
"},"Structs/Stubber.html":{"name":"Stubber","abstract":"Used to populate stubbed method with sequence of events. Call it’s methods, to record subsequent stub return values.
"},"Structs/StubberThrows.html":{"name":"StubberThrows","abstract":"Used to populate stubbed method with sequence of events. Call it’s methods, to record subsequent stub return/throw values.
"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO24lastWrittenResolvedFirstyA2CmF":{"name":"lastWrittenResolvedFirst","abstract":"Default policy. Last given overrides previous, if they are both with same generocity level
","parent_name":"SequencingPolicy"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO14inWritingOrderyA2CmF":{"name":"inWritingOrder","abstract":"Givens would be recalled in order of generocity, respecting writing order (first line resolved first)
","parent_name":"SequencingPolicy"},"Enums/SequencingPolicy.html#/s:11SwiftyMocky16SequencingPolicyO6sorted_2bySayxGAF_Sbx_xtXEtlF":{"name":"sorted(_:by:)","abstract":"[Internal] Sorts stub return values / errors throw with respect to ordering rule and policy
","parent_name":"SequencingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO7defaultyA2CmF":{"name":"default","abstract":"Use current policy specified for Mock method type
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4wrapyA2CmF":{"name":"wrap","abstract":"Default policy in general. When reaching end of sequence of events, index will rewind to beginning (looping)
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4dropyA2CmF":{"name":"drop","abstract":"With this policy, every call drops event. When events count reaches zero, given is removed from mock.
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO4realyA2CF":{"name":"real(_:)","abstract":"[Internal] Resolves used policy. If self is default, will use inherited, otherwise self
","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html#/s:11SwiftyMocky14StubbingPolicyO7updated_4withS2i_SitF":{"name":"updated(_:with:)","abstract":"[Internal] Computes new index for stubs array. For wrap will rewind if out of bounds, for drop will not.","parent_name":"StubbingPolicy"},"Enums/StubbingPolicy.html":{"name":"StubbingPolicy","abstract":"
Given Policy for treating sequence of events (products). Used to determine if stub return values should be consumed"},"Enums/SequencingPolicy.html":{"name":"SequencingPolicy","abstract":"
Sequencing policy - in which order Given would be resolved. Pleas ehve in mind that this policy is applied ONLY after"},"Global%20methods.html#/s:11SwiftyMocky5Givenyyx_ABQzAA14StubbingPolicyOtAA4MockRzlF":{"name":"Given(_:_:_:)","abstract":"
Setup return value for method stubs in mock instance. When this method will be called on mock, it"},"Global%20methods.html#/s:11SwiftyMocky5Givenyyxm_06StaticC0QzAA14StubbingPolicyOtAA0D4MockRzlF":{"name":"Given(_:_:_:)","abstract":"
Setup return value for static method stubs on mock type. When this static method will be called, it"},"Global%20methods.html#/s:11SwiftyMocky7Performyyx_ABQztAA4MockRzlF":{"name":"Perform(_:_:)","abstract":"
Setup perform closure for method stubs in mock instance. When this method will be called on mock, it"},"Global%20methods.html#/s:11SwiftyMocky7Performyyxm_06StaticC0QztAA0D4MockRzlF":{"name":"Perform(_:_:)","abstract":"
Setup perform closure for static method stubs for mock type. When this method will be called on mock type, it"},"Global%20methods.html#/s:11SwiftyMocky6Verify__4file4lineyx_ABQzs12StaticStringVSutAA4MockRzlF":{"name":"Verify(_:_:file:line:)","abstract":"
Verify that given method was called on mock object at least once.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify__4file4lineyxm_06StaticC0Qzs0F6StringVSutAA0F4MockRzlF":{"name":"Verify(_:_:file:line:)","abstract":"Verify that given static method was called on mock type at least once.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify___4file4lineyx_AA5CountOABQzs12StaticStringVSutAA4MockRzlF":{"name":"Verify(_:_:_:file:line:)","abstract":"Verify that given method was called on mock object exact number of times.
"},"Global%20methods.html#/s:11SwiftyMocky6Verify___4file4lineyxm_AA5CountO06StaticC0Qzs0G6StringVSutAA0G4MockRzlF":{"name":"Verify(_:_:_:file:line:)","abstract":"Verify that given static method was called on mock type exact number of times.
"},"matcher-support-for-not-equatable.html":{"name":"Matcher support for not Equatable"},"handling-generics.html":{"name":"Handling Generics"},"examples.html":{"name":"Examples"},"legacy.html":{"name":"Legacy"},"add-xcode-generate-action.html":{"name":"Add XCode generate action"},"known-issues.html":{"name":"Known issues"},"changelog.html":{"name":"CHANGELOG"},"overview.html":{"name":"Overview"},"installation.html":{"name":"Installation"},"setup-in-project.html":{"name":"Setup in project"},"mockfile.html":{"name":"Mockfile"},"command-line-interface.html":{"name":"Command Line Interface"},"supported-features.html":{"name":"Supported features"},"prototyping.html":{"name":"Prototyping"},"Main%20Guides.html":{"name":"Main Guides"},"Additional%20Guides.html":{"name":"Additional Guides"},"Global%20methods.html":{"name":"Global methods"},"Configuration.html":{"name":"Configuration"},"Types.html":{"name":"Types"},"Generics.html":{"name":"Generics"},"Helpers.html":{"name":"Helpers"},"Internal.html":{"name":"Internal"},"Other%20Guides.html":{"name":"Other Guides","abstract":"The following guides are available globally.
"},"Other%20Classes.html":{"name":"Other Classes","abstract":"The following classes are available globally.
"},"Other%20Enums.html":{"name":"Other Enumerations","abstract":"The following enumerations are available globally.
"},"Other%20Protocols.html":{"name":"Other Protocols","abstract":"The following protocols are available globally.
"},"Other%20Structs.html":{"name":"Other Structures","abstract":"The following structures are available globally.
"}}
\ No newline at end of file
diff --git a/docs/setup-in-project.html b/docs/setup-in-project.html
index 897a6951..2d228dd9 100644
--- a/docs/setup-in-project.html
+++ b/docs/setup-in-project.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
diff --git a/docs/supported-features.html b/docs/supported-features.html
index 7be009bb..3155478d 100644
--- a/docs/supported-features.html
+++ b/docs/supported-features.html
@@ -13,7 +13,7 @@
@@ -188,6 +188,9 @@
-
FatalErrorUtil
+ -
+ OptionalType
+
-
WithSequencingPolicy
diff --git a/docs/undocumented.json b/docs/undocumented.json
index 1371bdd8..eecd782c 100644
--- a/docs/undocumented.json
+++ b/docs/undocumented.json
@@ -56,6 +56,27 @@
"symbol_kind": "source.lang.swift.decl.enumelement",
"warning": "undocumented"
},
+ {
+ "file": "/Users/andrzejmichnia/Projekty/Private/SwiftyMocky/Sources/Shared/Parameter+Optionals.swift",
+ "line": 7,
+ "symbol": "OptionalType.isNotNil",
+ "symbol_kind": "source.lang.swift.decl.var.instance",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/Users/andrzejmichnia/Projekty/Private/SwiftyMocky/Sources/Shared/Parameter+Optionals.swift",
+ "line": 11,
+ "symbol": "Optional.isNotNil",
+ "symbol_kind": "source.lang.swift.decl.var.instance",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/Users/andrzejmichnia/Projekty/Private/SwiftyMocky/Sources/Shared/Parameter+Optionals.swift",
+ "line": 20,
+ "symbol": "Parameter.notNil",
+ "symbol_kind": "source.lang.swift.decl.var.static",
+ "warning": "undocumented"
+ },
{
"file": "/Users/andrzejmichnia/Projekty/Private/SwiftyMocky/Sources/Shared/Parameter.swift",
"line": 41,
diff --git a/guides/CHANGELOG.md b/guides/CHANGELOG.md
index f3957283..95357742 100644
--- a/guides/CHANGELOG.md
+++ b/guides/CHANGELOG.md
@@ -20,6 +20,7 @@ All changes to SwiftyMocky project will be documented in this file.
* Fixed other basic issues and changes for Sourcery 1.6.0
* Fixed observer setup when test is marked as async
* Fixed CLI dependencies (Sergey Kovalenko)
+* Moved tests from travis to github actions
-----
diff --git a/guides/Installation.md b/guides/Installation.md
index 7d6a7c71..412d350f 100644
--- a/guides/Installation.md
+++ b/guides/Installation.md
@@ -86,7 +86,7 @@ Add **SwiftyMocky** to you **Package.swift** dependencies:
```swift
dependencies: [
- .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0-pre"),
+ .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0"),
]
```
diff --git a/guides/Overview.md b/guides/Overview.md
index 45e74710..47252e30 100644
--- a/guides/Overview.md
+++ b/guides/Overview.md
@@ -1,4 +1,4 @@
-# SwiftyMocky 4.1.0-pre
+# SwiftyMocky 4.1.0
# ![logo][logo]
@@ -113,7 +113,7 @@ Add **SwiftyMocky** to you **Package.swift** dependencies:
```swift
dependencies: [
- .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0-pre"),
+ .package(url: "https://github.com/MakeAWishFoundation/SwiftyMocky", from: "4.1.0"),
]
```
@@ -357,28 +357,28 @@ SwiftyMocky is available under the MIT license. See the [LICENSE][link-license]
-[link-guides-installation]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/setup-in-project.html
-[link-guides-contents]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/contents.html
-[link-guides-examples]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/examples.html
-[link-changelog]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/changelog.html
+[link-guides-installation]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/setup-in-project.html
+[link-guides-contents]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/contents.html
+[link-guides-examples]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/examples.html
+[link-changelog]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/changelog.html
-[link-guides-cli]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/command-line-interface.html
-[link-guides-cli-migration]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/command-line-interface.html#migration
-[link-guides-cli-legacy]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/legacy.html
-[link-guides-cli-generate]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/command-line-interface.html#generate
-[link-guides-mockfile]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/mockfile.html
+[link-guides-cli]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/command-line-interface.html
+[link-guides-cli-migration]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/command-line-interface.html#migration
+[link-guides-cli-legacy]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/legacy.html
+[link-guides-cli-generate]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/command-line-interface.html#generate
+[link-guides-mockfile]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/mockfile.html
-[link-docs]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/index.html
-[link-docs-features]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/supported-features.html
-[link-docs-installation]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/installation.html
-[link-docs-installation-carthage]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/installation.html#installation-carthage
-[link-docs-setup]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/docs/setup-in-project.html
+[link-docs]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/index.html
+[link-docs-features]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/supported-features.html
+[link-docs-installation]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/installation.html
+[link-docs-installation-carthage]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/installation.html#installation-carthage
+[link-docs-setup]: https://cdn.rawgit.com/MakeAWishFoundation/SwiftyMocky/4.1.0/docs/setup-in-project.html
-[logo]: https://raw.githubusercontent.com/MakeAWishFoundation/SwiftyMocky/4.1.0-pre/icon.png
+[logo]: https://raw.githubusercontent.com/MakeAWishFoundation/SwiftyMocky/4.1.0/icon.png
[example-watcher]: https://raw.githubusercontent.com/MakeAWishFoundation/SwiftyMocky/3.2.0/guides/assets/example-watcher.gif "Example - generation"
[example-given]: https://raw.githubusercontent.com/MakeAWishFoundation/SwiftyMocky/3.2.0/guides/assets/example-given.gif "Example - given"
[example-verify]: https://raw.githubusercontent.com/MakeAWishFoundation/SwiftyMocky/3.2.0/guides/assets/example-verify.gif "Example - verify"