diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c081a0..257575b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ [Unrelease](#Unrelease) +##### 1.x Releases +- [1.0.0](#1.0.0) + ##### 0.x Releases - [0.7.0](#0.7.0) - [0.6.0](#0.6.0) @@ -13,7 +16,22 @@ --- ## Unrelease -[Compare](https://github.com/leoture/MockSwift/compare/v0.7.0...HEAD) +[Compare](https://github.com/leoture/MockSwift/compare/v1.0.0...HEAD) +#### Added + +#### Changed + +#### Deprecated + +#### Removed + +#### Fixed + +#### Security + +--- +## [1.0.0](https://github.com/leoture/MockSwift/releases/tag/v1.0.0) - 2021-04-14 +[Compare](https://github.com/leoture/MockSwift/compare/v0.7.0...v1.0.0) #### Added - Add willDoNothing [#107](https://github.com/leoture/MockSwift/pull/107) by [Jordhan Leoture](https://github.com/leoture) - Add neverCalled [#106](https://github.com/leoture/MockSwift/pull/106) by [Jordhan Leoture](https://github.com/leoture) @@ -27,18 +45,12 @@ - Add GlobalStub for ExpressibleByArrayLiteral [#109](https://github.com/leoture/MockSwift/pull/109) by [Jordhan Leoture](https://github.com/leoture) - Add GlobalStub for ExpressibleByDictionaryLiteral [#109](https://github.com/leoture/MockSwift/pull/109) by [Jordhan Leoture](https://github.com/leoture) -#### Changed - -#### Deprecated - #### Removed - Remove Predicate.match(description:keyPath:) [#108](https://github.com/leoture/MockSwift/pull/108) by [Jordhan Leoture](https://github.com/leoture) #### Fixed - Make called(after:) fail when previsous Assertion is not valid [#110](https://github.com/leoture/MockSwift/pull/110) by [Jordhan Leoture](https://github.com/leoture) -#### Security - --- ## [0.7.0](https://github.com/leoture/MockSwift/releases/tag/v0.7.0) - 2020-10-21 [Compare](https://github.com/leoture/MockSwift/compare/v0.6.0...v0.7.0) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 13cf92b..977d166 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,7 @@ Before you start contributing, please read this file and do your best to comply ## 🤔 Asking Questions If you have a question, check that nobody asked this question before. -Otherwise, please open an issue as a [**Bug Report**](https://github.com/leoture/MockSwift/issues/new?assignees=&labels=bug&template=bug_report.md&title=) and add `question` label. +Otherwise, please open an issue as a [**Question**](https://github.com/leoture/MockSwift/issues/new?assignees=&labels=question&template=question.md&title=). We will make our best to answer you as quickly as possible! >If you find that this question has already been asked in an issue, add 👍 as *reaction* on the issue. @@ -22,7 +22,6 @@ We will make our best to answer you as quickly as possible! #### With Xcode - Open `MockSwift.xcworkspace`. - To build or test the project: choose `MockSwift-Package` scheme on `My Mac`. -- Before using playgrounds build the `MockSwiftPlayground` scheme. #### With Swift Package Manager - To build or test the project: use the respective commands `swift build` and `swift test`. diff --git a/MockSwift.xcworkspace/contents.xcworkspacedata b/MockSwift.xcworkspace/contents.xcworkspacedata index d1328dd..bc9731f 100644 --- a/MockSwift.xcworkspace/contents.xcworkspacedata +++ b/MockSwift.xcworkspace/contents.xcworkspacedata @@ -4,9 +4,6 @@ - - diff --git a/MockSwiftPlayground/MockSwiftPlayground.xcodeproj/project.pbxproj b/MockSwiftPlayground/MockSwiftPlayground.xcodeproj/project.pbxproj deleted file mode 100644 index 19bcb29..0000000 --- a/MockSwiftPlayground/MockSwiftPlayground.xcodeproj/project.pbxproj +++ /dev/null @@ -1,366 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 9EB7257F22F5E6C900F285FD /* MockSwiftPlayground.h in Headers */ = {isa = PBXBuildFile; fileRef = 9EB7257D22F5E6C900F285FD /* MockSwiftPlayground.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 9EB7258822F5E74900F285FD /* MockSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9EB7258722F5E74900F285FD /* MockSwift.framework */; }; - 9EB7258922F5E74900F285FD /* MockSwift.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9EB7258722F5E74900F285FD /* MockSwift.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9EB7258A22F5E74900F285FD /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 9EB7258922F5E74900F285FD /* MockSwift.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 9EB7257A22F5E6C900F285FD /* MockSwiftPlayground.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MockSwiftPlayground.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 9EB7257D22F5E6C900F285FD /* MockSwiftPlayground.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MockSwiftPlayground.h; sourceTree = ""; }; - 9EB7257E22F5E6C900F285FD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 9EB7258522F5E70700F285FD /* Playground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Playground.playground; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.swift; }; - 9EB7258722F5E74900F285FD /* MockSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MockSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 9EB7257722F5E6C900F285FD /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9EB7258822F5E74900F285FD /* MockSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 9EB7257022F5E6C900F285FD = { - isa = PBXGroup; - children = ( - 9EB7258522F5E70700F285FD /* Playground.playground */, - 9EB7257C22F5E6C900F285FD /* MockSwiftPlayground */, - 9EB7257B22F5E6C900F285FD /* Products */, - 9EB7258622F5E74900F285FD /* Frameworks */, - ); - sourceTree = ""; - }; - 9EB7257B22F5E6C900F285FD /* Products */ = { - isa = PBXGroup; - children = ( - 9EB7257A22F5E6C900F285FD /* MockSwiftPlayground.framework */, - ); - name = Products; - sourceTree = ""; - }; - 9EB7257C22F5E6C900F285FD /* MockSwiftPlayground */ = { - isa = PBXGroup; - children = ( - 9EB7257D22F5E6C900F285FD /* MockSwiftPlayground.h */, - 9EB7257E22F5E6C900F285FD /* Info.plist */, - ); - path = MockSwiftPlayground; - sourceTree = ""; - }; - 9EB7258622F5E74900F285FD /* Frameworks */ = { - isa = PBXGroup; - children = ( - 9EB7258722F5E74900F285FD /* MockSwift.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 9EB7257522F5E6C900F285FD /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 9EB7257F22F5E6C900F285FD /* MockSwiftPlayground.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 9EB7257922F5E6C900F285FD /* MockSwiftPlayground */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9EB7258222F5E6C900F285FD /* Build configuration list for PBXNativeTarget "MockSwiftPlayground" */; - buildPhases = ( - 9EB7257522F5E6C900F285FD /* Headers */, - 9EB7257622F5E6C900F285FD /* Sources */, - 9EB7257722F5E6C900F285FD /* Frameworks */, - 9EB7257822F5E6C900F285FD /* Resources */, - 9EB7258A22F5E74900F285FD /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = MockSwiftPlayground; - productName = MockSwiftPlayground; - productReference = 9EB7257A22F5E6C900F285FD /* MockSwiftPlayground.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 9EB7257122F5E6C900F285FD /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1200; - ORGANIZATIONNAME = "jordhan leoture"; - TargetAttributes = { - 9EB7257922F5E6C900F285FD = { - CreatedOnToolsVersion = 11.0; - }; - }; - }; - buildConfigurationList = 9EB7257422F5E6C900F285FD /* Build configuration list for PBXProject "MockSwiftPlayground" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 9EB7257022F5E6C900F285FD; - productRefGroup = 9EB7257B22F5E6C900F285FD /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 9EB7257922F5E6C900F285FD /* MockSwiftPlayground */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 9EB7257822F5E6C900F285FD /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 9EB7257622F5E6C900F285FD /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 9EB7258022F5E6C900F285FD /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 9EB7258122F5E6C900F285FD /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 9EB7258322F5E6C900F285FD /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = VFBUQ866W5; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = MockSwiftPlayground/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.jordhan-leoture.MockSwiftPlayground"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SUPPORTS_MACCATALYST = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 9EB7258422F5E6C900F285FD /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = VFBUQ866W5; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = MockSwiftPlayground/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = "com.jordhan-leoture.MockSwiftPlayground"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SUPPORTS_MACCATALYST = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 9EB7257422F5E6C900F285FD /* Build configuration list for PBXProject "MockSwiftPlayground" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9EB7258022F5E6C900F285FD /* Debug */, - 9EB7258122F5E6C900F285FD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9EB7258222F5E6C900F285FD /* Build configuration list for PBXNativeTarget "MockSwiftPlayground" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9EB7258322F5E6C900F285FD /* Debug */, - 9EB7258422F5E6C900F285FD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 9EB7257122F5E6C900F285FD /* Project object */; -} diff --git a/MockSwiftPlayground/MockSwiftPlayground.xcodeproj/xcshareddata/xcschemes/MockSwiftPlayground.xcscheme b/MockSwiftPlayground/MockSwiftPlayground.xcodeproj/xcshareddata/xcschemes/MockSwiftPlayground.xcscheme deleted file mode 100644 index 83c6877..0000000 --- a/MockSwiftPlayground/MockSwiftPlayground.xcodeproj/xcshareddata/xcschemes/MockSwiftPlayground.xcscheme +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/MockSwiftPlayground/MockSwiftPlayground/Info.plist b/MockSwiftPlayground/MockSwiftPlayground/Info.plist deleted file mode 100644 index 9bcb244..0000000 --- a/MockSwiftPlayground/MockSwiftPlayground/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - - diff --git a/MockSwiftPlayground/MockSwiftPlayground/MockSwiftPlayground.h b/MockSwiftPlayground/MockSwiftPlayground/MockSwiftPlayground.h deleted file mode 100644 index 11584f6..0000000 --- a/MockSwiftPlayground/MockSwiftPlayground/MockSwiftPlayground.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// MockSwiftPlayground.h -// MockSwiftPlayground -// -// Created by jordhan leoture on 03/08/2019. -// Copyright © 2019 jordhan leoture. All rights reserved. -// - -#import - -//! Project version number for MockSwiftPlayground. -FOUNDATION_EXPORT double MockSwiftPlaygroundVersionNumber; - -//! Project version string for MockSwiftPlayground. -FOUNDATION_EXPORT const unsigned char MockSwiftPlaygroundVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/MockSwiftPlayground/Playground.playground/Contents.swift b/MockSwiftPlayground/Playground.playground/Contents.swift deleted file mode 100644 index 84c4c43..0000000 --- a/MockSwiftPlayground/Playground.playground/Contents.swift +++ /dev/null @@ -1,92 +0,0 @@ -import XCTest -import MockSwift - -struct User: Equatable { - let identifier: String - let name: String -} - -protocol UserService { - func fetch(identifier: String) -> User - func fetch(identifier: String) -> String -} - -extension Mock: UserService where WrappedType == UserService { - func fetch(identifier: String) -> User { mocked(identifier) } - func fetch(identifier: String) -> String { mocked(identifier) } -} - -extension Given where WrappedType == UserService { - func fetch(identifier: Predicate) -> Mockable { mockable(identifier) } - func fetch(identifier: Predicate) -> Mockable { mockable(identifier) } -} - -extension Then where WrappedType == UserService { - func fetch(identifier: Predicate) -> Verifiable { verifiable(identifier) } - func fetch(identifier: Predicate) -> Verifiable { verifiable(identifier) } -} - -extension User: GlobalStub { - static func stub() -> User { - User(identifier: "id", name: "John") - } -} - -class MyTests: XCTestCase { - @Mock private var service: UserService - - func test_fetch() { - // Given - let expectedUser = User(identifier: "id", name: "John") - - given(service) - .fetch(identifier: .any()) - .willReturn(expectedUser) - - // When - let user: User = service.fetch(identifier: "id") - - // Then - then(service) - .fetch(identifier: .any()) - .disambiguate(with: User.self) - .called() - XCTAssertEqual(user, expectedUser) - } - - func test_fetch_withDefault() { - // Given - let expectedUser = User(identifier: "id", name: "John") - - // When - let user: User = service.fetch(identifier: "id") - - // Then - XCTAssertEqual(user, expectedUser) - } -} - -MyTests.defaultTestSuite.run() - -let myPredicate = Predicate.match(description: "User.identifer == id") { user in - user.identifier == "id" -} - -myPredicate.satisfy(by: User(identifier: "id", name: "John")) -myPredicate.satisfy(by: User(identifier: "identifier", name: "John")) - -extension User: AnyPredicate { - var description: String { - "User.identifer == \(identifier)" - } - - func satisfy(by element: Any) -> Bool { - guard let element = element as? User else { - return false - } - return identifier == element.identifier - } -} - -User(identifier: "id", name: "").satisfy(by: User(identifier: "id", name: "John")) -User(identifier: "id", name: "").satisfy(by: User(identifier: "identifier", name: "John")) diff --git a/MockSwiftPlayground/Playground.playground/contents.xcplayground b/MockSwiftPlayground/Playground.playground/contents.xcplayground deleted file mode 100644 index 5da2641..0000000 --- a/MockSwiftPlayground/Playground.playground/contents.xcplayground +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/MockSwiftPlayground/Playground.playground/playground.xcworkspace/contents.xcworkspacedata b/MockSwiftPlayground/Playground.playground/playground.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/MockSwiftPlayground/Playground.playground/playground.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/MockSwiftPlayground/Playground.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/MockSwiftPlayground/Playground.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/MockSwiftPlayground/Playground.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/README.md b/README.md index 87de7d8..9266b08 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,9 @@ MockSwift

-Welcome to MockSwift! +Welcome to MockSwift ======= + [![Release](https://img.shields.io/github/v/release/leoture/MockSwift?color=red)](https://github.com/leoture/MockSwift/releases) [![Build Status](https://github.com/leoture/MockSwift/workflows/Master/badge.svg?branch=master)](https://github.com/leoture/MockSwift/actions) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/d857788324854dc989d76a18a9d48f7e)](https://www.codacy.com/gh/leoture/MockSwift/dashboard?utm_source=github.com&utm_medium=referral&utm_content=leoture/MockSwift&utm_campaign=Badge_Grade) @@ -13,36 +14,43 @@ Welcome to MockSwift! [![Swift](https://img.shields.io/badge/Swift-5.3-important)](https://swift.org) [![license MIT](https://img.shields.io/badge/license-MIT-informational)](https://github.com/leoture/MockSwift/blob/master/LICENSE) -**MockSwift** allows you to [**write mocks**](#write-mocks) and [**make better tests**](#make-better-tests). Because **MockSwift** is an **open source** library **100%** written in **Swift**, it is **AVAILABLE ON ALL PLATFORMS**. +**MockSwift** allows you to [**write mocks**](#write-mocks) and [**make better tests**](#make-better-tests). Because **MockSwift** is an **open source** library **100%** written in **Swift**, it is **AVAILABLE ON ALL PLATFORMS**. Initially MockSwift is inspired by [Mockito](https://site.mockito.org). - ###### Table of Contents + - [Features](#features) - [Installation](#installation) - [Usage](#usage) - [Documentation](#documentation) -- [Playgrounds](#playgrounds) - [Contribution](#contribution) - [License](#license) # Features + Actually MockSwift supports: -- **Mocking** - - [x] **protocol** (methods, properties, subscripts) - - [ ] class ([v2](https://github.com/leoture/MockSwift/projects/2)) - - [ ] struct ([v2](https://github.com/leoture/MockSwift/projects/2)) - - [ ] enum ([v2](https://github.com/leoture/MockSwift/projects/2)) -- **Call verification** - - [x] **protocol** (methods, properties, subscripts) - - [ ] class ([v2](https://github.com/leoture/MockSwift/projects/2)) - - [ ] struct ([v2](https://github.com/leoture/MockSwift/projects/2)) - - [ ] enum ([v2](https://github.com/leoture/MockSwift/projects/2)) -- [x] **Generics** -- [x] **Parameters matching** -- [x] **Default values for Types** + +- **Stub** + - [x] Protocol methods + - [x] Protocol properties + - [x] Protocol subscripts + - [ ] Class + - [ ] Struct + - [ ] Enum + - [x] Default values for types +- **Verify interactions** + - [x] Protocol methods + - [x] Protocol properties + - [x] Protocol subscripts + - [ ] Class + - [ ] Struct + - [ ] Enum +_ **Parameter matching** + - [x] Predicates + - [x] Generics #### CHANGELOG + You can see all changes and new features [here](https://github.com/leoture/MockSwift/blob/master/CHANGELOG.md). # Installation @@ -56,7 +64,7 @@ import PackageDescription let package = Package( name: "MyProject", dependencies: [ - .package(url: "https://github.com/leoture/MockSwift.git", from: "0.7.0") + .package(url: "https://github.com/leoture/MockSwift.git", from: "1.0.0") ], targets: [ .testTarget(name: "MyProjectTests", dependencies: ["MockSwift"]) @@ -65,6 +73,37 @@ let package = Package( ``` # Usage +## Quick Look +```swift +class AwesomeTests: XCTestCase { + + private var printer: Printer! + @Mock private var userService: UserService + + override func setUp() { + printer = Printer(userService) + } + + func test_sayHello() { + // Given + given(userService).fetchUserName(of: "you").willReturn("my friend") + given(userService).isConnected.get.willReturn(true) + given(userService)[cache: .any()].set(.any()).willDoNothing() + + // When + let message = printer.sayHello(to: "you", from: "me") + + // Then + then(userService).fetchUserName(of: .any()).called() + then(userService).isConnected.get.called(times: 1) + then(userService)[cache: "you"].set("my friend").calledOnce() + + XCTAssertEqual(message, "me: Hello my friend") + } +} +``` + +## Details Suppose that you have a `UserService` protocol. ```swift struct User: Equatable { @@ -95,6 +134,7 @@ class UserCore { ## Make better tests Now, with MockSwift, you can use a mocked `UserService` in your tests with the `@Mock` annotation. + ```swift @Mock private var service: UserService @@ -104,6 +144,7 @@ private var service: UserService = Mock() ``` And easly configure it to fully test `UseCore`. + ```swift class UserCoreTests: XCTestCase { @@ -164,9 +205,11 @@ you can also define behaviours when you instantiate the mock. }) private var service: UserService ``` + ### Then `then()` enables you to verify calls. example: + ```swift then(service).fetch(identifier: .any()).called() @@ -176,18 +219,30 @@ then(service) { $0.fetch(identifier: .any()).called() } ``` + ```swift then(service) { $0.fetch(identifier: "current").called(times: >=2) - $0.fetch(identifier: =="").called(times: 0) + $0.fetch(identifier: == "").called(times: 0) } ``` + +You can go further and verify order of calls +```swift +let assertion = then(service).fetch(identifier: "current").called(times: >=2) +then(service).fetch(identifier: == "").called(times: 1, after: assertion) +``` + ### Stubs + In MockSwift, stubs are default values that are returned when no behaviours has been found. + #### Global Stubs + You can define a **global stub** for any type. It will concern **all mocks** you will use in **every tests**. + ```swift extension User: GlobalStub { static func stub() -> User { @@ -195,6 +250,7 @@ extension User: GlobalStub { } } ``` + #### Local Stubs You can also define a **stub localy** for any type. It will concern only the **current mock**. @@ -276,13 +332,9 @@ extension Then where WrappedType == UserService { } } ``` + # Documentation If you need more details about the API, you can check out our [API documentation](https://leoture.github.io/MockSwift/) or our [GitBook](https://mockswift.gitbook.io/mockswift/). -# Playgrounds -This project contains playgrounds that can help you experiment **MockSwift** . -To use playgrounds: -- open **MockSwift.xcworkspace** -- build the **MockSwiftPlayground scheme**. # Contribution Would you like to contribute to MockSwift? Please read our [contributing guidelines](https://github.com/leoture/MockSwift/blob/master/CONTRIBUTING.md) and [code of conduct](https://github.com/leoture/MockSwift/blob/master/CODE_OF_CONDUCT.md). diff --git a/docs/Classes.html b/docs/Classes.html index e6290ed..33a0388 100644 --- a/docs/Classes.html +++ b/docs/Classes.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

@@ -136,29 +136,71 @@ Array

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ +

Available where ReturnType == Void

+

+
+
+
    +
  • +
    + + + + willDoNothing() + +
    +
    +
    +
    +
    +
    +

    Registers an empty block to excecute.

    +
    +

    See also

    + will(_ completion:) + +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    func willDoNothing()
    + +
    +
    +
    +
    +
  • +
+
diff --git a/docs/Classes/MockableProperty.html b/docs/Classes/MockableProperty.html index 85d76b7..7ced30e 100644 --- a/docs/Classes/MockableProperty.html +++ b/docs/Classes/MockableProperty.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

@@ -136,29 +136,71 @@ Array

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
  • - -
    -
    -
    -
    -
    -

    Creates a Predicate<Input>.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public class func match(description: String? = nil,
    -                        any type: Input.Type = Input.self,
    -                        when keyPath: KeyPath<Input, Bool>) -> Predicate<Input>
    - -
    -
    -
    -

    Parameters

    - - - - - - - - - - - - - - - -
    - - description - - -
    -

    The description of the Predicate.

    -
    -
    - - type - - -
    -

    The type to match.

    -
    -
    - - keyPath - - -
    -

    The keyPath that will be used to verify that the entry statisfies the Predicate.

    -
    -
    -
    -
    -

    Return Value

    -

    A new Predicate<Input>.

    -
    -
    -
    -
  • @@ -1364,8 +1330,8 @@

    Parameters

    diff --git a/docs/Classes/Stub.html b/docs/Classes/Stub.html index 788f3ec..c3761e4 100644 --- a/docs/Classes/Stub.html +++ b/docs/Classes/Stub.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

    @@ -136,29 +136,71 @@ Array

  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  • + +
    +
    +
    +
    +
    +

    Checks that the function has never been called.

    +
    +

    Important

    + When assertion is specify, only calls that appear after +the minimum amount of calls required by the previous assertion will be considered. + +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    @discardableResult
    +public func neverCalled(after assertion: Assertion? = nil,
    +                        file: StaticString = #file,
    +                        line: UInt = #line) -> Assertion
    + +
    +
    +
    +

    Parameters

    + + + + + + + + + + + + + + + +
    + + assertion + + +
    +

    Previous assertion. nil by default.

    +
    +
    + + file + + +
    +

    File where called is called.

    +
    +
    + + line + + +
    +

    Line where calledis called.

    +
    +
    +
    +
    +

    Return Value

    +

    A new Assertion.

    +
    +
    +
    +
  • +
  • + +
    +
    +
    +
    +
    +

    Checks that the function has been called once.

    +
    +

    Important

    + When assertion is specify, only calls that appear after +the minimum amount of calls required by the previous assertion will be considered. + +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    @discardableResult
    +public func calledOnce(after assertion: Assertion? = nil,
    +                       file: StaticString = #file,
    +                       line: UInt = #line) -> Assertion
    + +
    +
    +
    +

    Parameters

    + + + + + + + + + + + + + + + +
    + + assertion + + +
    +

    Previous assertion. nil by default.

    +
    +
    + + file + + +
    +

    File where called is called.

    +
    +
    + + line + + +
    +

    Line where calledis called.

    +
    +
    +
    +
    +

    Return Value

    +

    A new Assertion.

    +
    +
    +
    +
  • @@ -567,8 +775,8 @@

    Return Value

    diff --git a/docs/Classes/VerifiableProperty.html b/docs/Classes/VerifiableProperty.html index 3d7fd34..3111f51 100644 --- a/docs/Classes/VerifiableProperty.html +++ b/docs/Classes/VerifiableProperty.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

    @@ -136,29 +136,71 @@ Array

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  • +
    + + + + IndexPath + +
    +
    +
    +
    +
    +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    extension IndexPath: GlobalStub
    + +
    +
    +
    +
    +
  • +
  • +
    + + + + Set + +
    +
    +
    +
    +
    +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    extension Set: GlobalStub
    + +
    +
    +
    +
    +
  • + + +
    +
    + + +
    + +

    ExpressibleByNilLiteral

    +

    +
    +
    +
      +
    • +
      + + + + Optional + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension Optional: GlobalStub
    • +
    +
    +
    +
    + + +
    + +

    ExpressibleByBooleanLiteral

    +

    +
    +
    +
    • @@ -460,7 +614,6 @@

      Declaration

      Declaration

      @@ -475,14 +628,357 @@

      Declaration

    +
    +
    + + +
    + +

    ExpressibleByIntegerLiteral

    +

    +
    +
    +
      +
    • +
      + + + + Int + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension Int: GlobalStub
      + +
      +
      +
      +
      +
    • +
    +
    +
    +
    + + +
    + +

    ExpressibleByFloatLiteral

    +

    +
    +
    + +
    +
    +
    + + +
    + +

    ExpressibleByStringLiteral

    +

    +
    +
    +
      +
    • +
      + + + + String + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension String: GlobalStub
      + +
      +
      +
      +
      +
    • +
    • +
      + + + + Substring + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension Substring: GlobalStub
      + +
      +
      +
      +
      +
    • +
    • +
      + + + + StaticString + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension StaticString: GlobalStub
      + +
      +
      +
      +
      +
    • +
    +
    +
    +
    + + +
    + +

    ExpressibleByDictionaryLiteral

    +

    +
    +
    +
      +
    • +
      + + + + Dictionary + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension Dictionary: GlobalStub
      + +
      +
      +
      +
      +
    • +
    • +
      + + + + KeyValuePairs + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension KeyValuePairs: GlobalStub
      + +
      +
      +
      +
      +
    • +
    +
    diff --git a/docs/Extensions/Array.html b/docs/Extensions/Array.html index a9620f2..b6ef8c6 100644 --- a/docs/Extensions/Array.html +++ b/docs/Extensions/Array.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

    @@ -136,29 +136,71 @@ Array

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + +
    + +

    Available where ReturnType == Void

    +

    +
    +
    +
      +
    • +
      + + + + willDoNothing() + +
      +
      +
      +
      +
      +
      +

      Registers an empty block to excecute.

      +
      +

      See also

      + will(_ completion:) + +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      func willDoNothing()
      + +
      +
      +
      +
      +
    • +
    +
    diff --git a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/MockableProperty.html b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/MockableProperty.html index 85d76b7..7ced30e 100644 --- a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/MockableProperty.html +++ b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/MockableProperty.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

    @@ -136,29 +136,71 @@ Array

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
  • - -
    -
    -
    -
    -
    -

    Creates a Predicate<Input>.

    - -
    -
    -

    Declaration

    -
    -

    Swift

    -
    public class func match(description: String? = nil,
    -                        any type: Input.Type = Input.self,
    -                        when keyPath: KeyPath<Input, Bool>) -> Predicate<Input>
    - -
    -
    -
    -

    Parameters

    - - - - - - - - - - - - - - - -
    - - description - - -
    -

    The description of the Predicate.

    -
    -
    - - type - - -
    -

    The type to match.

    -
    -
    - - keyPath - - -
    -

    The keyPath that will be used to verify that the entry statisfies the Predicate.

    -
    -
    -
    -
    -

    Return Value

    -

    A new Predicate<Input>.

    -
    -
    -
    -
  • @@ -1364,8 +1330,8 @@

    Parameters

    diff --git a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/Stub.html b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/Stub.html index 788f3ec..c3761e4 100644 --- a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/Stub.html +++ b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/Stub.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

    @@ -136,29 +136,71 @@ Array

  • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  • + +
    +
    +
    +
    +
    +

    Checks that the function has never been called.

    +
    +

    Important

    + When assertion is specify, only calls that appear after +the minimum amount of calls required by the previous assertion will be considered. + +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    @discardableResult
    +public func neverCalled(after assertion: Assertion? = nil,
    +                        file: StaticString = #file,
    +                        line: UInt = #line) -> Assertion
    + +
    +
    +
    +

    Parameters

    + + + + + + + + + + + + + + + +
    + + assertion + + +
    +

    Previous assertion. nil by default.

    +
    +
    + + file + + +
    +

    File where called is called.

    +
    +
    + + line + + +
    +

    Line where calledis called.

    +
    +
    +
    +
    +

    Return Value

    +

    A new Assertion.

    +
    +
    +
    +
  • +
  • + +
    +
    +
    +
    +
    +

    Checks that the function has been called once.

    +
    +

    Important

    + When assertion is specify, only calls that appear after +the minimum amount of calls required by the previous assertion will be considered. + +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    @discardableResult
    +public func calledOnce(after assertion: Assertion? = nil,
    +                       file: StaticString = #file,
    +                       line: UInt = #line) -> Assertion
    + +
    +
    +
    +

    Parameters

    + + + + + + + + + + + + + + + +
    + + assertion + + +
    +

    Previous assertion. nil by default.

    +
    +
    + + file + + +
    +

    File where called is called.

    +
    +
    + + line + + +
    +

    Line where calledis called.

    +
    +
    +
    +
    +

    Return Value

    +

    A new Assertion.

    +
    +
    +
    +
  • @@ -567,8 +775,8 @@

    Return Value

    diff --git a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/VerifiableProperty.html b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/VerifiableProperty.html index 3d7fd34..3111f51 100644 --- a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/VerifiableProperty.html +++ b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Classes/VerifiableProperty.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

    @@ -136,29 +136,71 @@ Array

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  • +
    + + + + IndexPath + +
    +
    +
    +
    +
    +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    extension IndexPath: GlobalStub
    + +
    +
    +
    +
    +
  • +
  • +
    + + + + Set + +
    +
    +
    +
    +
    +
    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    extension Set: GlobalStub
    + +
    +
    +
    +
    +
  • + + +
    +
    + + +
    + +

    ExpressibleByNilLiteral

    +

    +
    +
    +
      +
    • +
      + + + + Optional + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension Optional: GlobalStub
    • +
    +
    +
    +
    + + +
    + +

    ExpressibleByBooleanLiteral

    +

    +
    +
    +
    • @@ -460,7 +614,6 @@

      Declaration

      Declaration

      @@ -475,14 +628,357 @@

      Declaration

    +
    +
    + + +
    + +

    ExpressibleByIntegerLiteral

    +

    +
    +
    +
      +
    • +
      + + + + Int + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension Int: GlobalStub
      + +
      +
      +
      +
      +
    • +
    +
    +
    +
    + + +
    + +

    ExpressibleByFloatLiteral

    +

    +
    +
    + +
    +
    +
    + + +
    + +

    ExpressibleByStringLiteral

    +

    +
    +
    +
      +
    • +
      + + + + String + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension String: GlobalStub
      + +
      +
      +
      +
      +
    • +
    • +
      + + + + Substring + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension Substring: GlobalStub
      + +
      +
      +
      +
      +
    • +
    • +
      + + + + StaticString + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension StaticString: GlobalStub
      + +
      +
      +
      +
      +
    • +
    +
    +
    +
    + + +
    + +

    ExpressibleByDictionaryLiteral

    +

    +
    +
    +
      +
    • +
      + + + + Dictionary + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension Dictionary: GlobalStub
      + +
      +
      +
      +
      +
    • +
    • +
      + + + + KeyValuePairs + +
      +
      +
      +
      +
      +
      + +
      +
      +

      Declaration

      +
      +

      Swift

      +
      extension KeyValuePairs: GlobalStub
      + +
      +
      +
      +
      +
    • +
    +
    diff --git a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Extensions/Array.html b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Extensions/Array.html index a9620f2..b6ef8c6 100644 --- a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Extensions/Array.html +++ b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/Extensions/Array.html @@ -23,7 +23,7 @@ MockSwift Docs - (94% documented) + (95% documented)

    @@ -136,29 +136,71 @@ Array

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  • Installation
  • Usage
  • Documentation
  • -
  • Playgrounds
  • Contribution
  • License
  • @@ -256,25 +297,30 @@

    Features

    Actually MockSwift supports:

      -
    • Mocking +
    • Stub
        -
      • [x] protocol (methods, properties, subscripts)
      • -
      • [ ] class (v2)
      • -
      • [ ] struct (v2)
      • -
      • [ ] enum (v2)
      • +
      • [x] Protocol methods
      • +
      • [x] Protocol properties
      • +
      • [x] Protocol subscripts
      • +
      • [ ] Class
      • +
      • [ ] Struct
      • +
      • [ ] Enum
      • +
      • [x] Default values for types
    • -
    • Call verification +
    • Verify interactions
        -
      • [x] protocol (methods, properties, subscripts)
      • -
      • [ ] class (v2)
      • -
      • [ ] struct (v2)
      • -
      • [ ] enum (v2)
      • +
      • [x] Protocol methods
      • +
      • [x] Protocol properties
      • +
      • [x] Protocol subscripts
      • +
      • [ ] Class
      • +
      • [ ] Struct
      • +
      • [ ] Enum +_ Parameter matching
      • +
      • [x] Predicates
      • +
      • [x] Generics
    • -
    • [x] Generics
    • -
    • [x] Parameters matching
    • -
    • [x] Default values for Types

    CHANGELOG

    @@ -290,7 +336,7 @@

    Swift Package Manager

    let package = Package( name: "MyProject", dependencies: [ - .package(url: "https://github.com/leoture/MockSwift.git", from: "0.7.0") + .package(url: "https://github.com/leoture/MockSwift.git", from: "1.0.0") ], targets: [ .testTarget(name: "MyProjectTests", dependencies: ["MockSwift"]) @@ -298,6 +344,35 @@

    Swift Package Manager

    )

    Usage

    +

    Quick Look

    +
    class AwesomeTests: XCTestCase {
    +
    +  private var printer: Printer!
    +  @Mock private var userService: UserService
    +
    +  override func setUp() {
    +    printer = Printer(userService)
    +  }
    +
    +  func test_sayHello() {
    +    // Given
    +    given(userService).fetchUserName(of: "you").willReturn("my friend")
    +    given(userService).isConnected.get.willReturn(true)
    +    given(userService)[cache: .any()].set(.any()).willDoNothing()
    +
    +    // When
    +    let message = printer.sayHello(to: "you", from: "me")
    +
    +    // Then
    +    then(userService).fetchUserName(of: .any()).called()
    +    then(userService).isConnected.get.called(times: 1)
    +    then(userService)[cache: "you"].set("my friend").calledOnce()
    +
    +    XCTAssertEqual(message, "me: Hello my friend")
    +  }
    +}
    +
    +

    Details

    Suppose that you have a UserService protocol.

    struct User: Equatable {
    @@ -403,9 +478,14 @@ 

    Then

    then(service) {
       $0.fetch(identifier: "current").called(times: >=2)
     
    -  $0.fetch(identifier: =="").called(times: 0)
    +  $0.fetch(identifier: == "").called(times: 0)
     }
     
    + +

    You can go further and verify order of calls

    +
    let assertion = then(service).fetch(identifier: "current").called(times: >=2)
    +then(service).fetch(identifier: == "").called(times: 1, after: assertion)
    +

    Stubs

    In MockSwift, stubs are default values that are returned when no behaviours has been found.

    @@ -496,15 +576,6 @@

    Manually

    Documentation

    If you need more details about the API, you can check out our API documentation or our GitBook.

    -

    Playgrounds

    - -

    This project contains playgrounds that can help you experiment MockSwift .
    -To use playgrounds:

    - -
      -
    • open MockSwift.xcworkspace
    • -
    • build the MockSwiftPlayground scheme.
    • -

    Contribution

    Would you like to contribute to MockSwift? Please read our contributing guidelines and code of conduct.

    @@ -522,8 +593,8 @@

    Credits

    diff --git a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/search.json b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/search.json index 2a63ce0..92ce7bb 100644 --- a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/search.json +++ b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/search.json @@ -1 +1 @@ -{"Typealiases.html#/s:9MockSwift13ParameterTypea":{"name":"ParameterType","abstract":"

    Undocumented

    "},"Protocols/GlobalStub.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","abstract":"

    Creates a stub value of Self.

    ","parent_name":"GlobalStub"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP11descriptionSSvp":{"name":"description","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP14firstValidTimeSdvp":{"name":"firstValidTime","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP7isValidSbvp":{"name":"isValid","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/AnyPredicate.html#/s:9MockSwift12AnyPredicateP7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","abstract":"

    Check if an element satifies the predicate.

    ","parent_name":"AnyPredicate"},"Protocols/AnyPredicate.html#/s:9MockSwift12AnyPredicatePAASQRzrlE7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","parent_name":"AnyPredicate"},"Protocols/AnyPredicate.html":{"name":"AnyPredicate","abstract":"

    AnyPredicate represents a condition on an Any? element.

    "},"Protocols/Assertion.html":{"name":"Assertion","abstract":"

    Undocumented

    "},"Protocols/GlobalStub.html":{"name":"GlobalStub","abstract":"

    GlobalStub represents an entity able to give a stub value.

    "},"Functions.html#/s:9MockSwift5given_4file4lineAA5GivenCyxGx_s12StaticStringVSutlF":{"name":"given(_:file:line:)","abstract":"

    Creates a Given based on value.

    "},"Functions.html#/s:9MockSwift5given_4file4line_yx_s12StaticStringVSuyAA5GivenCyxGXEtlF":{"name":"given(_:file:line:_:)","abstract":"

    Call completion with a Given based on value.

    "},"Functions.html#/s:9MockSwift11interaction4withAA11InteractionCyxGx_tlF":{"name":"interaction(with:)","abstract":"

    Creates an Interaction based on value.

    "},"Functions.html#/s:9MockSwift2egoiyAA4StubCxm_xtlF":{"name":"=>(_:_:)","abstract":"

    Creates a Stub

    "},"Functions.html#/s:9MockSwift4then_4file4lineAA4ThenCyxGx_s12StaticStringVSutlF":{"name":"then(_:file:line:)","abstract":"

    Creates a Then based on value.

    "},"Functions.html#/s:9MockSwift4then_4file4line_yx_s12StaticStringVSuyAA4ThenCyxGXEtlF":{"name":"then(_:file:line:_:)","abstract":"

    Call completion with a Then based on value.

    "},"Functions.html#/s:9MockSwift3eeeopyAA9PredicateCyxGxRlzClF":{"name":"===(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    "},"Functions.html#/s:9MockSwift2eeopyAA9PredicateCyxGxSQRzlF":{"name":"==(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    "},"Functions.html#/s:9MockSwift1gopyAA9PredicateCyxGxSLRzlF":{"name":">(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    "},"Functions.html#/s:9MockSwift2geopyAA9PredicateCyxGxSLRzlF":{"name":">=(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    "},"Extensions/Bool.html#/s:Sb9MockSwiftE4stubSbyFZ":{"name":"stub()","abstract":"

    Creates a stub value of Bool.

    ","parent_name":"Bool"},"Extensions/Int.html#/s:Si9MockSwiftE4stubSiyFZ":{"name":"stub()","abstract":"

    Creates a stub value of Int.

    ","parent_name":"Int"},"Extensions/String.html#/s:SS9MockSwiftE4stubSSyFZ":{"name":"stub()","abstract":"

    Creates a stub value of String.

    ","parent_name":"String"},"Extensions/Array.html#/s:Sa9MockSwiftAA18StrategyIdentifierORszlE7defaultSayACGvpZ":{"name":"default","abstract":"

    Strategy alias of Stategies","parent_name":"Array"},"Extensions/Array.html":{"name":"Array"},"Extensions.html#/c:objc(cs)NSObject":{"name":"NSObject"},"Extensions.html#/s:s18BooleanLiteralTypea":{"name":"BooleanLiteralType"},"Extensions.html#/s:s18IntegerLiteralTypea":{"name":"IntegerLiteralType"},"Extensions.html#/s:s17StringLiteralTypea":{"name":"StringLiteralType"},"Extensions.html#/s:s16FloatLiteralTypea":{"name":"FloatLiteralType"},"Extensions/String.html":{"name":"String"},"Extensions/Int.html":{"name":"Int"},"Extensions/Bool.html":{"name":"Bool"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO5givenyA2CmF":{"name":"given","abstract":"

    Stragegy that return values from Given block

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO10localStubsyA2CmF":{"name":"localStubs","abstract":"

    Stragegy that return values local stubs

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO11globalStubsyA2CmF":{"name":"globalStubs","abstract":"

    Stragegy that return values global stubs

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html":{"name":"StrategyIdentifier","abstract":"

    Undocumented

    "},"Classes/Predicate.html#/s:9MockSwift9PredicateC11descriptionSSvp":{"name":"description","abstract":"

    Description of the Predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5match11description3any_ACyxGSSSg_xmSbxctFZ":{"name":"match(description:any:_:)","abstract":"

    Creates a Predicate<Input>.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5match11description3any4whenACyxGSSSg_xms7KeyPathCyxSbGtFZ":{"name":"match(description:any:when:)","abstract":"

    Creates a Predicate<Input>.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC3anyyACyxGxmFZ":{"name":"any(_:)","abstract":"

    Creates a Predicate<Input> able to match any value of type Input.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC3notyACyxGAEFZ":{"name":"not(_:)","abstract":"

    Creates a Predicate<Input> able to match any value of type Input not matched by an other predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5isNilACyqd__SgGylFZ":{"name":"isNil()","abstract":"

    Creates a Predicate<Input?> able to match nil.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","abstract":"

    Check if an element satifies the predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAARlzClE9identical2toACyxGx_tFZ":{"name":"identical(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAARlzClE2idyACyxGxFZ":{"name":"id(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASbRszlE6isTrueACySbGyFZ":{"name":"isTrue()","abstract":"

    Creates a Predicate<Bool> that can match any Bool equal to true

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASbRszlE7isFalseACySbGyFZ":{"name":"isFalse()","abstract":"

    Creates a Predicate<Bool> that can match any Bool equal to false

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASQRzlE6equals2toACyxGx_tFZ":{"name":"equals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASQRzlE2eqyACyxGxFZ":{"name":"eq(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE7greater4thanACyxGx_tFZ":{"name":"greater(than:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2gtyACyxGxFZ":{"name":"gt(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE19greaterThanOrEquals2toACyxGx_tFZ":{"name":"greaterThanOrEquals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2geyACyxGxFZ":{"name":"ge(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE4less4thanACyxGx_tFZ":{"name":"less(than:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2ltyACyxGxFZ":{"name":"lt(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE16lessThanOrEquals2toACyxGx_tFZ":{"name":"lessThanOrEquals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2leyACyxGxFZ":{"name":"le(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than or equal to value

    ","parent_name":"Predicate"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3set_4file4lineAA0C0CyytGx_s12StaticStringVSutF":{"name":"set(_:file:line:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Readable.html#/s:9MockSwift19VerifiableSubscriptC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/VerifiableSubscript/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read access only.

    ","parent_name":"VerifiableSubscript"},"Classes/VerifiableSubscript/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read and wirte access.

    ","parent_name":"VerifiableSubscript"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3setyAA0C0CyytGxF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Readable.html#/s:9MockSwift18VerifiablePropertyC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/VerifiableProperty/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read access only.

    ","parent_name":"VerifiableProperty"},"Classes/VerifiableProperty/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read and wirte access.

    ","parent_name":"VerifiableProperty"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC18receivedParametersSaySayypSgGGvp":{"name":"receivedParameters","abstract":"

    Return a list of all parameters’ list with whom the function was called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC9callCountSivp":{"name":"callCount","abstract":"

    Return the number of times that the function was called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC12disambiguate4withACyxGXDxm_tF":{"name":"disambiguate(with:)","abstract":"

    Used to disambiguate the ReturnType.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC6called5times5after4file4lineAA9Assertion_pAA9PredicateCySiG_AaI_pSgs12StaticStringVSutF":{"name":"called(times:after:file:line:)","abstract":"

    Checks that the function has been called a number of times corresponding to the predicate.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC6called5times5after4file4lineAA9Assertion_pSi_AaI_pSgs12StaticStringVSutF":{"name":"called(times:after:file:line:)","abstract":"

    Checks that the function has been called.

    ","parent_name":"Verifiable"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA10VerifiableCyqd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a Verifiable for function with parameters.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable8property4file4lineAA18VerifiablePropertyC8ReadableCy_qd__GSS_s12StaticStringVSutlF":{"name":"verifiable(property:file:line:)","abstract":"

    Creates a VerifiableProperty.Readable for property.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable8property4file4lineAA18VerifiablePropertyC8WritableCy_qd__GSS_s12StaticStringVSutlF":{"name":"verifiable(property:file:line:)","abstract":"

    Creates a VerifiableProperty.Writable for property.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA19VerifiableSubscriptC8ReadableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a VerifiableSubscript.Readable for a subscript.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA19VerifiableSubscriptC8WritableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a VerifiableSubscript.Writable for a subscript.

    ","parent_name":"Then"},"Classes/Stub.html#/s:9MockSwift4StubCyACxm_xtclufc":{"name":"init(_:_:)","abstract":"

    Creates a Stub

    ","parent_name":"Stub"},"Classes/Mock.html#/s:9MockSwift0A0C12wrappedValuexvp":{"name":"wrappedValue","abstract":"

    Returns self as a WrappedType.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0CACyxGycfc":{"name":"init()","abstract":"

    Creates a Mock<WrappedType>.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C6mocked_8functionyypSgd_SStF":{"name":"mocked(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C15mockedThrowable_8functionyypSgd_SStKF":{"name":"mockedThrowable(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C6mocked_8functionqd__ypSgd_SStlF":{"name":"mocked(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C15mockedThrowable_8functionqd__ypSgd_SStKlF":{"name":"mockedThrowable(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C8strategy5stubs_ACyxGSayAA18StrategyIdentifierOG_SayAA4StubCGyAA5GivenCyxGXEtcfc":{"name":"init(strategy:stubs:_:)","abstract":"

    Creates a Mock<WrappedType> with a custom configuration.

    ","parent_name":"Mock"},"Classes/Interaction.html#/s:9MockSwift11InteractionC5ended4file4lineys12StaticStringV_SutF":{"name":"ended(file:line:)","abstract":"

    Checks that the WrappedType value has no calls to check anymore.

    ","parent_name":"Interaction"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3set_4file4lineAA0C0CyytGx_s12StaticStringVSutF":{"name":"set(_:file:line:)","abstract":"

    Creates a Mockable for set method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Readable.html#/s:9MockSwift17MockableSubscriptC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned subcript.

    ","parent_name":"Readable"},"Classes/MockableSubscript/Readable.html":{"name":"Readable","abstract":"

    Represents a subcript call that returns ReturnType and can be stubbed with read access only.

    ","parent_name":"MockableSubscript"},"Classes/MockableSubscript/Writable.html":{"name":"Writable","abstract":"

    Represents a subcript call that returns ReturnType and can be stubbed with read and wirte access.

    ","parent_name":"MockableSubscript"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3setyAA0C0CyytGxF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Readable.html#/s:9MockSwift16MockablePropertyC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/MockableProperty/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be stubbed with read access only.

    ","parent_name":"MockableProperty"},"Classes/MockableProperty/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be stubbed with read and wirte access.

    ","parent_name":"MockableProperty"},"Classes/Mockable.html#/s:9MockSwift8MockableC10willReturnyyxF":{"name":"willReturn(_:)","abstract":"

    Registers a return value.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC10willReturnyyxd_tF":{"name":"willReturn(_:)","abstract":"

    Registers return values.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC12disambiguate4withACyxGXDxm_tF":{"name":"disambiguate(with:)","abstract":"

    Used to disambiguate the ReturnType.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC4willyyxSayypGKcF":{"name":"will(_:)","abstract":"

    Registers a block to excecute.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC9willThrowyys5Error_pF":{"name":"willThrow(_:)","abstract":"

    Registers an error.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC9willThrowyys5Error_pd_tF":{"name":"willThrow(_:)","abstract":"

    Registers errors.

    ","parent_name":"Mockable"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA8MockableCyqd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a Mockable for function with parameters.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable8property4file4lineAA16MockablePropertyC8ReadableCy_qd__GSS_s12StaticStringVSutlF":{"name":"mockable(property:file:line:)","abstract":"

    Creates a MockableProperty.Readable for property.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable8property4file4lineAA16MockablePropertyC8WritableCy_qd__GSS_s12StaticStringVSutlF":{"name":"mockable(property:file:line:)","abstract":"

    Creates a MockableProperty.Writable for property.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA17MockableSubscriptC8ReadableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a MockableSubscript.Readable for a subcript.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA17MockableSubscriptC8WritableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a MockableSubscript.Writable for a subcript.

    ","parent_name":"Given"},"Classes/Given.html":{"name":"Given","abstract":"

    Given is used to define behaviours.

    "},"Classes/Mockable.html":{"name":"Mockable","abstract":"

    Represents a function call that returns ReturnType and can be stubbed.

    "},"Classes/MockableProperty.html":{"name":"MockableProperty","abstract":"

    Represents a property call that can be stubbed.

    "},"Classes/MockableSubscript.html":{"name":"MockableSubscript","abstract":"

    Represents a subcript call that can be stubbed.

    "},"Classes/Interaction.html":{"name":"Interaction","abstract":"

    Interaction is used to verify method calls.

    "},"Classes/Mock.html":{"name":"Mock","abstract":"

    Undocumented

    "},"Classes/Stub.html":{"name":"Stub","abstract":"

    Stub represents a paire of type and a value of this type

    "},"Classes/Then.html":{"name":"Then","abstract":"

    Then is used to verify method calls.

    "},"Classes/Verifiable.html":{"name":"Verifiable","abstract":"

    Represents a function call that returns ReturnType and can be checked.

    "},"Classes/VerifiableProperty.html":{"name":"VerifiableProperty","abstract":"

    Represents a property call that can be checked.

    "},"Classes/VerifiableSubscript.html":{"name":"VerifiableSubscript","abstract":"

    Represents a property call that can be checked.

    "},"Classes/Predicate.html":{"name":"Predicate","abstract":"

    Predicate represents a condition on an Input.

    "},"Classes.html":{"name":"Classes","abstract":"

    The following classes are available globally.

    "},"Enums.html":{"name":"Enumerations","abstract":"

    The following enumerations are available globally.

    "},"Extensions.html":{"name":"Extensions","abstract":"

    The following extensions are available globally.

    "},"Functions.html":{"name":"Functions","abstract":"

    The following functions are available globally.

    "},"Protocols.html":{"name":"Protocols","abstract":"

    The following protocols are available globally.

    "},"Typealiases.html":{"name":"Type Aliases","abstract":"

    The following type aliases are available globally.

    "}} \ No newline at end of file +{"Typealiases.html#/s:9MockSwift13ParameterTypea":{"name":"ParameterType","abstract":"

    Undocumented

    "},"Protocols/GlobalStub.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","abstract":"

    Creates a stub value of Self.

    ","parent_name":"GlobalStub"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP11descriptionSSvp":{"name":"description","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP14firstValidTimeSdvp":{"name":"firstValidTime","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP7isValidSbvp":{"name":"isValid","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/AnyPredicate.html#/s:9MockSwift12AnyPredicateP7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","abstract":"

    Check if an element satifies the predicate.

    ","parent_name":"AnyPredicate"},"Protocols/AnyPredicate.html#/s:9MockSwift12AnyPredicatePAASQRzrlE7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","parent_name":"AnyPredicate"},"Protocols/AnyPredicate.html":{"name":"AnyPredicate","abstract":"

    AnyPredicate represents a condition on an Any? element.

    "},"Protocols/Assertion.html":{"name":"Assertion","abstract":"

    Undocumented

    "},"Protocols/GlobalStub.html":{"name":"GlobalStub","abstract":"

    GlobalStub represents an entity able to give a stub value.

    "},"Functions.html#/s:9MockSwift5given_4file4lineAA5GivenCyxGx_s12StaticStringVSutlF":{"name":"given(_:file:line:)","abstract":"

    Creates a Given based on value.

    "},"Functions.html#/s:9MockSwift5given_4file4line_yx_s12StaticStringVSuyAA5GivenCyxGXEtlF":{"name":"given(_:file:line:_:)","abstract":"

    Call completion with a Given based on value.

    "},"Functions.html#/s:9MockSwift11interaction4withAA11InteractionCyxGx_tlF":{"name":"interaction(with:)","abstract":"

    Creates an Interaction based on value.

    "},"Functions.html#/s:9MockSwift2egoiyAA4StubCxm_xtlF":{"name":"=>(_:_:)","abstract":"

    Creates a Stub

    "},"Functions.html#/s:9MockSwift4then_4file4lineAA4ThenCyxGx_s12StaticStringVSutlF":{"name":"then(_:file:line:)","abstract":"

    Creates a Then based on value.

    "},"Functions.html#/s:9MockSwift4then_4file4line_yx_s12StaticStringVSuyAA4ThenCyxGXEtlF":{"name":"then(_:file:line:_:)","abstract":"

    Call completion with a Then based on value.

    "},"Functions.html#/s:9MockSwift3eeeopyAA9PredicateCyxGxRlzClF":{"name":"===(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    "},"Functions.html#/s:9MockSwift2eeopyAA9PredicateCyxGxSQRzlF":{"name":"==(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    "},"Functions.html#/s:9MockSwift1gopyAA9PredicateCyxGxSLRzlF":{"name":">(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    "},"Functions.html#/s:9MockSwift2geopyAA9PredicateCyxGxSLRzlF":{"name":">=(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    "},"Extensions/NSNumber.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"NSNumber"},"Extensions/Decimal.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"Decimal"},"Extensions/Float80.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"Float80"},"Extensions/Float.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"Float"},"Extensions/Double.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"Double"},"Extensions/Array.html#/s:Sa9MockSwiftAA18StrategyIdentifierORszlE7defaultSayACGvpZ":{"name":"default","abstract":"

    Strategy alias of Stategies","parent_name":"Array"},"Extensions/Array.html":{"name":"Array"},"Extensions.html#/c:objc(cs)NSObject":{"name":"NSObject"},"Extensions.html#/s:s18BooleanLiteralTypea":{"name":"BooleanLiteralType"},"Extensions.html#/s:s18IntegerLiteralTypea":{"name":"IntegerLiteralType"},"Extensions.html#/s:s17StringLiteralTypea":{"name":"StringLiteralType"},"Extensions.html#/s:s16FloatLiteralTypea":{"name":"FloatLiteralType"},"Extensions.html#/s:Sq":{"name":"Optional"},"Extensions.html#/s:Sb":{"name":"Bool"},"Extensions.html#/s:Si":{"name":"Int"},"Extensions/Double.html":{"name":"Double"},"Extensions/Float.html":{"name":"Float"},"Extensions/Float80.html":{"name":"Float80"},"Extensions/Decimal.html":{"name":"Decimal"},"Extensions/NSNumber.html":{"name":"NSNumber"},"Extensions.html#/s:SS":{"name":"String"},"Extensions.html#/s:Ss":{"name":"Substring"},"Extensions.html#/s:s12StaticStringV":{"name":"StaticString"},"Extensions.html#/s:s10ArraySliceV":{"name":"ArraySlice"},"Extensions.html#/s:s15ContiguousArrayV":{"name":"ContiguousArray"},"Extensions.html#/s:10Foundation9IndexPathV":{"name":"IndexPath"},"Extensions.html#/s:Sh":{"name":"Set"},"Extensions.html#/s:SD":{"name":"Dictionary"},"Extensions.html#/s:s13KeyValuePairsV":{"name":"KeyValuePairs"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO5givenyA2CmF":{"name":"given","abstract":"

    Stragegy that return values from Given block

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO10localStubsyA2CmF":{"name":"localStubs","abstract":"

    Stragegy that return values local stubs

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO11globalStubsyA2CmF":{"name":"globalStubs","abstract":"

    Stragegy that return values global stubs

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html":{"name":"StrategyIdentifier","abstract":"

    Undocumented

    "},"Classes/Predicate.html#/s:9MockSwift9PredicateC11descriptionSSvp":{"name":"description","abstract":"

    Description of the Predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5match11description3any_ACyxGSSSg_xmSbxctFZ":{"name":"match(description:any:_:)","abstract":"

    Creates a Predicate<Input>.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC3anyyACyxGxmFZ":{"name":"any(_:)","abstract":"

    Creates a Predicate<Input> able to match any value of type Input.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC3notyACyxGAEFZ":{"name":"not(_:)","abstract":"

    Creates a Predicate<Input> able to match any value of type Input not matched by an other predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5isNilACyqd__SgGylFZ":{"name":"isNil()","abstract":"

    Creates a Predicate<Input?> able to match nil.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","abstract":"

    Check if an element satifies the predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAARlzClE9identical2toACyxGx_tFZ":{"name":"identical(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAARlzClE2idyACyxGxFZ":{"name":"id(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASbRszlE6isTrueACySbGyFZ":{"name":"isTrue()","abstract":"

    Creates a Predicate<Bool> that can match any Bool equal to true

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASbRszlE7isFalseACySbGyFZ":{"name":"isFalse()","abstract":"

    Creates a Predicate<Bool> that can match any Bool equal to false

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASQRzlE6equals2toACyxGx_tFZ":{"name":"equals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASQRzlE2eqyACyxGxFZ":{"name":"eq(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE7greater4thanACyxGx_tFZ":{"name":"greater(than:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2gtyACyxGxFZ":{"name":"gt(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE19greaterThanOrEquals2toACyxGx_tFZ":{"name":"greaterThanOrEquals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2geyACyxGxFZ":{"name":"ge(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE4less4thanACyxGx_tFZ":{"name":"less(than:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2ltyACyxGxFZ":{"name":"lt(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE16lessThanOrEquals2toACyxGx_tFZ":{"name":"lessThanOrEquals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2leyACyxGxFZ":{"name":"le(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than or equal to value

    ","parent_name":"Predicate"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3set_4file4lineAA0C0CyytGx_s12StaticStringVSutF":{"name":"set(_:file:line:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Readable.html#/s:9MockSwift19VerifiableSubscriptC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/VerifiableSubscript/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read access only.

    ","parent_name":"VerifiableSubscript"},"Classes/VerifiableSubscript/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read and wirte access.

    ","parent_name":"VerifiableSubscript"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3setyAA0C0CyytGxF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Readable.html#/s:9MockSwift18VerifiablePropertyC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/VerifiableProperty/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read access only.

    ","parent_name":"VerifiableProperty"},"Classes/VerifiableProperty/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read and wirte access.

    ","parent_name":"VerifiableProperty"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC18receivedParametersSaySayypSgGGvp":{"name":"receivedParameters","abstract":"

    Return a list of all parameters’ list with whom the function was called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC9callCountSivp":{"name":"callCount","abstract":"

    Return the number of times that the function was called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC12disambiguate4withACyxGXDxm_tF":{"name":"disambiguate(with:)","abstract":"

    Used to disambiguate the ReturnType.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC6called5times5after4file4lineAA9Assertion_pAA9PredicateCySiG_AaI_pSgs12StaticStringVSutF":{"name":"called(times:after:file:line:)","abstract":"

    Checks that the function has been called a number of times corresponding to the predicate.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC6called5times5after4file4lineAA9Assertion_pSi_AaI_pSgs12StaticStringVSutF":{"name":"called(times:after:file:line:)","abstract":"

    Checks that the function has been called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC11neverCalled5after4file4lineAA9Assertion_pAaH_pSg_s12StaticStringVSutF":{"name":"neverCalled(after:file:line:)","abstract":"

    Checks that the function has never been called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC10calledOnce5after4file4lineAA9Assertion_pAaH_pSg_s12StaticStringVSutF":{"name":"calledOnce(after:file:line:)","abstract":"

    Checks that the function has been called once.

    ","parent_name":"Verifiable"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA10VerifiableCyqd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a Verifiable for function with parameters.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable8property4file4lineAA18VerifiablePropertyC8ReadableCy_qd__GSS_s12StaticStringVSutlF":{"name":"verifiable(property:file:line:)","abstract":"

    Creates a VerifiableProperty.Readable for property.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable8property4file4lineAA18VerifiablePropertyC8WritableCy_qd__GSS_s12StaticStringVSutlF":{"name":"verifiable(property:file:line:)","abstract":"

    Creates a VerifiableProperty.Writable for property.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA19VerifiableSubscriptC8ReadableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a VerifiableSubscript.Readable for a subscript.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA19VerifiableSubscriptC8WritableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a VerifiableSubscript.Writable for a subscript.

    ","parent_name":"Then"},"Classes/Stub.html#/s:9MockSwift4StubCyACxm_xtclufc":{"name":"init(_:_:)","abstract":"

    Creates a Stub

    ","parent_name":"Stub"},"Classes/Mock.html#/s:9MockSwift0A0C12wrappedValuexvp":{"name":"wrappedValue","abstract":"

    Returns self as a WrappedType.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0CACyxGycfc":{"name":"init()","abstract":"

    Creates a Mock<WrappedType>.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C6mocked_8functionyypSgd_SStF":{"name":"mocked(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C15mockedThrowable_8functionyypSgd_SStKF":{"name":"mockedThrowable(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C6mocked_8functionqd__ypSgd_SStlF":{"name":"mocked(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C15mockedThrowable_8functionqd__ypSgd_SStKlF":{"name":"mockedThrowable(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C8strategy5stubs_ACyxGSayAA18StrategyIdentifierOG_SayAA4StubCGyAA5GivenCyxGXEtcfc":{"name":"init(strategy:stubs:_:)","abstract":"

    Creates a Mock<WrappedType> with a custom configuration.

    ","parent_name":"Mock"},"Classes/Interaction.html#/s:9MockSwift11InteractionC5ended4file4lineys12StaticStringV_SutF":{"name":"ended(file:line:)","abstract":"

    Checks that the WrappedType value has no calls to check anymore.

    ","parent_name":"Interaction"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3set_4file4lineAA0C0CyytGx_s12StaticStringVSutF":{"name":"set(_:file:line:)","abstract":"

    Creates a Mockable for set method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Readable.html#/s:9MockSwift17MockableSubscriptC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned subcript.

    ","parent_name":"Readable"},"Classes/MockableSubscript/Readable.html":{"name":"Readable","abstract":"

    Represents a subcript call that returns ReturnType and can be stubbed with read access only.

    ","parent_name":"MockableSubscript"},"Classes/MockableSubscript/Writable.html":{"name":"Writable","abstract":"

    Represents a subcript call that returns ReturnType and can be stubbed with read and wirte access.

    ","parent_name":"MockableSubscript"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3setyAA0C0CyytGxF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Readable.html#/s:9MockSwift16MockablePropertyC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/MockableProperty/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be stubbed with read access only.

    ","parent_name":"MockableProperty"},"Classes/MockableProperty/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be stubbed with read and wirte access.

    ","parent_name":"MockableProperty"},"Classes/Mockable.html#/s:9MockSwift8MockableC10willReturnyyxF":{"name":"willReturn(_:)","abstract":"

    Registers a return value.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC10willReturnyyxd_tF":{"name":"willReturn(_:)","abstract":"

    Registers return values.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC12disambiguate4withACyxGXDxm_tF":{"name":"disambiguate(with:)","abstract":"

    Used to disambiguate the ReturnType.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC4willyyxSayypGKcF":{"name":"will(_:)","abstract":"

    Registers a block to excecute.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC9willThrowyys5Error_pF":{"name":"willThrow(_:)","abstract":"

    Registers an error.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC9willThrowyys5Error_pd_tF":{"name":"willThrow(_:)","abstract":"

    Registers errors.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableCAAytRszlE13willDoNothingyyF":{"name":"willDoNothing()","abstract":"

    Registers an empty block to excecute.

    ","parent_name":"Mockable"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA8MockableCyqd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a Mockable for function with parameters.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable8property4file4lineAA16MockablePropertyC8ReadableCy_qd__GSS_s12StaticStringVSutlF":{"name":"mockable(property:file:line:)","abstract":"

    Creates a MockableProperty.Readable for property.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable8property4file4lineAA16MockablePropertyC8WritableCy_qd__GSS_s12StaticStringVSutlF":{"name":"mockable(property:file:line:)","abstract":"

    Creates a MockableProperty.Writable for property.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA17MockableSubscriptC8ReadableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a MockableSubscript.Readable for a subcript.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA17MockableSubscriptC8WritableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a MockableSubscript.Writable for a subcript.

    ","parent_name":"Given"},"Classes/Given.html":{"name":"Given","abstract":"

    Given is used to define behaviours.

    "},"Classes/Mockable.html":{"name":"Mockable","abstract":"

    Represents a function call that returns ReturnType and can be stubbed.

    "},"Classes/MockableProperty.html":{"name":"MockableProperty","abstract":"

    Represents a property call that can be stubbed.

    "},"Classes/MockableSubscript.html":{"name":"MockableSubscript","abstract":"

    Represents a subcript call that can be stubbed.

    "},"Classes/Interaction.html":{"name":"Interaction","abstract":"

    Interaction is used to verify method calls.

    "},"Classes/Mock.html":{"name":"Mock","abstract":"

    Undocumented

    "},"Classes/Stub.html":{"name":"Stub","abstract":"

    Stub represents a paire of type and a value of this type

    "},"Classes/Then.html":{"name":"Then","abstract":"

    Then is used to verify method calls.

    "},"Classes/Verifiable.html":{"name":"Verifiable","abstract":"

    Represents a function call that returns ReturnType and can be checked.

    "},"Classes/VerifiableProperty.html":{"name":"VerifiableProperty","abstract":"

    Represents a property call that can be checked.

    "},"Classes/VerifiableSubscript.html":{"name":"VerifiableSubscript","abstract":"

    Represents a property call that can be checked.

    "},"Classes/Predicate.html":{"name":"Predicate","abstract":"

    Predicate represents a condition on an Input.

    "},"Classes.html":{"name":"Classes","abstract":"

    The following classes are available globally.

    "},"Enums.html":{"name":"Enumerations","abstract":"

    The following enumerations are available globally.

    "},"Extensions.html":{"name":"Extensions","abstract":"

    The following extensions are available globally.

    "},"Functions.html":{"name":"Functions","abstract":"

    The following functions are available globally.

    "},"Protocols.html":{"name":"Protocols","abstract":"

    The following protocols are available globally.

    "},"Typealiases.html":{"name":"Type Aliases","abstract":"

    The following type aliases are available globally.

    "}} \ No newline at end of file diff --git a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/undocumented.json b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/undocumented.json index 0d48e34..81a622b 100644 --- a/docs/docsets/MockSwift.docset/Contents/Resources/Documents/undocumented.json +++ b/docs/docsets/MockSwift.docset/Contents/Resources/Documents/undocumented.json @@ -27,6 +27,34 @@ "symbol": "StrategyIdentifier", "symbol_kind": "source.lang.swift.decl.enum", "warning": "undocumented" + }, + { + "file": "/Users/jordhanleoture/XcodeProjects/MockSwift/Sources/MockSwift/Core/Then/Verifiables/Assertion.swift", + "line": 28, + "symbol": "Assertion", + "symbol_kind": "source.lang.swift.decl.protocol", + "warning": "undocumented" + }, + { + "file": "/Users/jordhanleoture/XcodeProjects/MockSwift/Sources/MockSwift/Core/Then/Verifiables/Assertion.swift", + "line": 29, + "symbol": "Assertion.description", + "symbol_kind": "source.lang.swift.decl.var.instance", + "warning": "undocumented" + }, + { + "file": "/Users/jordhanleoture/XcodeProjects/MockSwift/Sources/MockSwift/Core/Then/Verifiables/Assertion.swift", + "line": 30, + "symbol": "Assertion.firstValidTime", + "symbol_kind": "source.lang.swift.decl.var.instance", + "warning": "undocumented" + }, + { + "file": "/Users/jordhanleoture/XcodeProjects/MockSwift/Sources/MockSwift/Core/Then/Verifiables/Assertion.swift", + "line": 31, + "symbol": "Assertion.isValid", + "symbol_kind": "source.lang.swift.decl.var.instance", + "warning": "undocumented" } ], "source_directory": "/Users/jordhanleoture/XcodeProjects/MockSwift" diff --git a/docs/docsets/MockSwift.docset/Contents/Resources/docSet.dsidx b/docs/docsets/MockSwift.docset/Contents/Resources/docSet.dsidx index fe6264f..72c5646 100644 Binary files a/docs/docsets/MockSwift.docset/Contents/Resources/docSet.dsidx and b/docs/docsets/MockSwift.docset/Contents/Resources/docSet.dsidx differ diff --git a/docs/docsets/MockSwift.tgz b/docs/docsets/MockSwift.tgz index 687e56d..f14e3bb 100644 Binary files a/docs/docsets/MockSwift.tgz and b/docs/docsets/MockSwift.tgz differ diff --git a/docs/index.html b/docs/index.html index 8bb37ef..0c3d61f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,7 +22,7 @@ MockSwift Docs - (94% documented) + (95% documented)

    @@ -135,29 +135,71 @@ Array

    + + + + + + + + + + + + + +
  • Installation
  • Usage
  • Documentation
  • -
  • Playgrounds
  • Contribution
  • License
  • @@ -256,25 +297,30 @@

    Features

    Actually MockSwift supports:

      -
    • Mocking +
    • Stub
        -
      • [x] protocol (methods, properties, subscripts)
      • -
      • [ ] class (v2)
      • -
      • [ ] struct (v2)
      • -
      • [ ] enum (v2)
      • +
      • [x] Protocol methods
      • +
      • [x] Protocol properties
      • +
      • [x] Protocol subscripts
      • +
      • [ ] Class
      • +
      • [ ] Struct
      • +
      • [ ] Enum
      • +
      • [x] Default values for types
    • -
    • Call verification +
    • Verify interactions
        -
      • [x] protocol (methods, properties, subscripts)
      • -
      • [ ] class (v2)
      • -
      • [ ] struct (v2)
      • -
      • [ ] enum (v2)
      • +
      • [x] Protocol methods
      • +
      • [x] Protocol properties
      • +
      • [x] Protocol subscripts
      • +
      • [ ] Class
      • +
      • [ ] Struct
      • +
      • [ ] Enum +_ Parameter matching
      • +
      • [x] Predicates
      • +
      • [x] Generics
    • -
    • [x] Generics
    • -
    • [x] Parameters matching
    • -
    • [x] Default values for Types

    CHANGELOG

    @@ -290,7 +336,7 @@

    Swift Package Manager

    let package = Package( name: "MyProject", dependencies: [ - .package(url: "https://github.com/leoture/MockSwift.git", from: "0.7.0") + .package(url: "https://github.com/leoture/MockSwift.git", from: "1.0.0") ], targets: [ .testTarget(name: "MyProjectTests", dependencies: ["MockSwift"]) @@ -298,6 +344,35 @@

    Swift Package Manager

    )

    Usage

    +

    Quick Look

    +
    class AwesomeTests: XCTestCase {
    +
    +  private var printer: Printer!
    +  @Mock private var userService: UserService
    +
    +  override func setUp() {
    +    printer = Printer(userService)
    +  }
    +
    +  func test_sayHello() {
    +    // Given
    +    given(userService).fetchUserName(of: "you").willReturn("my friend")
    +    given(userService).isConnected.get.willReturn(true)
    +    given(userService)[cache: .any()].set(.any()).willDoNothing()
    +
    +    // When
    +    let message = printer.sayHello(to: "you", from: "me")
    +
    +    // Then
    +    then(userService).fetchUserName(of: .any()).called()
    +    then(userService).isConnected.get.called(times: 1)
    +    then(userService)[cache: "you"].set("my friend").calledOnce()
    +
    +    XCTAssertEqual(message, "me: Hello my friend")
    +  }
    +}
    +
    +

    Details

    Suppose that you have a UserService protocol.

    struct User: Equatable {
    @@ -403,9 +478,14 @@ 

    Then

    then(service) {
       $0.fetch(identifier: "current").called(times: >=2)
     
    -  $0.fetch(identifier: =="").called(times: 0)
    +  $0.fetch(identifier: == "").called(times: 0)
     }
     
    + +

    You can go further and verify order of calls

    +
    let assertion = then(service).fetch(identifier: "current").called(times: >=2)
    +then(service).fetch(identifier: == "").called(times: 1, after: assertion)
    +

    Stubs

    In MockSwift, stubs are default values that are returned when no behaviours has been found.

    @@ -496,15 +576,6 @@

    Manually

    Documentation

    If you need more details about the API, you can check out our API documentation or our GitBook.

    -

    Playgrounds

    - -

    This project contains playgrounds that can help you experiment MockSwift .
    -To use playgrounds:

    - -
      -
    • open MockSwift.xcworkspace
    • -
    • build the MockSwiftPlayground scheme.
    • -

    Contribution

    Would you like to contribute to MockSwift? Please read our contributing guidelines and code of conduct.

    @@ -522,8 +593,8 @@

    Credits

    diff --git a/docs/search.json b/docs/search.json index 2a63ce0..92ce7bb 100644 --- a/docs/search.json +++ b/docs/search.json @@ -1 +1 @@ -{"Typealiases.html#/s:9MockSwift13ParameterTypea":{"name":"ParameterType","abstract":"

    Undocumented

    "},"Protocols/GlobalStub.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","abstract":"

    Creates a stub value of Self.

    ","parent_name":"GlobalStub"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP11descriptionSSvp":{"name":"description","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP14firstValidTimeSdvp":{"name":"firstValidTime","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP7isValidSbvp":{"name":"isValid","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/AnyPredicate.html#/s:9MockSwift12AnyPredicateP7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","abstract":"

    Check if an element satifies the predicate.

    ","parent_name":"AnyPredicate"},"Protocols/AnyPredicate.html#/s:9MockSwift12AnyPredicatePAASQRzrlE7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","parent_name":"AnyPredicate"},"Protocols/AnyPredicate.html":{"name":"AnyPredicate","abstract":"

    AnyPredicate represents a condition on an Any? element.

    "},"Protocols/Assertion.html":{"name":"Assertion","abstract":"

    Undocumented

    "},"Protocols/GlobalStub.html":{"name":"GlobalStub","abstract":"

    GlobalStub represents an entity able to give a stub value.

    "},"Functions.html#/s:9MockSwift5given_4file4lineAA5GivenCyxGx_s12StaticStringVSutlF":{"name":"given(_:file:line:)","abstract":"

    Creates a Given based on value.

    "},"Functions.html#/s:9MockSwift5given_4file4line_yx_s12StaticStringVSuyAA5GivenCyxGXEtlF":{"name":"given(_:file:line:_:)","abstract":"

    Call completion with a Given based on value.

    "},"Functions.html#/s:9MockSwift11interaction4withAA11InteractionCyxGx_tlF":{"name":"interaction(with:)","abstract":"

    Creates an Interaction based on value.

    "},"Functions.html#/s:9MockSwift2egoiyAA4StubCxm_xtlF":{"name":"=>(_:_:)","abstract":"

    Creates a Stub

    "},"Functions.html#/s:9MockSwift4then_4file4lineAA4ThenCyxGx_s12StaticStringVSutlF":{"name":"then(_:file:line:)","abstract":"

    Creates a Then based on value.

    "},"Functions.html#/s:9MockSwift4then_4file4line_yx_s12StaticStringVSuyAA4ThenCyxGXEtlF":{"name":"then(_:file:line:_:)","abstract":"

    Call completion with a Then based on value.

    "},"Functions.html#/s:9MockSwift3eeeopyAA9PredicateCyxGxRlzClF":{"name":"===(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    "},"Functions.html#/s:9MockSwift2eeopyAA9PredicateCyxGxSQRzlF":{"name":"==(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    "},"Functions.html#/s:9MockSwift1gopyAA9PredicateCyxGxSLRzlF":{"name":">(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    "},"Functions.html#/s:9MockSwift2geopyAA9PredicateCyxGxSLRzlF":{"name":">=(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    "},"Extensions/Bool.html#/s:Sb9MockSwiftE4stubSbyFZ":{"name":"stub()","abstract":"

    Creates a stub value of Bool.

    ","parent_name":"Bool"},"Extensions/Int.html#/s:Si9MockSwiftE4stubSiyFZ":{"name":"stub()","abstract":"

    Creates a stub value of Int.

    ","parent_name":"Int"},"Extensions/String.html#/s:SS9MockSwiftE4stubSSyFZ":{"name":"stub()","abstract":"

    Creates a stub value of String.

    ","parent_name":"String"},"Extensions/Array.html#/s:Sa9MockSwiftAA18StrategyIdentifierORszlE7defaultSayACGvpZ":{"name":"default","abstract":"

    Strategy alias of Stategies","parent_name":"Array"},"Extensions/Array.html":{"name":"Array"},"Extensions.html#/c:objc(cs)NSObject":{"name":"NSObject"},"Extensions.html#/s:s18BooleanLiteralTypea":{"name":"BooleanLiteralType"},"Extensions.html#/s:s18IntegerLiteralTypea":{"name":"IntegerLiteralType"},"Extensions.html#/s:s17StringLiteralTypea":{"name":"StringLiteralType"},"Extensions.html#/s:s16FloatLiteralTypea":{"name":"FloatLiteralType"},"Extensions/String.html":{"name":"String"},"Extensions/Int.html":{"name":"Int"},"Extensions/Bool.html":{"name":"Bool"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO5givenyA2CmF":{"name":"given","abstract":"

    Stragegy that return values from Given block

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO10localStubsyA2CmF":{"name":"localStubs","abstract":"

    Stragegy that return values local stubs

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO11globalStubsyA2CmF":{"name":"globalStubs","abstract":"

    Stragegy that return values global stubs

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html":{"name":"StrategyIdentifier","abstract":"

    Undocumented

    "},"Classes/Predicate.html#/s:9MockSwift9PredicateC11descriptionSSvp":{"name":"description","abstract":"

    Description of the Predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5match11description3any_ACyxGSSSg_xmSbxctFZ":{"name":"match(description:any:_:)","abstract":"

    Creates a Predicate<Input>.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5match11description3any4whenACyxGSSSg_xms7KeyPathCyxSbGtFZ":{"name":"match(description:any:when:)","abstract":"

    Creates a Predicate<Input>.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC3anyyACyxGxmFZ":{"name":"any(_:)","abstract":"

    Creates a Predicate<Input> able to match any value of type Input.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC3notyACyxGAEFZ":{"name":"not(_:)","abstract":"

    Creates a Predicate<Input> able to match any value of type Input not matched by an other predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5isNilACyqd__SgGylFZ":{"name":"isNil()","abstract":"

    Creates a Predicate<Input?> able to match nil.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","abstract":"

    Check if an element satifies the predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAARlzClE9identical2toACyxGx_tFZ":{"name":"identical(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAARlzClE2idyACyxGxFZ":{"name":"id(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASbRszlE6isTrueACySbGyFZ":{"name":"isTrue()","abstract":"

    Creates a Predicate<Bool> that can match any Bool equal to true

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASbRszlE7isFalseACySbGyFZ":{"name":"isFalse()","abstract":"

    Creates a Predicate<Bool> that can match any Bool equal to false

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASQRzlE6equals2toACyxGx_tFZ":{"name":"equals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASQRzlE2eqyACyxGxFZ":{"name":"eq(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE7greater4thanACyxGx_tFZ":{"name":"greater(than:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2gtyACyxGxFZ":{"name":"gt(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE19greaterThanOrEquals2toACyxGx_tFZ":{"name":"greaterThanOrEquals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2geyACyxGxFZ":{"name":"ge(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE4less4thanACyxGx_tFZ":{"name":"less(than:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2ltyACyxGxFZ":{"name":"lt(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE16lessThanOrEquals2toACyxGx_tFZ":{"name":"lessThanOrEquals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2leyACyxGxFZ":{"name":"le(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than or equal to value

    ","parent_name":"Predicate"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3set_4file4lineAA0C0CyytGx_s12StaticStringVSutF":{"name":"set(_:file:line:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Readable.html#/s:9MockSwift19VerifiableSubscriptC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/VerifiableSubscript/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read access only.

    ","parent_name":"VerifiableSubscript"},"Classes/VerifiableSubscript/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read and wirte access.

    ","parent_name":"VerifiableSubscript"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3setyAA0C0CyytGxF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Readable.html#/s:9MockSwift18VerifiablePropertyC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/VerifiableProperty/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read access only.

    ","parent_name":"VerifiableProperty"},"Classes/VerifiableProperty/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read and wirte access.

    ","parent_name":"VerifiableProperty"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC18receivedParametersSaySayypSgGGvp":{"name":"receivedParameters","abstract":"

    Return a list of all parameters’ list with whom the function was called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC9callCountSivp":{"name":"callCount","abstract":"

    Return the number of times that the function was called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC12disambiguate4withACyxGXDxm_tF":{"name":"disambiguate(with:)","abstract":"

    Used to disambiguate the ReturnType.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC6called5times5after4file4lineAA9Assertion_pAA9PredicateCySiG_AaI_pSgs12StaticStringVSutF":{"name":"called(times:after:file:line:)","abstract":"

    Checks that the function has been called a number of times corresponding to the predicate.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC6called5times5after4file4lineAA9Assertion_pSi_AaI_pSgs12StaticStringVSutF":{"name":"called(times:after:file:line:)","abstract":"

    Checks that the function has been called.

    ","parent_name":"Verifiable"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA10VerifiableCyqd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a Verifiable for function with parameters.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable8property4file4lineAA18VerifiablePropertyC8ReadableCy_qd__GSS_s12StaticStringVSutlF":{"name":"verifiable(property:file:line:)","abstract":"

    Creates a VerifiableProperty.Readable for property.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable8property4file4lineAA18VerifiablePropertyC8WritableCy_qd__GSS_s12StaticStringVSutlF":{"name":"verifiable(property:file:line:)","abstract":"

    Creates a VerifiableProperty.Writable for property.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA19VerifiableSubscriptC8ReadableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a VerifiableSubscript.Readable for a subscript.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA19VerifiableSubscriptC8WritableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a VerifiableSubscript.Writable for a subscript.

    ","parent_name":"Then"},"Classes/Stub.html#/s:9MockSwift4StubCyACxm_xtclufc":{"name":"init(_:_:)","abstract":"

    Creates a Stub

    ","parent_name":"Stub"},"Classes/Mock.html#/s:9MockSwift0A0C12wrappedValuexvp":{"name":"wrappedValue","abstract":"

    Returns self as a WrappedType.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0CACyxGycfc":{"name":"init()","abstract":"

    Creates a Mock<WrappedType>.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C6mocked_8functionyypSgd_SStF":{"name":"mocked(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C15mockedThrowable_8functionyypSgd_SStKF":{"name":"mockedThrowable(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C6mocked_8functionqd__ypSgd_SStlF":{"name":"mocked(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C15mockedThrowable_8functionqd__ypSgd_SStKlF":{"name":"mockedThrowable(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C8strategy5stubs_ACyxGSayAA18StrategyIdentifierOG_SayAA4StubCGyAA5GivenCyxGXEtcfc":{"name":"init(strategy:stubs:_:)","abstract":"

    Creates a Mock<WrappedType> with a custom configuration.

    ","parent_name":"Mock"},"Classes/Interaction.html#/s:9MockSwift11InteractionC5ended4file4lineys12StaticStringV_SutF":{"name":"ended(file:line:)","abstract":"

    Checks that the WrappedType value has no calls to check anymore.

    ","parent_name":"Interaction"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3set_4file4lineAA0C0CyytGx_s12StaticStringVSutF":{"name":"set(_:file:line:)","abstract":"

    Creates a Mockable for set method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Readable.html#/s:9MockSwift17MockableSubscriptC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned subcript.

    ","parent_name":"Readable"},"Classes/MockableSubscript/Readable.html":{"name":"Readable","abstract":"

    Represents a subcript call that returns ReturnType and can be stubbed with read access only.

    ","parent_name":"MockableSubscript"},"Classes/MockableSubscript/Writable.html":{"name":"Writable","abstract":"

    Represents a subcript call that returns ReturnType and can be stubbed with read and wirte access.

    ","parent_name":"MockableSubscript"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3setyAA0C0CyytGxF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Readable.html#/s:9MockSwift16MockablePropertyC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/MockableProperty/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be stubbed with read access only.

    ","parent_name":"MockableProperty"},"Classes/MockableProperty/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be stubbed with read and wirte access.

    ","parent_name":"MockableProperty"},"Classes/Mockable.html#/s:9MockSwift8MockableC10willReturnyyxF":{"name":"willReturn(_:)","abstract":"

    Registers a return value.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC10willReturnyyxd_tF":{"name":"willReturn(_:)","abstract":"

    Registers return values.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC12disambiguate4withACyxGXDxm_tF":{"name":"disambiguate(with:)","abstract":"

    Used to disambiguate the ReturnType.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC4willyyxSayypGKcF":{"name":"will(_:)","abstract":"

    Registers a block to excecute.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC9willThrowyys5Error_pF":{"name":"willThrow(_:)","abstract":"

    Registers an error.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC9willThrowyys5Error_pd_tF":{"name":"willThrow(_:)","abstract":"

    Registers errors.

    ","parent_name":"Mockable"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA8MockableCyqd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a Mockable for function with parameters.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable8property4file4lineAA16MockablePropertyC8ReadableCy_qd__GSS_s12StaticStringVSutlF":{"name":"mockable(property:file:line:)","abstract":"

    Creates a MockableProperty.Readable for property.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable8property4file4lineAA16MockablePropertyC8WritableCy_qd__GSS_s12StaticStringVSutlF":{"name":"mockable(property:file:line:)","abstract":"

    Creates a MockableProperty.Writable for property.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA17MockableSubscriptC8ReadableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a MockableSubscript.Readable for a subcript.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA17MockableSubscriptC8WritableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a MockableSubscript.Writable for a subcript.

    ","parent_name":"Given"},"Classes/Given.html":{"name":"Given","abstract":"

    Given is used to define behaviours.

    "},"Classes/Mockable.html":{"name":"Mockable","abstract":"

    Represents a function call that returns ReturnType and can be stubbed.

    "},"Classes/MockableProperty.html":{"name":"MockableProperty","abstract":"

    Represents a property call that can be stubbed.

    "},"Classes/MockableSubscript.html":{"name":"MockableSubscript","abstract":"

    Represents a subcript call that can be stubbed.

    "},"Classes/Interaction.html":{"name":"Interaction","abstract":"

    Interaction is used to verify method calls.

    "},"Classes/Mock.html":{"name":"Mock","abstract":"

    Undocumented

    "},"Classes/Stub.html":{"name":"Stub","abstract":"

    Stub represents a paire of type and a value of this type

    "},"Classes/Then.html":{"name":"Then","abstract":"

    Then is used to verify method calls.

    "},"Classes/Verifiable.html":{"name":"Verifiable","abstract":"

    Represents a function call that returns ReturnType and can be checked.

    "},"Classes/VerifiableProperty.html":{"name":"VerifiableProperty","abstract":"

    Represents a property call that can be checked.

    "},"Classes/VerifiableSubscript.html":{"name":"VerifiableSubscript","abstract":"

    Represents a property call that can be checked.

    "},"Classes/Predicate.html":{"name":"Predicate","abstract":"

    Predicate represents a condition on an Input.

    "},"Classes.html":{"name":"Classes","abstract":"

    The following classes are available globally.

    "},"Enums.html":{"name":"Enumerations","abstract":"

    The following enumerations are available globally.

    "},"Extensions.html":{"name":"Extensions","abstract":"

    The following extensions are available globally.

    "},"Functions.html":{"name":"Functions","abstract":"

    The following functions are available globally.

    "},"Protocols.html":{"name":"Protocols","abstract":"

    The following protocols are available globally.

    "},"Typealiases.html":{"name":"Type Aliases","abstract":"

    The following type aliases are available globally.

    "}} \ No newline at end of file +{"Typealiases.html#/s:9MockSwift13ParameterTypea":{"name":"ParameterType","abstract":"

    Undocumented

    "},"Protocols/GlobalStub.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","abstract":"

    Creates a stub value of Self.

    ","parent_name":"GlobalStub"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP11descriptionSSvp":{"name":"description","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP14firstValidTimeSdvp":{"name":"firstValidTime","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/Assertion.html#/s:9MockSwift9AssertionP7isValidSbvp":{"name":"isValid","abstract":"

    Undocumented

    ","parent_name":"Assertion"},"Protocols/AnyPredicate.html#/s:9MockSwift12AnyPredicateP7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","abstract":"

    Check if an element satifies the predicate.

    ","parent_name":"AnyPredicate"},"Protocols/AnyPredicate.html#/s:9MockSwift12AnyPredicatePAASQRzrlE7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","parent_name":"AnyPredicate"},"Protocols/AnyPredicate.html":{"name":"AnyPredicate","abstract":"

    AnyPredicate represents a condition on an Any? element.

    "},"Protocols/Assertion.html":{"name":"Assertion","abstract":"

    Undocumented

    "},"Protocols/GlobalStub.html":{"name":"GlobalStub","abstract":"

    GlobalStub represents an entity able to give a stub value.

    "},"Functions.html#/s:9MockSwift5given_4file4lineAA5GivenCyxGx_s12StaticStringVSutlF":{"name":"given(_:file:line:)","abstract":"

    Creates a Given based on value.

    "},"Functions.html#/s:9MockSwift5given_4file4line_yx_s12StaticStringVSuyAA5GivenCyxGXEtlF":{"name":"given(_:file:line:_:)","abstract":"

    Call completion with a Given based on value.

    "},"Functions.html#/s:9MockSwift11interaction4withAA11InteractionCyxGx_tlF":{"name":"interaction(with:)","abstract":"

    Creates an Interaction based on value.

    "},"Functions.html#/s:9MockSwift2egoiyAA4StubCxm_xtlF":{"name":"=>(_:_:)","abstract":"

    Creates a Stub

    "},"Functions.html#/s:9MockSwift4then_4file4lineAA4ThenCyxGx_s12StaticStringVSutlF":{"name":"then(_:file:line:)","abstract":"

    Creates a Then based on value.

    "},"Functions.html#/s:9MockSwift4then_4file4line_yx_s12StaticStringVSuyAA4ThenCyxGXEtlF":{"name":"then(_:file:line:_:)","abstract":"

    Call completion with a Then based on value.

    "},"Functions.html#/s:9MockSwift3eeeopyAA9PredicateCyxGxRlzClF":{"name":"===(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    "},"Functions.html#/s:9MockSwift2eeopyAA9PredicateCyxGxSQRzlF":{"name":"==(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    "},"Functions.html#/s:9MockSwift1gopyAA9PredicateCyxGxSLRzlF":{"name":">(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    "},"Functions.html#/s:9MockSwift2geopyAA9PredicateCyxGxSLRzlF":{"name":">=(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    "},"Extensions/NSNumber.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"NSNumber"},"Extensions/Decimal.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"Decimal"},"Extensions/Float80.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"Float80"},"Extensions/Float.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"Float"},"Extensions/Double.html#/s:9MockSwift10GlobalStubP4stubxyFZ":{"name":"stub()","parent_name":"Double"},"Extensions/Array.html#/s:Sa9MockSwiftAA18StrategyIdentifierORszlE7defaultSayACGvpZ":{"name":"default","abstract":"

    Strategy alias of Stategies","parent_name":"Array"},"Extensions/Array.html":{"name":"Array"},"Extensions.html#/c:objc(cs)NSObject":{"name":"NSObject"},"Extensions.html#/s:s18BooleanLiteralTypea":{"name":"BooleanLiteralType"},"Extensions.html#/s:s18IntegerLiteralTypea":{"name":"IntegerLiteralType"},"Extensions.html#/s:s17StringLiteralTypea":{"name":"StringLiteralType"},"Extensions.html#/s:s16FloatLiteralTypea":{"name":"FloatLiteralType"},"Extensions.html#/s:Sq":{"name":"Optional"},"Extensions.html#/s:Sb":{"name":"Bool"},"Extensions.html#/s:Si":{"name":"Int"},"Extensions/Double.html":{"name":"Double"},"Extensions/Float.html":{"name":"Float"},"Extensions/Float80.html":{"name":"Float80"},"Extensions/Decimal.html":{"name":"Decimal"},"Extensions/NSNumber.html":{"name":"NSNumber"},"Extensions.html#/s:SS":{"name":"String"},"Extensions.html#/s:Ss":{"name":"Substring"},"Extensions.html#/s:s12StaticStringV":{"name":"StaticString"},"Extensions.html#/s:s10ArraySliceV":{"name":"ArraySlice"},"Extensions.html#/s:s15ContiguousArrayV":{"name":"ContiguousArray"},"Extensions.html#/s:10Foundation9IndexPathV":{"name":"IndexPath"},"Extensions.html#/s:Sh":{"name":"Set"},"Extensions.html#/s:SD":{"name":"Dictionary"},"Extensions.html#/s:s13KeyValuePairsV":{"name":"KeyValuePairs"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO5givenyA2CmF":{"name":"given","abstract":"

    Stragegy that return values from Given block

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO10localStubsyA2CmF":{"name":"localStubs","abstract":"

    Stragegy that return values local stubs

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html#/s:9MockSwift18StrategyIdentifierO11globalStubsyA2CmF":{"name":"globalStubs","abstract":"

    Stragegy that return values global stubs

    ","parent_name":"StrategyIdentifier"},"Enums/StrategyIdentifier.html":{"name":"StrategyIdentifier","abstract":"

    Undocumented

    "},"Classes/Predicate.html#/s:9MockSwift9PredicateC11descriptionSSvp":{"name":"description","abstract":"

    Description of the Predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5match11description3any_ACyxGSSSg_xmSbxctFZ":{"name":"match(description:any:_:)","abstract":"

    Creates a Predicate<Input>.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC3anyyACyxGxmFZ":{"name":"any(_:)","abstract":"

    Creates a Predicate<Input> able to match any value of type Input.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC3notyACyxGAEFZ":{"name":"not(_:)","abstract":"

    Creates a Predicate<Input> able to match any value of type Input not matched by an other predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC5isNilACyqd__SgGylFZ":{"name":"isNil()","abstract":"

    Creates a Predicate<Input?> able to match nil.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateC7satisfy2bySbypSg_tF":{"name":"satisfy(by:)","abstract":"

    Check if an element satifies the predicate.

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAARlzClE9identical2toACyxGx_tFZ":{"name":"identical(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAARlzClE2idyACyxGxFZ":{"name":"id(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements identical to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASbRszlE6isTrueACySbGyFZ":{"name":"isTrue()","abstract":"

    Creates a Predicate<Bool> that can match any Bool equal to true

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASbRszlE7isFalseACySbGyFZ":{"name":"isFalse()","abstract":"

    Creates a Predicate<Bool> that can match any Bool equal to false

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASQRzlE6equals2toACyxGx_tFZ":{"name":"equals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASQRzlE2eqyACyxGxFZ":{"name":"eq(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE7greater4thanACyxGx_tFZ":{"name":"greater(than:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2gtyACyxGxFZ":{"name":"gt(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE19greaterThanOrEquals2toACyxGx_tFZ":{"name":"greaterThanOrEquals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2geyACyxGxFZ":{"name":"ge(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements greater than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE4less4thanACyxGx_tFZ":{"name":"less(than:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2ltyACyxGxFZ":{"name":"lt(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE16lessThanOrEquals2toACyxGx_tFZ":{"name":"lessThanOrEquals(to:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than or equal to value

    ","parent_name":"Predicate"},"Classes/Predicate.html#/s:9MockSwift9PredicateCAASLRzlE2leyACyxGxFZ":{"name":"le(_:)","abstract":"

    Creates a Predicate<Input> that can match any elements less than or equal to value

    ","parent_name":"Predicate"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Writable.html#/s:9MockSwift19VerifiableSubscriptC8WritableC3set_4file4lineAA0C0CyytGx_s12StaticStringVSutF":{"name":"set(_:file:line:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableSubscript/Readable.html#/s:9MockSwift19VerifiableSubscriptC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/VerifiableSubscript/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read access only.

    ","parent_name":"VerifiableSubscript"},"Classes/VerifiableSubscript/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read and wirte access.

    ","parent_name":"VerifiableSubscript"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Writable.html#/s:9MockSwift18VerifiablePropertyC8WritableC3setyAA0C0CyytGxF":{"name":"set(_:)","abstract":"

    Creates a Verifiable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/VerifiableProperty/Readable.html#/s:9MockSwift18VerifiablePropertyC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Verifiable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/VerifiableProperty/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read access only.

    ","parent_name":"VerifiableProperty"},"Classes/VerifiableProperty/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be checked with read and wirte access.

    ","parent_name":"VerifiableProperty"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC18receivedParametersSaySayypSgGGvp":{"name":"receivedParameters","abstract":"

    Return a list of all parameters’ list with whom the function was called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC9callCountSivp":{"name":"callCount","abstract":"

    Return the number of times that the function was called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC12disambiguate4withACyxGXDxm_tF":{"name":"disambiguate(with:)","abstract":"

    Used to disambiguate the ReturnType.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC6called5times5after4file4lineAA9Assertion_pAA9PredicateCySiG_AaI_pSgs12StaticStringVSutF":{"name":"called(times:after:file:line:)","abstract":"

    Checks that the function has been called a number of times corresponding to the predicate.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC6called5times5after4file4lineAA9Assertion_pSi_AaI_pSgs12StaticStringVSutF":{"name":"called(times:after:file:line:)","abstract":"

    Checks that the function has been called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC11neverCalled5after4file4lineAA9Assertion_pAaH_pSg_s12StaticStringVSutF":{"name":"neverCalled(after:file:line:)","abstract":"

    Checks that the function has never been called.

    ","parent_name":"Verifiable"},"Classes/Verifiable.html#/s:9MockSwift10VerifiableC10calledOnce5after4file4lineAA9Assertion_pAaH_pSg_s12StaticStringVSutF":{"name":"calledOnce(after:file:line:)","abstract":"

    Checks that the function has been called once.

    ","parent_name":"Verifiable"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA10VerifiableCyqd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a Verifiable for function with parameters.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable8property4file4lineAA18VerifiablePropertyC8ReadableCy_qd__GSS_s12StaticStringVSutlF":{"name":"verifiable(property:file:line:)","abstract":"

    Creates a VerifiableProperty.Readable for property.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable8property4file4lineAA18VerifiablePropertyC8WritableCy_qd__GSS_s12StaticStringVSutlF":{"name":"verifiable(property:file:line:)","abstract":"

    Creates a VerifiableProperty.Writable for property.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA19VerifiableSubscriptC8ReadableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a VerifiableSubscript.Readable for a subscript.

    ","parent_name":"Then"},"Classes/Then.html#/s:9MockSwift4ThenC10verifiable_8function4file4lineAA19VerifiableSubscriptC8WritableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"verifiable(_:function:file:line:)","abstract":"

    Creates a VerifiableSubscript.Writable for a subscript.

    ","parent_name":"Then"},"Classes/Stub.html#/s:9MockSwift4StubCyACxm_xtclufc":{"name":"init(_:_:)","abstract":"

    Creates a Stub

    ","parent_name":"Stub"},"Classes/Mock.html#/s:9MockSwift0A0C12wrappedValuexvp":{"name":"wrappedValue","abstract":"

    Returns self as a WrappedType.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0CACyxGycfc":{"name":"init()","abstract":"

    Creates a Mock<WrappedType>.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C6mocked_8functionyypSgd_SStF":{"name":"mocked(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C15mockedThrowable_8functionyypSgd_SStKF":{"name":"mockedThrowable(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C6mocked_8functionqd__ypSgd_SStlF":{"name":"mocked(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C15mockedThrowable_8functionqd__ypSgd_SStKlF":{"name":"mockedThrowable(_:function:)","abstract":"

    Records the function call with parameters and executes the predefined behavior.

    ","parent_name":"Mock"},"Classes/Mock.html#/s:9MockSwift0A0C8strategy5stubs_ACyxGSayAA18StrategyIdentifierOG_SayAA4StubCGyAA5GivenCyxGXEtcfc":{"name":"init(strategy:stubs:_:)","abstract":"

    Creates a Mock<WrappedType> with a custom configuration.

    ","parent_name":"Mock"},"Classes/Interaction.html#/s:9MockSwift11InteractionC5ended4file4lineys12StaticStringV_SutF":{"name":"ended(file:line:)","abstract":"

    Checks that the WrappedType value has no calls to check anymore.

    ","parent_name":"Interaction"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Writable.html#/s:9MockSwift17MockableSubscriptC8WritableC3set_4file4lineAA0C0CyytGx_s12StaticStringVSutF":{"name":"set(_:file:line:)","abstract":"

    Creates a Mockable for set method of the concerned subcript.

    ","parent_name":"Writable"},"Classes/MockableSubscript/Readable.html#/s:9MockSwift17MockableSubscriptC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned subcript.

    ","parent_name":"Readable"},"Classes/MockableSubscript/Readable.html":{"name":"Readable","abstract":"

    Represents a subcript call that returns ReturnType and can be stubbed with read access only.

    ","parent_name":"MockableSubscript"},"Classes/MockableSubscript/Writable.html":{"name":"Writable","abstract":"

    Represents a subcript call that returns ReturnType and can be stubbed with read and wirte access.

    ","parent_name":"MockableSubscript"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3setyAA0C0CyytGAA9PredicateCyxGF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Writable.html#/s:9MockSwift16MockablePropertyC8WritableC3setyAA0C0CyytGxF":{"name":"set(_:)","abstract":"

    Creates a Mockable for set method of the concerned property.

    ","parent_name":"Writable"},"Classes/MockableProperty/Readable.html#/s:9MockSwift16MockablePropertyC8ReadableC3getAA0C0CyxGvp":{"name":"get","abstract":"

    Creates a Mockable for get method of the concerned property.

    ","parent_name":"Readable"},"Classes/MockableProperty/Readable.html":{"name":"Readable","abstract":"

    Represents a property call that returns ReturnType and can be stubbed with read access only.

    ","parent_name":"MockableProperty"},"Classes/MockableProperty/Writable.html":{"name":"Writable","abstract":"

    Represents a property call that returns ReturnType and can be stubbed with read and wirte access.

    ","parent_name":"MockableProperty"},"Classes/Mockable.html#/s:9MockSwift8MockableC10willReturnyyxF":{"name":"willReturn(_:)","abstract":"

    Registers a return value.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC10willReturnyyxd_tF":{"name":"willReturn(_:)","abstract":"

    Registers return values.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC12disambiguate4withACyxGXDxm_tF":{"name":"disambiguate(with:)","abstract":"

    Used to disambiguate the ReturnType.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC4willyyxSayypGKcF":{"name":"will(_:)","abstract":"

    Registers a block to excecute.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC9willThrowyys5Error_pF":{"name":"willThrow(_:)","abstract":"

    Registers an error.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableC9willThrowyys5Error_pd_tF":{"name":"willThrow(_:)","abstract":"

    Registers errors.

    ","parent_name":"Mockable"},"Classes/Mockable.html#/s:9MockSwift8MockableCAAytRszlE13willDoNothingyyF":{"name":"willDoNothing()","abstract":"

    Registers an empty block to excecute.

    ","parent_name":"Mockable"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA8MockableCyqd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a Mockable for function with parameters.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable8property4file4lineAA16MockablePropertyC8ReadableCy_qd__GSS_s12StaticStringVSutlF":{"name":"mockable(property:file:line:)","abstract":"

    Creates a MockableProperty.Readable for property.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable8property4file4lineAA16MockablePropertyC8WritableCy_qd__GSS_s12StaticStringVSutlF":{"name":"mockable(property:file:line:)","abstract":"

    Creates a MockableProperty.Writable for property.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA17MockableSubscriptC8ReadableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a MockableSubscript.Readable for a subcript.

    ","parent_name":"Given"},"Classes/Given.html#/s:9MockSwift5GivenC8mockable_8function4file4lineAA17MockableSubscriptC8WritableCy_qd__GypSgd_SSs12StaticStringVSutlF":{"name":"mockable(_:function:file:line:)","abstract":"

    Creates a MockableSubscript.Writable for a subcript.

    ","parent_name":"Given"},"Classes/Given.html":{"name":"Given","abstract":"

    Given is used to define behaviours.

    "},"Classes/Mockable.html":{"name":"Mockable","abstract":"

    Represents a function call that returns ReturnType and can be stubbed.

    "},"Classes/MockableProperty.html":{"name":"MockableProperty","abstract":"

    Represents a property call that can be stubbed.

    "},"Classes/MockableSubscript.html":{"name":"MockableSubscript","abstract":"

    Represents a subcript call that can be stubbed.

    "},"Classes/Interaction.html":{"name":"Interaction","abstract":"

    Interaction is used to verify method calls.

    "},"Classes/Mock.html":{"name":"Mock","abstract":"

    Undocumented

    "},"Classes/Stub.html":{"name":"Stub","abstract":"

    Stub represents a paire of type and a value of this type

    "},"Classes/Then.html":{"name":"Then","abstract":"

    Then is used to verify method calls.

    "},"Classes/Verifiable.html":{"name":"Verifiable","abstract":"

    Represents a function call that returns ReturnType and can be checked.

    "},"Classes/VerifiableProperty.html":{"name":"VerifiableProperty","abstract":"

    Represents a property call that can be checked.

    "},"Classes/VerifiableSubscript.html":{"name":"VerifiableSubscript","abstract":"

    Represents a property call that can be checked.

    "},"Classes/Predicate.html":{"name":"Predicate","abstract":"

    Predicate represents a condition on an Input.

    "},"Classes.html":{"name":"Classes","abstract":"

    The following classes are available globally.

    "},"Enums.html":{"name":"Enumerations","abstract":"

    The following enumerations are available globally.

    "},"Extensions.html":{"name":"Extensions","abstract":"

    The following extensions are available globally.

    "},"Functions.html":{"name":"Functions","abstract":"

    The following functions are available globally.

    "},"Protocols.html":{"name":"Protocols","abstract":"

    The following protocols are available globally.

    "},"Typealiases.html":{"name":"Type Aliases","abstract":"

    The following type aliases are available globally.

    "}} \ No newline at end of file