How to use PropertyGetterDeclaration class

Best Mockingbird code snippet using PropertyGetterDeclaration

MoviesTests-MoviesMocks.generated.swift

Source:MoviesTests-MoviesMocks.generated.swift Github

copy

Full Screen

...32 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])33 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }34 // MARK: Mocked presenter35 public var `presenter`: Movies.HomeDetailPresenterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }36 public func getPresenter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailPresenterProtocol?, Movies.HomeDetailPresenterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }37 public func setPresenter(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailPresenterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailPresenterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }38 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {39 Mockingbird.checkVersion(for: self)40 self.sourceLocation = sourceLocation41 }42}43/// Returns a concrete mock of `HomeDetailInteractorProtocol`.44public func mock(_ type: Movies.HomeDetailInteractorProtocol.Protocol, file: StaticString = #file, line: UInt = #line) -> HomeDetailInteractorProtocolMock {45 return HomeDetailInteractorProtocolMock(sourceLocation: Mockingbird.SourceLocation(file, line))46}47// MARK: - Mocked HomeDetailInteractor48public final class HomeDetailInteractorMock: Movies.HomeDetailInteractor, Mockingbird.Mock {49 static let staticMock = Mockingbird.StaticMock()50 public let mockingContext = Mockingbird.MockingContext()51 public let stubbingContext = Mockingbird.StubbingContext()52 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])53 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }54 // MARK: Mocked presenter55 override public var `presenter`: Movies.HomeDetailPresenterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }56 public func getPresenter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailPresenterProtocol?, Movies.HomeDetailPresenterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }57 public func setPresenter(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailPresenterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailPresenterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }58 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {59 super.init()60 Mockingbird.checkVersion(for: self)61 self.sourceLocation = sourceLocation62 }63}64/// Returns a concrete mock of `HomeDetailInteractor`.65public func mock(_ type: Movies.HomeDetailInteractor.Type, file: StaticString = #file, line: UInt = #line) -> HomeDetailInteractorMock {66 return HomeDetailInteractorMock(sourceLocation: Mockingbird.SourceLocation(file, line))67}68// MARK: - Mocked HomeDetailPresenterProtocol69public final class HomeDetailPresenterProtocolMock: Movies.HomeDetailPresenterProtocol, Mockingbird.Mock {70 static let staticMock = Mockingbird.StaticMock()71 public let mockingContext = Mockingbird.MockingContext()72 public let stubbingContext = Mockingbird.StubbingContext()73 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])74 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }75 // MARK: Mocked interactor76 public var `interactor`: Movies.HomeDetailInteractorProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }77 public func getInteractor() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailInteractorProtocol?, Movies.HomeDetailInteractorProtocol?> { fatalError("See 'Thunk Pruning' in the README") }78 public func setInteractor(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailInteractorProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailInteractorProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }79 // MARK: Mocked movie80 public var `movie`: Movies.Movie { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }81 public func getMovie() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.Movie, Movies.Movie> { fatalError("See 'Thunk Pruning' in the README") }82 public func setMovie(_ newValue: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.Movie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }83 // MARK: Mocked router84 public var `router`: Movies.HomeDetailRouterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }85 public func getRouter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailRouterProtocol?, Movies.HomeDetailRouterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }86 public func setRouter(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailRouterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailRouterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }87 // MARK: Mocked view88 public var `view`: Movies.HomeDetailViewProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }89 public func getView() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailViewProtocol?, Movies.HomeDetailViewProtocol?> { fatalError("See 'Thunk Pruning' in the README") }90 public func setView(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailViewProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailViewProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }91 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {92 Mockingbird.checkVersion(for: self)93 self.sourceLocation = sourceLocation94 }95}96/// Returns a concrete mock of `HomeDetailPresenterProtocol`.97public func mock(_ type: Movies.HomeDetailPresenterProtocol.Protocol, file: StaticString = #file, line: UInt = #line) -> HomeDetailPresenterProtocolMock {98 return HomeDetailPresenterProtocolMock(sourceLocation: Mockingbird.SourceLocation(file, line))99}100// MARK: - Mocked HomeDetailPresenter101public final class HomeDetailPresenterMock: Movies.HomeDetailPresenter, Mockingbird.Mock {102 static let staticMock = Mockingbird.StaticMock()103 public let mockingContext = Mockingbird.MockingContext()104 public let stubbingContext = Mockingbird.StubbingContext()105 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])106 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }107 public enum InitializerProxy {108 public static func initialize(`movie`: Movies.Movie, __file: StaticString = #file, __line: UInt = #line) -> HomeDetailPresenterMock { fatalError("See 'Thunk Pruning' in the README") }109 }110 // MARK: Mocked interactor111 override public var `interactor`: Movies.HomeDetailInteractorProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }112 public func getInteractor() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailInteractorProtocol?, Movies.HomeDetailInteractorProtocol?> { fatalError("See 'Thunk Pruning' in the README") }113 public func setInteractor(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailInteractorProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailInteractorProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }114 // MARK: Mocked movie115 override public var `movie`: Movies.Movie { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }116 public func getMovie() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.Movie, Movies.Movie> { fatalError("See 'Thunk Pruning' in the README") }117 public func setMovie(_ newValue: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.Movie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }118 // MARK: Mocked router119 override public var `router`: Movies.HomeDetailRouterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }120 public func getRouter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailRouterProtocol?, Movies.HomeDetailRouterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }121 public func setRouter(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailRouterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailRouterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }122 // MARK: Mocked view123 override public var `view`: Movies.HomeDetailViewProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }124 public func getView() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailViewProtocol?, Movies.HomeDetailViewProtocol?> { fatalError("See 'Thunk Pruning' in the README") }125 public func setView(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailViewProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailViewProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }126 // MARK: Mocked init(`movie`: Movies.Movie)127 public required override init(`movie`: Movies.Movie) { fatalError("See 'Thunk Pruning' in the README") }128}129/// Returns an abstract mock which should be initialized using `mock(HomeDetailPresenter.self).initialize(…)`.130public func mock(_ type: Movies.HomeDetailPresenter.Type, file: StaticString = #file, line: UInt = #line) -> HomeDetailPresenterMock.InitializerProxy.Type {131 return HomeDetailPresenterMock.InitializerProxy.self132}133// MARK: - Mocked HomeDetailRouterProtocol134public final class HomeDetailRouterProtocolMock: Movies.HomeDetailRouterProtocol, Mockingbird.Mock {135 static let staticMock = Mockingbird.StaticMock()136 public let mockingContext = Mockingbird.MockingContext()137 public let stubbingContext = Mockingbird.StubbingContext()138 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])139 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }140 // MARK: Mocked entry141 public var `entry`: Movies.EntryPointHomeDetail? { get { fatalError("See 'Thunk Pruning' in the README") } }142 public func getEntry() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.EntryPointHomeDetail?, Movies.EntryPointHomeDetail?> { fatalError("See 'Thunk Pruning' in the README") }143 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {144 Mockingbird.checkVersion(for: self)145 self.sourceLocation = sourceLocation146 }147 // MARK: Mocked `start`(`movie`: Movies.Movie)148 public func `start`(`movie`: Movies.Movie) -> Movies.HomeDetailRouterProtocol { fatalError("See 'Thunk Pruning' in the README") }149 public func `start`(`movie`: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.Movie) -> Movies.HomeDetailRouterProtocol, Movies.HomeDetailRouterProtocol> { fatalError("See 'Thunk Pruning' in the README") }150}151/// Returns a concrete mock of `HomeDetailRouterProtocol`.152public func mock(_ type: Movies.HomeDetailRouterProtocol.Protocol, file: StaticString = #file, line: UInt = #line) -> HomeDetailRouterProtocolMock {153 return HomeDetailRouterProtocolMock(sourceLocation: Mockingbird.SourceLocation(file, line))154}155// MARK: - Mocked HomeDetailRouter156public final class HomeDetailRouterMock: Movies.HomeDetailRouter, Mockingbird.Mock {157 static let staticMock = Mockingbird.StaticMock()158 public let mockingContext = Mockingbird.MockingContext()159 public let stubbingContext = Mockingbird.StubbingContext()160 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])161 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }162 // MARK: Mocked entry163 override public var `entry`: Movies.EntryPointHomeDetail? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }164 public func getEntry() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.EntryPointHomeDetail?, Movies.EntryPointHomeDetail?> { fatalError("See 'Thunk Pruning' in the README") }165 public func setEntry(_ newValue: @escaping @autoclosure () -> Movies.EntryPointHomeDetail?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.EntryPointHomeDetail?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }166 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {167 super.init()168 Mockingbird.checkVersion(for: self)169 self.sourceLocation = sourceLocation170 }171 // MARK: Mocked `start`(`movie`: Movies.Movie)172 public override func `start`(`movie`: Movies.Movie) -> Movies.HomeDetailRouterProtocol { fatalError("See 'Thunk Pruning' in the README") }173 public func `start`(`movie`: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.Movie) -> Movies.HomeDetailRouterProtocol, Movies.HomeDetailRouterProtocol> { fatalError("See 'Thunk Pruning' in the README") }174}175/// Returns a concrete mock of `HomeDetailRouter`.176public func mock(_ type: Movies.HomeDetailRouter.Type, file: StaticString = #file, line: UInt = #line) -> HomeDetailRouterMock {177 return HomeDetailRouterMock(sourceLocation: Mockingbird.SourceLocation(file, line))178}179// MARK: - Mocked HomeDetailViewController180public final class HomeDetailViewControllerMock: Movies.HomeDetailViewController, Mockingbird.Mock {181 static let staticMock = Mockingbird.StaticMock()182 public let mockingContext = Mockingbird.MockingContext()183 public let stubbingContext = Mockingbird.StubbingContext()184 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])185 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }186 public enum InitializerProxy {187 public static func initialize(`coder`: NSCoder, __file: StaticString = #file, __line: UInt = #line) -> HomeDetailViewControllerMock? { fatalError("See 'Thunk Pruning' in the README") }188 public static func initialize(`nibName` `nibNameOrNil`: String?, `bundle` `nibBundleOrNil`: Bundle?, __file: StaticString = #file, __line: UInt = #line) -> HomeDetailViewControllerMock { fatalError("See 'Thunk Pruning' in the README") }189 }190 // MARK: Mocked homePageMovie191 override public var `homePageMovie`: UIKit.UILabel! { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }192 public func getHomePageMovie() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UIKit.UILabel, UIKit.UILabel> { fatalError("See 'Thunk Pruning' in the README") }193 public func setHomePageMovie(_ newValue: @escaping @autoclosure () -> UIKit.UILabel) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UIKit.UILabel) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }194 // MARK: Mocked overviewMovie195 override public var `overviewMovie`: UIKit.UILabel! { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }196 public func getOverviewMovie() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UIKit.UILabel, UIKit.UILabel> { fatalError("See 'Thunk Pruning' in the README") }197 public func setOverviewMovie(_ newValue: @escaping @autoclosure () -> UIKit.UILabel) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UIKit.UILabel) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }198 // MARK: Mocked posterPath199 override public var `posterPath`: UIImageView! { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }200 public func getPosterPath() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UIImageView, UIImageView> { fatalError("See 'Thunk Pruning' in the README") }201 public func setPosterPath(_ newValue: @escaping @autoclosure () -> UIImageView) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UIImageView) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }202 // MARK: Mocked presenter203 override public var `presenter`: Movies.HomeDetailPresenterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }204 public func getPresenter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailPresenterProtocol?, Movies.HomeDetailPresenterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }205 public func setPresenter(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailPresenterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailPresenterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }206 // MARK: Mocked releaseDateMovie207 override public var `releaseDateMovie`: UIKit.UILabel! { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }208 public func getReleaseDateMovie() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UIKit.UILabel, UIKit.UILabel> { fatalError("See 'Thunk Pruning' in the README") }209 public func setReleaseDateMovie(_ newValue: @escaping @autoclosure () -> UIKit.UILabel) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UIKit.UILabel) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }210 // MARK: Mocked titleMovie211 override public var `titleMovie`: UIKit.UILabel! { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }212 public func getTitleMovie() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UIKit.UILabel, UIKit.UILabel> { fatalError("See 'Thunk Pruning' in the README") }213 public func setTitleMovie(_ newValue: @escaping @autoclosure () -> UIKit.UILabel) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UIKit.UILabel) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }214 // MARK: Mocked voteAverageMovie215 override public var `voteAverageMovie`: UIKit.UILabel! { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }216 public func getVoteAverageMovie() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UIKit.UILabel, UIKit.UILabel> { fatalError("See 'Thunk Pruning' in the README") }217 public func setVoteAverageMovie(_ newValue: @escaping @autoclosure () -> UIKit.UILabel) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UIKit.UILabel) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }218 // MARK: Mocked `cleanDataMovie`()219 public override func `cleanDataMovie`() -> Void { fatalError("See 'Thunk Pruning' in the README") }220 public func `cleanDataMovie`() -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, () -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }221 // MARK: Mocked `viewDidLoad`()222 public override func `viewDidLoad`() -> Void { fatalError("See 'Thunk Pruning' in the README") }223 public func `viewDidLoad`() -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, () -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }224 // MARK: Mocked `loadMovie`(`movie`: Movies.Movie)225 public override func `loadMovie`(`movie`: Movies.Movie) -> Void { fatalError("See 'Thunk Pruning' in the README") }226 public func `loadMovie`(`movie`: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.Movie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }227 // MARK: Mocked init?(`coder`: NSCoder)228 public required init?(`coder`: NSCoder) { fatalError("See 'Thunk Pruning' in the README") }229 // MARK: Mocked init(`nibName` `nibNameOrNil`: String?, `bundle` `nibBundleOrNil`: Bundle?)230 public required override init(`nibName` `nibNameOrNil`: String?, `bundle` `nibBundleOrNil`: Bundle?) { fatalError("See 'Thunk Pruning' in the README") }231}232/// Returns an abstract mock which should be initialized using `mock(HomeDetailViewController.self).initialize(…)`.233public func mock(_ type: Movies.HomeDetailViewController.Type, file: StaticString = #file, line: UInt = #line) -> HomeDetailViewControllerMock.InitializerProxy.Type {234 return HomeDetailViewControllerMock.InitializerProxy.self235}236// MARK: - Mocked HomeDetailViewProtocol237public final class HomeDetailViewProtocolMock: Movies.HomeDetailViewProtocol, Mockingbird.Mock {238 static let staticMock = Mockingbird.StaticMock()239 public let mockingContext = Mockingbird.MockingContext()240 public let stubbingContext = Mockingbird.StubbingContext()241 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])242 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }243 // MARK: Mocked presenter244 public var `presenter`: Movies.HomeDetailPresenterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }245 public func getPresenter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeDetailPresenterProtocol?, Movies.HomeDetailPresenterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }246 public func setPresenter(_ newValue: @escaping @autoclosure () -> Movies.HomeDetailPresenterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeDetailPresenterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }247 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {248 Mockingbird.checkVersion(for: self)249 self.sourceLocation = sourceLocation250 }251}252/// Returns a concrete mock of `HomeDetailViewProtocol`.253public func mock(_ type: Movies.HomeDetailViewProtocol.Protocol, file: StaticString = #file, line: UInt = #line) -> HomeDetailViewProtocolMock {254 return HomeDetailViewProtocolMock(sourceLocation: Mockingbird.SourceLocation(file, line))255}256// MARK: - Mocked HomeInteractorProtocol257public final class HomeInteractorProtocolMock: Movies.HomeInteractorProtocol, Mockingbird.Mock {258 static let staticMock = Mockingbird.StaticMock()259 public let mockingContext = Mockingbird.MockingContext()260 public let stubbingContext = Mockingbird.StubbingContext()261 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])262 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }263 // MARK: Mocked presenter264 public var `presenter`: Movies.HomePresenterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }265 public func getPresenter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomePresenterProtocol?, Movies.HomePresenterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }266 public func setPresenter(_ newValue: @escaping @autoclosure () -> Movies.HomePresenterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomePresenterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }267 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {268 Mockingbird.checkVersion(for: self)269 self.sourceLocation = sourceLocation270 }271 // MARK: Mocked `getMovies`()272 public func `getMovies`() -> Void { fatalError("See 'Thunk Pruning' in the README") }273 public func `getMovies`() -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, () -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }274 // MARK: Mocked `getMovieById`(`id`: String)275 public func `getMovieById`(`id`: String) -> Void { fatalError("See 'Thunk Pruning' in the README") }276 public func `getMovieById`(`id`: @escaping @autoclosure () -> String) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (String) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }277}278/// Returns a concrete mock of `HomeInteractorProtocol`.279public func mock(_ type: Movies.HomeInteractorProtocol.Protocol, file: StaticString = #file, line: UInt = #line) -> HomeInteractorProtocolMock {280 return HomeInteractorProtocolMock(sourceLocation: Mockingbird.SourceLocation(file, line))281}282// MARK: - Mocked HomeInteractor283public final class HomeInteractorMock: Movies.HomeInteractor, Mockingbird.Mock {284 static let staticMock = Mockingbird.StaticMock()285 public let mockingContext = Mockingbird.MockingContext()286 public let stubbingContext = Mockingbird.StubbingContext()287 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])288 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }289 // MARK: Mocked presenter290 override public var `presenter`: Movies.HomePresenterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }291 public func getPresenter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomePresenterProtocol?, Movies.HomePresenterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }292 public func setPresenter(_ newValue: @escaping @autoclosure () -> Movies.HomePresenterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomePresenterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }293 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {294 super.init()295 Mockingbird.checkVersion(for: self)296 self.sourceLocation = sourceLocation297 }298 // MARK: Mocked `getMovies`()299 public override func `getMovies`() -> Void { fatalError("See 'Thunk Pruning' in the README") }300 public func `getMovies`() -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, () -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }301 // MARK: Mocked `getMovieById`(`id`: String)302 public override func `getMovieById`(`id`: String) -> Void { fatalError("See 'Thunk Pruning' in the README") }303 public func `getMovieById`(`id`: @escaping @autoclosure () -> String) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (String) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }304}305/// Returns a concrete mock of `HomeInteractor`.306public func mock(_ type: Movies.HomeInteractor.Type, file: StaticString = #file, line: UInt = #line) -> HomeInteractorMock {307 return HomeInteractorMock(sourceLocation: Mockingbird.SourceLocation(file, line))308}309// MARK: - Mocked HomePresenterProtocol310public final class HomePresenterProtocolMock: Movies.HomePresenterProtocol, Mockingbird.Mock {311 static let staticMock = Mockingbird.StaticMock()312 public let mockingContext = Mockingbird.MockingContext()313 public let stubbingContext = Mockingbird.StubbingContext()314 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])315 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }316 // MARK: Mocked interactor317 public var `interactor`: Movies.HomeInteractorProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }318 public func getInteractor() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeInteractorProtocol?, Movies.HomeInteractorProtocol?> { fatalError("See 'Thunk Pruning' in the README") }319 public func setInteractor(_ newValue: @escaping @autoclosure () -> Movies.HomeInteractorProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeInteractorProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }320 // MARK: Mocked router321 public var `router`: Movies.HomeRouterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }322 public func getRouter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeRouterProtocol?, Movies.HomeRouterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }323 public func setRouter(_ newValue: @escaping @autoclosure () -> Movies.HomeRouterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeRouterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }324 // MARK: Mocked view325 public var `view`: Movies.HomeViewProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }326 public func getView() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeViewProtocol?, Movies.HomeViewProtocol?> { fatalError("See 'Thunk Pruning' in the README") }327 public func setView(_ newValue: @escaping @autoclosure () -> Movies.HomeViewProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeViewProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }328 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {329 Mockingbird.checkVersion(for: self)330 self.sourceLocation = sourceLocation331 }332 // MARK: Mocked `interactorGetMovie`()333 public func `interactorGetMovie`() -> Void { fatalError("See 'Thunk Pruning' in the README") }334 public func `interactorGetMovie`() -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, () -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }335 // MARK: Mocked `interactorDidFetchMoviesError`(`error`: Error)336 public func `interactorDidFetchMoviesError`(`error`: Error) -> Void { fatalError("See 'Thunk Pruning' in the README") }337 public func `interactorDidFetchMoviesError`(`error`: @escaping @autoclosure () -> Error) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Error) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }338 // MARK: Mocked `interactorDidFetchMovies`(`result`: Movies.AllMovie)339 public func `interactorDidFetchMovies`(`result`: Movies.AllMovie) -> Void { fatalError("See 'Thunk Pruning' in the README") }340 public func `interactorDidFetchMovies`(`result`: @escaping @autoclosure () -> Movies.AllMovie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.AllMovie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }341 // MARK: Mocked `interactorGetMovieById`(`movie`: Movies.Movie)342 public func `interactorGetMovieById`(`movie`: Movies.Movie) -> Void { fatalError("See 'Thunk Pruning' in the README") }343 public func `interactorGetMovieById`(`movie`: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.Movie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }344}345/// Returns a concrete mock of `HomePresenterProtocol`.346public func mock(_ type: Movies.HomePresenterProtocol.Protocol, file: StaticString = #file, line: UInt = #line) -> HomePresenterProtocolMock {347 return HomePresenterProtocolMock(sourceLocation: Mockingbird.SourceLocation(file, line))348}349// MARK: - Mocked HomePresenter350public final class HomePresenterMock: Movies.HomePresenter, Mockingbird.Mock {351 static let staticMock = Mockingbird.StaticMock()352 public let mockingContext = Mockingbird.MockingContext()353 public let stubbingContext = Mockingbird.StubbingContext()354 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])355 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }356 // MARK: Mocked interactor357 override public var `interactor`: Movies.HomeInteractorProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }358 public func getInteractor() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeInteractorProtocol?, Movies.HomeInteractorProtocol?> { fatalError("See 'Thunk Pruning' in the README") }359 public func setInteractor(_ newValue: @escaping @autoclosure () -> Movies.HomeInteractorProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeInteractorProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }360 // MARK: Mocked router361 override public var `router`: Movies.HomeRouterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }362 public func getRouter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeRouterProtocol?, Movies.HomeRouterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }363 public func setRouter(_ newValue: @escaping @autoclosure () -> Movies.HomeRouterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeRouterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }364 // MARK: Mocked view365 override public var `view`: Movies.HomeViewProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }366 public func getView() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomeViewProtocol?, Movies.HomeViewProtocol?> { fatalError("See 'Thunk Pruning' in the README") }367 public func setView(_ newValue: @escaping @autoclosure () -> Movies.HomeViewProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomeViewProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }368 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {369 super.init()370 Mockingbird.checkVersion(for: self)371 self.sourceLocation = sourceLocation372 }373 // MARK: Mocked `interactorGetMovie`()374 public override func `interactorGetMovie`() -> Void { fatalError("See 'Thunk Pruning' in the README") }375 public func `interactorGetMovie`() -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, () -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }376 // MARK: Mocked `interactorDidFetchMoviesError`(`error`: Error)377 public override func `interactorDidFetchMoviesError`(`error`: Error) -> Void { fatalError("See 'Thunk Pruning' in the README") }378 public func `interactorDidFetchMoviesError`(`error`: @escaping @autoclosure () -> Error) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Error) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }379 // MARK: Mocked `interactorDidFetchMovies`(`result`: Movies.AllMovie)380 public override func `interactorDidFetchMovies`(`result`: Movies.AllMovie) -> Void { fatalError("See 'Thunk Pruning' in the README") }381 public func `interactorDidFetchMovies`(`result`: @escaping @autoclosure () -> Movies.AllMovie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.AllMovie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }382 // MARK: Mocked `interactorGetMovieById`(`movie`: Movies.Movie)383 public override func `interactorGetMovieById`(`movie`: Movies.Movie) -> Void { fatalError("See 'Thunk Pruning' in the README") }384 public func `interactorGetMovieById`(`movie`: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.Movie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }385}386/// Returns a concrete mock of `HomePresenter`.387public func mock(_ type: Movies.HomePresenter.Type, file: StaticString = #file, line: UInt = #line) -> HomePresenterMock {388 return HomePresenterMock(sourceLocation: Mockingbird.SourceLocation(file, line))389}390// MARK: - Mocked HomeRouterProtocol391public final class HomeRouterProtocolMock: Movies.HomeRouterProtocol, Mockingbird.Mock {392 static let staticMock = Mockingbird.StaticMock()393 public let mockingContext = Mockingbird.MockingContext()394 public let stubbingContext = Mockingbird.StubbingContext()395 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])396 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }397 // MARK: Mocked entry398 public var `entry`: Movies.EntryPointHome? { get { fatalError("See 'Thunk Pruning' in the README") } }399 public func getEntry() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.EntryPointHome?, Movies.EntryPointHome?> { fatalError("See 'Thunk Pruning' in the README") }400 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {401 Mockingbird.checkVersion(for: self)402 self.sourceLocation = sourceLocation403 }404 // MARK: Mocked `start`()405 public static func `start`() -> Movies.HomeRouterProtocol { fatalError("See 'Thunk Pruning' in the README") }406 public static func `start`() -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, () -> Movies.HomeRouterProtocol, Movies.HomeRouterProtocol> { fatalError("See 'Thunk Pruning' in the README") }407 // MARK: Mocked `changeViewToDetailMovie`(`movie`: Movies.Movie)408 public func `changeViewToDetailMovie`(`movie`: Movies.Movie) -> Void { fatalError("See 'Thunk Pruning' in the README") }409 public func `changeViewToDetailMovie`(`movie`: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.Movie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }410}411/// Returns a concrete mock of `HomeRouterProtocol`.412public func mock(_ type: Movies.HomeRouterProtocol.Protocol, file: StaticString = #file, line: UInt = #line) -> HomeRouterProtocolMock {413 return HomeRouterProtocolMock(sourceLocation: Mockingbird.SourceLocation(file, line))414}415// MARK: - Mocked HomeRouter416public final class HomeRouterMock: Movies.HomeRouter, Mockingbird.Mock {417 static let staticMock = Mockingbird.StaticMock()418 public let mockingContext = Mockingbird.MockingContext()419 public let stubbingContext = Mockingbird.StubbingContext()420 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])421 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }422 // MARK: Mocked entry423 override public var `entry`: Movies.EntryPointHome? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }424 public func getEntry() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.EntryPointHome?, Movies.EntryPointHome?> { fatalError("See 'Thunk Pruning' in the README") }425 public func setEntry(_ newValue: @escaping @autoclosure () -> Movies.EntryPointHome?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.EntryPointHome?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }426 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {427 super.init()428 Mockingbird.checkVersion(for: self)429 self.sourceLocation = sourceLocation430 }431 // MARK: Mocked `changeViewToDetailMovie`(`movie`: Movies.Movie)432 public override func `changeViewToDetailMovie`(`movie`: Movies.Movie) -> Void { fatalError("See 'Thunk Pruning' in the README") }433 public func `changeViewToDetailMovie`(`movie`: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.Movie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }434}435/// Returns a concrete mock of `HomeRouter`.436public func mock(_ type: Movies.HomeRouter.Type, file: StaticString = #file, line: UInt = #line) -> HomeRouterMock {437 return HomeRouterMock(sourceLocation: Mockingbird.SourceLocation(file, line))438}439// MARK: - Mocked HomeTableViewCell440public final class HomeTableViewCellMock: Mockingbird.Mock {441 static let staticMock = Mockingbird.StaticMock()442 public let mockingContext = Mockingbird.MockingContext()443 public let stubbingContext = Mockingbird.StubbingContext()444 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])445 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }446}447@available(*, unavailable, message: "'HomeTableViewCell' does not declare any accessible designated initializers and cannot be mocked")448public func mock(_ type: Movies.HomeTableViewCell.Type, file: StaticString = #file, line: UInt = #line) -> HomeTableViewCellMock {449 fatalError()450}451// MARK: - Mocked HomeViewController452public final class HomeViewControllerMock: Movies.HomeViewController, Mockingbird.Mock {453 static let staticMock = Mockingbird.StaticMock()454 public let mockingContext = Mockingbird.MockingContext()455 public let stubbingContext = Mockingbird.StubbingContext()456 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])457 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }458 public enum InitializerProxy {459 public static func initialize(`coder`: NSCoder, __file: StaticString = #file, __line: UInt = #line) -> HomeViewControllerMock? { fatalError("See 'Thunk Pruning' in the README") }460 public static func initialize(`nibName` `nibNameOrNil`: String?, `bundle` `nibBundleOrNil`: Bundle?, __file: StaticString = #file, __line: UInt = #line) -> HomeViewControllerMock { fatalError("See 'Thunk Pruning' in the README") }461 }462 // MARK: Mocked homeTableView463 override public var `homeTableView`: UITableView! { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }464 public func getHomeTableView() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UITableView, UITableView> { fatalError("See 'Thunk Pruning' in the README") }465 public func setHomeTableView(_ newValue: @escaping @autoclosure () -> UITableView) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UITableView) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }466 // MARK: Mocked presenter467 override public var `presenter`: Movies.HomePresenterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }468 public func getPresenter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomePresenterProtocol?, Movies.HomePresenterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }469 public func setPresenter(_ newValue: @escaping @autoclosure () -> Movies.HomePresenterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomePresenterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }470 // MARK: Mocked `viewDidLoad`()471 public override func `viewDidLoad`() -> Void { fatalError("See 'Thunk Pruning' in the README") }472 public func `viewDidLoad`() -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, () -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }473 // MARK: Mocked `updateMoviesError`(`with` `error`: Error)474 public override func `updateMoviesError`(`with` `error`: Error) -> Void { fatalError("See 'Thunk Pruning' in the README") }475 public func `updateMoviesError`(`with` `error`: @escaping @autoclosure () -> Error) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Error) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }476 // MARK: Mocked `updateMovies`(`with` `movies`: Movies.AllMovie)477 public override func `updateMovies`(`with` `movies`: Movies.AllMovie) -> Void { fatalError("See 'Thunk Pruning' in the README") }478 public func `updateMovies`(`with` `movies`: @escaping @autoclosure () -> Movies.AllMovie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.AllMovie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }479 // MARK: Mocked `showDetailMovie`(`movie`: Movies.Movie)480 public override func `showDetailMovie`(`movie`: Movies.Movie) -> Void { fatalError("See 'Thunk Pruning' in the README") }481 public func `showDetailMovie`(`movie`: @escaping @autoclosure () -> Movies.Movie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.Movie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }482 // MARK: Mocked init?(`coder`: NSCoder)483 public required init?(`coder`: NSCoder) { fatalError("See 'Thunk Pruning' in the README") }484 // MARK: Mocked init(`nibName` `nibNameOrNil`: String?, `bundle` `nibBundleOrNil`: Bundle?)485 public required override init(`nibName` `nibNameOrNil`: String?, `bundle` `nibBundleOrNil`: Bundle?) { fatalError("See 'Thunk Pruning' in the README") }486}487/// Returns an abstract mock which should be initialized using `mock(HomeViewController.self).initialize(…)`.488public func mock(_ type: Movies.HomeViewController.Type, file: StaticString = #file, line: UInt = #line) -> HomeViewControllerMock.InitializerProxy.Type {489 return HomeViewControllerMock.InitializerProxy.self490}491// MARK: - Mocked HomeViewProtocol492public final class HomeViewProtocolMock: Movies.HomeViewProtocol, Mockingbird.Mock {493 static let staticMock = Mockingbird.StaticMock()494 public let mockingContext = Mockingbird.MockingContext()495 public let stubbingContext = Mockingbird.StubbingContext()496 public let mockMetadata = Mockingbird.MockMetadata(["generator_version": "0.16.0", "module_name": "Movies"])497 public var sourceLocation: Mockingbird.SourceLocation? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }498 // MARK: Mocked presenter499 public var `presenter`: Movies.HomePresenterProtocol? { get { fatalError("See 'Thunk Pruning' in the README") } set { fatalError("See 'Thunk Pruning' in the README") } }500 public func getPresenter() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> Movies.HomePresenterProtocol?, Movies.HomePresenterProtocol?> { fatalError("See 'Thunk Pruning' in the README") }501 public func setPresenter(_ newValue: @escaping @autoclosure () -> Movies.HomePresenterProtocol?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (Movies.HomePresenterProtocol?) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }502 fileprivate init(sourceLocation: Mockingbird.SourceLocation) {503 Mockingbird.checkVersion(for: self)504 self.sourceLocation = sourceLocation505 }506 // MARK: Mocked `updateMoviesError`(`with` `error`: Error)507 public func `updateMoviesError`(`with` `error`: Error) -> Void { fatalError("See 'Thunk Pruning' in the README") }508 public func `updateMoviesError`(`with` `error`: @escaping @autoclosure () -> Error) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Error) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }509 // MARK: Mocked `updateMovies`(`with` `movies`: Movies.AllMovie)510 public func `updateMovies`(`with` `movies`: Movies.AllMovie) -> Void { fatalError("See 'Thunk Pruning' in the README") }511 public func `updateMovies`(`with` `movies`: @escaping @autoclosure () -> Movies.AllMovie) -> Mockingbird.Mockable<Mockingbird.FunctionDeclaration, (Movies.AllMovie) -> Void, Void> { fatalError("See 'Thunk Pruning' in the README") }512}513/// Returns a concrete mock of `HomeViewProtocol`.514public func mock(_ type: Movies.HomeViewProtocol.Protocol, file: StaticString = #file, line: UInt = #line) -> HomeViewProtocolMock {...

Full Screen

Full Screen

UseCaseInjectMocks.generated.swift

Source:UseCaseInjectMocks.generated.swift Github

copy

Full Screen

...56 (implementation as? () -> Void)?()57 }58 }59 }60 public func getFoo() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo> {61 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "foo.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))62 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo>(mock: self, invocation: invocation)63 }64 public func setFoo(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void> {65 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]66 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "foo.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))67 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void>(mock: self, invocation: invocation)68 }69 // MARK: Mocked fooCustomInit70 override public var `fooCustomInit`: UseCaseInject.Foo {71 get {72 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooCustomInit.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))73 return self.mockingContext.didInvoke(invocation) { () -> UseCaseInject.Foo in74 let implementation = self.stubbingContext.implementation(for: invocation)75 if let concreteImplementation = implementation as? () -> UseCaseInject.Foo {76 return concreteImplementation()77 } else if let defaultValue = self.stubbingContext.defaultValueProvider.provideValue(for: (UseCaseInject.Foo).self) {78 return defaultValue79 } else {80 fatalError(self.stubbingContext.failTest(for: invocation))81 }82 }83 }84 set {85 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooCustomInit.set", arguments: [ArgumentMatcher(newValue)], returnType: Swift.ObjectIdentifier(Void.self))86 self.mockingContext.didInvoke(invocation)87 let implementation = self.stubbingContext.implementation(for: invocation)88 if let concreteImplementation = implementation as? (UseCaseInject.Foo) -> Void {89 concreteImplementation(newValue)90 } else {91 (implementation as? () -> Void)?()92 }93 }94 }95 public func getFooCustomInit() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo> {96 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooCustomInit.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))97 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo>(mock: self, invocation: invocation)98 }99 public func setFooCustomInit(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void> {100 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]101 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooCustomInit.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))102 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void>(mock: self, invocation: invocation)103 }104 // MARK: Mocked fooData105 override public var `fooData`: UseCaseInject.Foo {106 get {107 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooData.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))108 return self.mockingContext.didInvoke(invocation) { () -> UseCaseInject.Foo in109 let implementation = self.stubbingContext.implementation(for: invocation)110 if let concreteImplementation = implementation as? () -> UseCaseInject.Foo {111 return concreteImplementation()112 } else if let defaultValue = self.stubbingContext.defaultValueProvider.provideValue(for: (UseCaseInject.Foo).self) {113 return defaultValue114 } else {115 fatalError(self.stubbingContext.failTest(for: invocation))116 }117 }118 }119 set {120 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooData.set", arguments: [ArgumentMatcher(newValue)], returnType: Swift.ObjectIdentifier(Void.self))121 self.mockingContext.didInvoke(invocation)122 let implementation = self.stubbingContext.implementation(for: invocation)123 if let concreteImplementation = implementation as? (UseCaseInject.Foo) -> Void {124 concreteImplementation(newValue)125 } else {126 (implementation as? () -> Void)?()127 }128 }129 }130 public func getFooData() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo> {131 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooData.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))132 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo>(mock: self, invocation: invocation)133 }134 public func setFooData(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void> {135 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]136 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooData.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))137 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void>(mock: self, invocation: invocation)138 }139 // MARK: Mocked fooLazy140 override public var `fooLazy`: UseCaseInject.Foo {141 get {142 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooLazy.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))143 return self.mockingContext.didInvoke(invocation) { () -> UseCaseInject.Foo in144 let implementation = self.stubbingContext.implementation(for: invocation)145 if let concreteImplementation = implementation as? () -> UseCaseInject.Foo {146 return concreteImplementation()147 } else if let defaultValue = self.stubbingContext.defaultValueProvider.provideValue(for: (UseCaseInject.Foo).self) {148 return defaultValue149 } else {150 fatalError(self.stubbingContext.failTest(for: invocation))151 }152 }153 }154 set {155 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooLazy.set", arguments: [ArgumentMatcher(newValue)], returnType: Swift.ObjectIdentifier(Void.self))156 self.mockingContext.didInvoke(invocation)157 let implementation = self.stubbingContext.implementation(for: invocation)158 if let concreteImplementation = implementation as? (UseCaseInject.Foo) -> Void {159 concreteImplementation(newValue)160 } else {161 (implementation as? () -> Void)?()162 }163 }164 }165 public func getFooLazy() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo> {166 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooLazy.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))167 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo>(mock: self, invocation: invocation)168 }169 public func setFooLazy(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void> {170 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]171 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooLazy.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))172 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void>(mock: self, invocation: invocation)173 }174 // MARK: Mocked fooOptional175 override public var `fooOptional`: UseCaseInject.Foo? {176 get {177 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooOptional.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo?).self))178 return self.mockingContext.didInvoke(invocation) { () -> UseCaseInject.Foo? in179 let implementation = self.stubbingContext.implementation(for: invocation)180 if let concreteImplementation = implementation as? () -> UseCaseInject.Foo? {181 return concreteImplementation()182 } else if let defaultValue = self.stubbingContext.defaultValueProvider.provideValue(for: (UseCaseInject.Foo?).self) {183 return defaultValue184 } else {185 fatalError(self.stubbingContext.failTest(for: invocation))186 }187 }188 }189 set {190 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooOptional.set", arguments: [ArgumentMatcher(newValue)], returnType: Swift.ObjectIdentifier(Void.self))191 self.mockingContext.didInvoke(invocation)192 let implementation = self.stubbingContext.implementation(for: invocation)193 if let concreteImplementation = implementation as? (UseCaseInject.Foo?) -> Void {194 concreteImplementation(newValue)195 } else {196 (implementation as? () -> Void)?()197 }198 }199 }200 public func getFooOptional() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo?, UseCaseInject.Foo?> {201 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooOptional.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo?).self))202 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo?, UseCaseInject.Foo?>(mock: self, invocation: invocation)203 }204 public func setFooOptional(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo?) -> Void, Void> {205 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]206 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooOptional.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))207 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo?) -> Void, Void>(mock: self, invocation: invocation)208 }209 // MARK: Mocked init()210 public required override init() {211 super.init()212 Mockingbird.checkVersion(for: self)213 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "init() ", arguments: [], returnType: Swift.ObjectIdentifier((Void).self))214 self.mockingContext.didInvoke(invocation)215 }216}...

Full Screen

Full Screen

UseCaseInject.generated.swift

Source:UseCaseInject.generated.swift Github

copy

Full Screen

...56 (implementation as? () -> Void)?()57 }58 }59 }60 public func getFoo() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo> {61 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "foo.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))62 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo>(mock: self, invocation: invocation)63 }64 public func setFoo(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void> {65 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]66 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "foo.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))67 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void>(mock: self, invocation: invocation)68 }69 // MARK: Mocked fooCustomInit70 override public var `fooCustomInit`: UseCaseInject.Foo {71 get {72 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooCustomInit.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))73 return self.mockingContext.didInvoke(invocation) { () -> UseCaseInject.Foo in74 let implementation = self.stubbingContext.implementation(for: invocation)75 if let concreteImplementation = implementation as? () -> UseCaseInject.Foo {76 return concreteImplementation()77 } else if let defaultValue = self.stubbingContext.defaultValueProvider.provideValue(for: (UseCaseInject.Foo).self) {78 return defaultValue79 } else {80 fatalError(self.stubbingContext.failTest(for: invocation))81 }82 }83 }84 set {85 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooCustomInit.set", arguments: [ArgumentMatcher(newValue)], returnType: Swift.ObjectIdentifier(Void.self))86 self.mockingContext.didInvoke(invocation)87 let implementation = self.stubbingContext.implementation(for: invocation)88 if let concreteImplementation = implementation as? (UseCaseInject.Foo) -> Void {89 concreteImplementation(newValue)90 } else {91 (implementation as? () -> Void)?()92 }93 }94 }95 public func getFooCustomInit() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo> {96 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooCustomInit.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))97 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo>(mock: self, invocation: invocation)98 }99 public func setFooCustomInit(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void> {100 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]101 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooCustomInit.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))102 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void>(mock: self, invocation: invocation)103 }104 // MARK: Mocked fooData105 override public var `fooData`: UseCaseInject.Foo {106 get {107 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooData.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))108 return self.mockingContext.didInvoke(invocation) { () -> UseCaseInject.Foo in109 let implementation = self.stubbingContext.implementation(for: invocation)110 if let concreteImplementation = implementation as? () -> UseCaseInject.Foo {111 return concreteImplementation()112 } else if let defaultValue = self.stubbingContext.defaultValueProvider.provideValue(for: (UseCaseInject.Foo).self) {113 return defaultValue114 } else {115 fatalError(self.stubbingContext.failTest(for: invocation))116 }117 }118 }119 set {120 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooData.set", arguments: [ArgumentMatcher(newValue)], returnType: Swift.ObjectIdentifier(Void.self))121 self.mockingContext.didInvoke(invocation)122 let implementation = self.stubbingContext.implementation(for: invocation)123 if let concreteImplementation = implementation as? (UseCaseInject.Foo) -> Void {124 concreteImplementation(newValue)125 } else {126 (implementation as? () -> Void)?()127 }128 }129 }130 public func getFooData() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo> {131 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooData.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))132 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo>(mock: self, invocation: invocation)133 }134 public func setFooData(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void> {135 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]136 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooData.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))137 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void>(mock: self, invocation: invocation)138 }139 // MARK: Mocked fooLazy140 override public var `fooLazy`: UseCaseInject.Foo {141 get {142 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooLazy.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))143 return self.mockingContext.didInvoke(invocation) { () -> UseCaseInject.Foo in144 let implementation = self.stubbingContext.implementation(for: invocation)145 if let concreteImplementation = implementation as? () -> UseCaseInject.Foo {146 return concreteImplementation()147 } else if let defaultValue = self.stubbingContext.defaultValueProvider.provideValue(for: (UseCaseInject.Foo).self) {148 return defaultValue149 } else {150 fatalError(self.stubbingContext.failTest(for: invocation))151 }152 }153 }154 set {155 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooLazy.set", arguments: [ArgumentMatcher(newValue)], returnType: Swift.ObjectIdentifier(Void.self))156 self.mockingContext.didInvoke(invocation)157 let implementation = self.stubbingContext.implementation(for: invocation)158 if let concreteImplementation = implementation as? (UseCaseInject.Foo) -> Void {159 concreteImplementation(newValue)160 } else {161 (implementation as? () -> Void)?()162 }163 }164 }165 public func getFooLazy() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo> {166 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooLazy.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo).self))167 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo, UseCaseInject.Foo>(mock: self, invocation: invocation)168 }169 public func setFooLazy(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void> {170 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]171 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooLazy.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))172 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo) -> Void, Void>(mock: self, invocation: invocation)173 }174 // MARK: Mocked fooOptional175 override public var `fooOptional`: UseCaseInject.Foo? {176 get {177 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooOptional.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo?).self))178 return self.mockingContext.didInvoke(invocation) { () -> UseCaseInject.Foo? in179 let implementation = self.stubbingContext.implementation(for: invocation)180 if let concreteImplementation = implementation as? () -> UseCaseInject.Foo? {181 return concreteImplementation()182 } else if let defaultValue = self.stubbingContext.defaultValueProvider.provideValue(for: (UseCaseInject.Foo?).self) {183 return defaultValue184 } else {185 fatalError(self.stubbingContext.failTest(for: invocation))186 }187 }188 }189 set {190 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooOptional.set", arguments: [ArgumentMatcher(newValue)], returnType: Swift.ObjectIdentifier(Void.self))191 self.mockingContext.didInvoke(invocation)192 let implementation = self.stubbingContext.implementation(for: invocation)193 if let concreteImplementation = implementation as? (UseCaseInject.Foo?) -> Void {194 concreteImplementation(newValue)195 } else {196 (implementation as? () -> Void)?()197 }198 }199 }200 public func getFooOptional() -> Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo?, UseCaseInject.Foo?> {201 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooOptional.get", arguments: [], returnType: Swift.ObjectIdentifier((UseCaseInject.Foo?).self))202 return Mockingbird.Mockable<Mockingbird.PropertyGetterDeclaration, () -> UseCaseInject.Foo?, UseCaseInject.Foo?>(mock: self, invocation: invocation)203 }204 public func setFooOptional(_ newValue: @escaping @autoclosure () -> UseCaseInject.Foo?) -> Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo?) -> Void, Void> {205 let arguments: [Mockingbird.ArgumentMatcher] = [Mockingbird.resolve(newValue)]206 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "fooOptional.set", arguments: arguments, returnType: Swift.ObjectIdentifier(Void.self))207 return Mockingbird.Mockable<Mockingbird.PropertySetterDeclaration, (UseCaseInject.Foo?) -> Void, Void>(mock: self, invocation: invocation)208 }209 // MARK: Mocked init()210 public required override init() {211 super.init()212 Mockingbird.checkVersion(for: self)213 let invocation: Mockingbird.Invocation = Mockingbird.Invocation(selectorName: "init() ", arguments: [], returnType: Swift.ObjectIdentifier((Void).self))214 self.mockingContext.didInvoke(invocation)215 }216}...

Full Screen

Full Screen

PropertyGetterDeclaration

Using AI Code Generation

copy

Full Screen

1import Foundation2import Mockingbird3class PropertyGetterDeclaration {4 var name: String {5 }6}7let propertyGetterDeclaration = PropertyGetterDeclaration()8print(name)

Full Screen

Full Screen

PropertyGetterDeclaration

Using AI Code Generation

copy

Full Screen

1import MockingbirdGenerator2let sourceFile = try SourceFile(path: "1.swift")3let propertyGetterDeclaration = try PropertyGetterDeclaration(sourceFile: sourceFile, startOffset: 0)4let propertyGetter = try PropertyGetter(propertyGetterDeclaration: propertyGetterDeclaration, sourceFile: sourceFile)5import MockingbirdGenerator6let sourceFile = try SourceFile(path: "2.swift")7let propertySetterDeclaration = try PropertySetterDeclaration(sourceFile: sourceFile, startOffset: 0)8let propertySetter = try PropertySetter(propertySetterDeclaration: propertySetterDeclaration, sourceFile: sourceFile)9import MockingbirdGenerator10let sourceFile = try SourceFile(path: "3.swift")11let propertyDeclaration = try PropertyDeclaration(sourceFile: sourceFile, startOffset: 0)12let property = try Property(propertyDeclaration: propertyDeclaration, sourceFile: sourceFile)13import MockingbirdGenerator

Full Screen

Full Screen

PropertyGetterDeclaration

Using AI Code Generation

copy

Full Screen

1import MockingbirdGenerator2let property = PropertyGetterDeclaration(name: "name", type: "String", accessLevel: "internal", isStatic: false, isFinal: false, isOverriden: false, isLazy: false, isComputed: false, attributes: [], attributesString: "", comment: "", body: "")3print(property.body)4import MockingbirdGenerator5let property = PropertyGetterDeclaration(name: "name", type: "String", accessLevel: "internal", isStatic: false, isFinal: false, isOverriden: false, isLazy: false, isComputed: false, attributes: [], attributesString: "", comment: "", body: "return \"name\"")6print(property.body)7import MockingbirdGenerator8let property = PropertyGetterDeclaration(name: "name", type: "String", accessLevel: "internal", isStatic: false, isFinal: false, isOverriden: false, isLazy: false, isComputed: false, attributes: [], attributesString: "", comment: "", body: "return \"name\"")9print(property.body)10import MockingbirdGenerator11let property = PropertyGetterDeclaration(name: "name", type: "String", accessLevel: "internal", isStatic: false, isFinal: false, isOverriden: false, isLazy: false, isComputed: false, attributes: [], attributesString: "", comment: "", body: "return \"name\"")12print(property.body)13import MockingbirdGenerator14let property = PropertyGetterDeclaration(name: "name", type: "String", accessLevel: "internal", isStatic: false, isFinal: false, isOverriden: false, isLazy: false, isComputed: false, attributes: [], attributesString: "", comment: "", body: "return \"name\"")15print(property.body)16import MockingbirdGenerator

Full Screen

Full Screen

PropertyGetterDeclaration

Using AI Code Generation

copy

Full Screen

1import MockingbirdFramework2let propertyGetterDeclaration = PropertyGetterDeclaration()3propertyGetterDeclaration.sourceLocation = SourceLocation(line: 1, column: 1, file: "file.swift")4propertyGetterDeclaration.sourceRange = SourceRange(start: SourceLocation(line: 1, column: 1, file: "file.swift"), end: SourceLocation(line: 1, column: 1, file: "file.swift"))5let propertyGetterDeclaration = PropertyGetterDeclaration()6propertyGetterDeclaration.sourceLocation = SourceLocation(line: 1, column: 1, file: "file.swift")7propertyGetterDeclaration.sourceRange = SourceRange(start: SourceLocation(line: 1, column: 1, file: "file.swift"), end: SourceLocation(line: 1, column: 1, file: "file.swift"))8import MockingbirdFramework9let propertyGetterDeclaration = PropertyGetterDeclaration()10propertyGetterDeclaration.sourceLocation = SourceLocation(line: 1, column: 1, file: "file.swift")11propertyGetterDeclaration.sourceRange = SourceRange(start: SourceLocation(line: 1, column: 1, file: "file.swift"), end: SourceLocation(line: 1, column: 1, file: "file.swift"))12let propertyGetterDeclaration = PropertyGetterDeclaration()13propertyGetterDeclaration.sourceLocation = SourceLocation(line: 1, column: 1, file: "file.swift")14propertyGetterDeclaration.sourceRange = SourceRange(start: SourceLocation(line: 1, column: 1, file: "file.swift"), end: SourceLocation(line: 1, column: 1, file: "file.swift"))15import MockingbirdFramework16let propertyGetterDeclaration = PropertyGetterDeclaration()17propertyGetterDeclaration.sourceLocation = SourceLocation(line: 1, column: 1, file: "file.swift")18propertyGetterDeclaration.sourceRange = SourceRange(start: SourceLocation(line: 1, column: 1, file: "file.swift"), end: SourceLocation(line: 1, column: 1, file: "file.swift"))19let propertyGetterDeclaration = PropertyGetterDeclaration()

Full Screen

Full Screen

PropertyGetterDeclaration

Using AI Code Generation

copy

Full Screen

1let propertyGetter = PropertyGetterDeclaration()2let propertyGetterSource = propertyGetter.source()3let propertyGetterDeclaration = propertyGetter.declaration()4let propertyGetterImplementation = propertyGetter.implementation()5let propertyGetter = PropertyGetterDeclaration()6let propertyGetterSource = propertyGetter.source()7let propertyGetterDeclaration = propertyGetter.declaration()8let propertyGetterImplementation = propertyGetter.implementation()

Full Screen

Full Screen

PropertyGetterDeclaration

Using AI Code Generation

copy

Full Screen

1PropertyGetterDeclaration getter = new PropertyGetterDeclaration();2getter.setName("name");3getter.setReturnType("String");4getter.setAccessLevel("public");5getter.setBody("return \"Hello World\";");6getter.setOverridden(true);7getter.setStatic(true);8getter.setFinal(true);9getter.setOptional(true);10getter.setLazy(true);11getter.setWeak(true);12getter.setUnowned(true);13getter.setUnownedSafe(true);14getter.setUnownedUnsafe(true);15getter.setLazy(true);16getter.setGetter(true);17getter.setSetter(true);18getter.setWillSet(true);19getter.setDidSet(true);20getter.setMutating(true);21getter.setNonMutating(true);22getter.setOptional(true);23getter.setImplicitlyUnwrapped(true);24getter.setFinal(true);25getter.setStatic(true);26getter.setAccessLevel("public");27getter.setOverrideKeyword("override");28getter.setAttributes("someAttribute");29PropertyGetterDeclaration getter = new PropertyGetterDeclaration();30getter.setName("name");31getter.setReturnType("String");32getter.setAccessLevel("public");33getter.setBody("return \"Hello World\";");34getter.setOverridden(true);35getter.setStatic(true);36getter.setFinal(true);37getter.setOptional(true);38getter.setLazy(true);39getter.setWeak(true);40getter.setUnowned(true);41getter.setUnownedSafe(true);42getter.setUnownedUnsafe(true);43getter.setLazy(true);44getter.setGetter(true);45getter.setSetter(true);46getter.setWillSet(true);47getter.setDidSet(true);48getter.setMutating(true);49getter.setNonMutating(true);50getter.setOptional(true);51getter.setImplicitlyUnwrapped(true);52getter.setFinal(true);53getter.setStatic(true);54getter.setAccessLevel("public");55getter.setOverrideKeyword("override");56getter.setAttributes("someAttribute");57PropertyGetterDeclaration getter = new PropertyGetterDeclaration();58getter.setName("name");59getter.setReturnType("String");60getter.setAccessLevel("public");61getter.setBody("return \"Hello World\";");62getter.setOverridden(true);63getter.setStatic(true);64getter.setFinal(true);65getter.setOptional(true);66getter.setLazy(true);67getter.setWeak(true);68getter.setUnowned(true);69getter.setUnownedSafe(true);70getter.setUnownedUnsafe(true);71getter.setLazy(true);72getter.setGetter(true);73getter.setSetter(true);74getter.setWillSet(true);

Full Screen

Full Screen

PropertyGetterDeclaration

Using AI Code Generation

copy

Full Screen

1import UIKit2import Mockingbird3class PropertyGetterDeclaration {4 var name: String {5 }6}7import UIKit8import Mockingbird9class PropertySetterDeclaration {10 var name: String {11 get {12 }13 set {14 print(newValue)15 }16 }17}18import UIKit19import Mockingbird20class PropertyGetterSetterDeclaration {21 var name: String {22 get {23 }24 set {25 print(newValue)26 }27 }28}29import UIKit30import Mockingbird31class PropertyGetterSetterDeclaration {32 var name: String {33 get {34 }35 set {36 print(newValue)37 }38 }39}40import UIKit41import Mockingbird42class PropertyGetterSetterDeclaration {43 var name: String {44 get {45 }46 set {47 print(newValue)48 }49 }50}51import UIKit52import Mockingbird53class PropertyGetterSetterDeclaration {54 var name: String {55 get {56 }57 set {58 print(newValue)59 }60 }61}62import UIKit63import Mockingbird

Full Screen

Full Screen

PropertyGetterDeclaration

Using AI Code Generation

copy

Full Screen

1import MockingbirdGenerator2import Foundation3let fileURL = URL(fileURLWithPath: "/Users/xxx/Documents/1.swift")4let sourceCode = try String(contentsOf: fileURL)5let sourceFile = try SourceFile(contents: sourceCode)6for topLevelDeclaration in sourceFile.declarations {7 if let propertyGetterDeclaration = topLevelDeclaration as? PropertyGetterDeclaration {8 print("property name: \(propertyGetterDeclaration.name)")9 print("property type: \(propertyGetterDeclaration.type)")10 print("property access level: \(propertyGetterDeclaration.accessLevel)")11 }12}13import MockingbirdGenerator14import Foundation15let fileURL = URL(fileURLWithPath: "/Users/xxx/Documents/2.swift")16let sourceCode = try String(contentsOf: fileURL)17let sourceFile = try SourceFile(contents: sourceCode)18for topLevelDeclaration in sourceFile.declarations {19 if let propertySetterDeclaration = topLevelDeclaration as? PropertySetterDeclaration {20 print("property name: \(propertySetterDeclaration.name)")21 print("property type: \(propertySetterDeclaration.type)")22 print("property access level: \(propertySetterDeclaration.accessLevel)")23 }24}25import MockingbirdGenerator26import Foundation27let fileURL = URL(fileURLWithPath: "/Users/xxx/Documents/3.swift")28let sourceCode = try String(contentsOf: fileURL)29let sourceFile = try SourceFile(contents: sourceCode)30for topLevelDeclaration in sourceFile.declarations {

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Mockingbird automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful