├── Carthage └── BeerApp │ ├── Cartfile │ ├── Cartfile.private │ ├── Carthage │ └── Checkouts │ │ ├── Quick │ │ ├── .swift-version │ │ ├── script │ │ │ ├── travis-script-linux │ │ │ ├── travis-install-linux │ │ │ ├── travis-install-osx │ │ │ └── travis-script-osx │ │ ├── .gitmodules │ │ ├── Sources │ │ │ ├── QuickTests │ │ │ │ ├── Helpers │ │ │ │ │ ├── QuickTestsBridgingHeader.h │ │ │ │ │ ├── QuickSpec+QuickSpec_MethodList.h │ │ │ │ │ ├── QCKSpecRunner.h │ │ │ │ │ ├── XCTestObservationCenter+QCKSuspendObservation.h │ │ │ │ │ ├── QuickSpec+QuickSpec_MethodList.m │ │ │ │ │ └── XCTestCaseProvider.swift │ │ │ │ ├── QuickConfigurationTests.m │ │ │ │ ├── FunctionalTests │ │ │ │ │ ├── Configuration │ │ │ │ │ │ ├── AfterEach │ │ │ │ │ │ │ └── Configuration+AfterEach.swift │ │ │ │ │ │ └── BeforeEach │ │ │ │ │ │ │ ├── Configuration+BeforeEach.swift │ │ │ │ │ │ │ └── Configuration+BeforeEachTests.swift │ │ │ │ │ ├── ContextTests.swift │ │ │ │ │ ├── BeforeSuiteTests+ObjC.m │ │ │ │ │ ├── AfterSuiteTests+ObjC.m │ │ │ │ │ └── DescribeTests.swift │ │ │ │ ├── Info.plist │ │ │ │ └── Fixtures │ │ │ │ │ └── FunctionalTests_SharedExamplesTests_SharedExamples.swift │ │ │ ├── QuickFocusedTests │ │ │ │ ├── main.swift │ │ │ │ └── Info.plist │ │ │ ├── QuickTestHelpers │ │ │ │ ├── TestRun.swift │ │ │ │ └── SpecRunner.swift │ │ │ └── Quick │ │ │ │ ├── String+FileName.swift │ │ │ │ ├── Configuration │ │ │ │ ├── QuickConfiguration.swift │ │ │ │ └── QuickConfiguration.h │ │ │ │ ├── Hooks │ │ │ │ ├── HooksPhase.swift │ │ │ │ ├── SuiteHooks.swift │ │ │ │ └── Closures.swift │ │ │ │ ├── Quick.h │ │ │ │ ├── ErrorUtility.swift │ │ │ │ ├── NSBundle+CurrentTestBundle.swift │ │ │ │ ├── NSString+QCKSelectorName.h │ │ │ │ ├── World.h │ │ │ │ ├── ExampleMetadata.swift │ │ │ │ ├── QuickMain.swift │ │ │ │ ├── Callsite.swift │ │ │ │ ├── Info.plist │ │ │ │ ├── QuickSpec.swift │ │ │ │ └── Filter.swift │ │ ├── Externals │ │ │ └── Nimble │ │ │ │ ├── Sources │ │ │ │ ├── NimbleTests │ │ │ │ │ ├── objc │ │ │ │ │ │ ├── NimbleTests-Bridging-Header.h │ │ │ │ │ │ ├── ObjCSyncTest.m │ │ │ │ │ │ ├── ObjCBeNilTest.m │ │ │ │ │ │ ├── ObjCBeFalseTest.m │ │ │ │ │ │ ├── ObjCBeTrueTest.m │ │ │ │ │ │ ├── NimbleSpecHelper.h │ │ │ │ │ │ ├── ObjCBeFalsyTest.m │ │ │ │ │ │ ├── ObjCBeTruthyTest.m │ │ │ │ │ │ ├── ObjCBeLessThanTest.m │ │ │ │ │ │ ├── ObjCEqualTest.m │ │ │ │ │ │ ├── ObjCBeGreaterThanTest.m │ │ │ │ │ │ ├── ObjCMatchTest.m │ │ │ │ │ │ ├── ObjCBeLessThanOrEqualToTest.m │ │ │ │ │ │ ├── ObjCBeginWithTest.m │ │ │ │ │ │ ├── ObjCBeKindOfTest.m │ │ │ │ │ │ ├── ObjCBeGreaterThanOrEqualToTest.m │ │ │ │ │ │ ├── ObjCEndWithTest.m │ │ │ │ │ │ ├── ObjCBeCloseToTest.m │ │ │ │ │ │ └── ObjCBeAnInstanceOfTest.m │ │ │ │ │ ├── Helpers │ │ │ │ │ │ └── ObjectWithLazyProperty.swift │ │ │ │ │ ├── Matchers │ │ │ │ │ │ ├── BeNilTest.swift │ │ │ │ │ │ └── MatchTest.swift │ │ │ │ │ └── Info.plist │ │ │ │ └── Nimble │ │ │ │ │ ├── Nimble.h │ │ │ │ │ ├── Utils │ │ │ │ │ ├── Functional.swift │ │ │ │ │ └── SourceLocation.swift │ │ │ │ │ ├── objc │ │ │ │ │ ├── NMBExceptionCapture.h │ │ │ │ │ └── NMBExceptionCapture.m │ │ │ │ │ ├── Matchers │ │ │ │ │ ├── BeNil.swift │ │ │ │ │ ├── Match.swift │ │ │ │ │ └── BeIdenticalTo.swift │ │ │ │ │ ├── Adapters │ │ │ │ │ ├── AssertionDispatcher.swift │ │ │ │ │ └── AdapterProtocols.swift │ │ │ │ │ └── Info.plist │ │ │ │ ├── circle.yml │ │ │ │ ├── Package.swift │ │ │ │ ├── .travis.yml │ │ │ │ ├── Nimble.xcodeproj │ │ │ │ └── project.xcworkspace │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ ├── .gitignore │ │ │ │ └── Nimble.podspec │ │ ├── Quick Templates │ │ │ ├── Quick Configuration Class.xctemplate │ │ │ │ ├── Objective-C │ │ │ │ │ ├── ___FILEBASENAME___.h │ │ │ │ │ └── ___FILEBASENAME___.m │ │ │ │ ├── TemplateIcon.icns │ │ │ │ └── Swift │ │ │ │ │ └── ___FILEBASENAME___.swift │ │ │ └── Quick Spec Class.xctemplate │ │ │ │ ├── Objective-C │ │ │ │ └── ___FILEBASENAME___.m │ │ │ │ ├── Swift │ │ │ │ └── ___FILEBASENAME___.swift │ │ │ │ └── TemplateIcon.icns │ │ ├── Quick.xcodeproj │ │ │ └── project.xcworkspace │ │ │ │ └── contents.xcworkspacedata │ │ ├── Quick.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── .travis.yml │ │ ├── QuickTests │ │ │ └── FunctionalTests │ │ │ │ └── ContextTests.swift │ │ ├── Documentation │ │ │ └── InstallingFileTemplates.md │ │ ├── Package.swift │ │ └── circle.yml │ │ ├── Nimble │ │ ├── .swift-version │ │ ├── Package.swift │ │ ├── Sources │ │ │ └── Nimble │ │ │ │ ├── Nimble.h │ │ │ │ ├── Utils │ │ │ │ ├── Functional.swift │ │ │ │ ├── SourceLocation.swift │ │ │ │ └── ExceptionCapture.swift │ │ │ │ ├── objc │ │ │ │ ├── NMBExceptionCapture.h │ │ │ │ ├── CurrentTestCaseTracker.m │ │ │ │ └── NMBExceptionCapture.m │ │ │ │ ├── Matchers │ │ │ │ ├── BeVoid.swift │ │ │ │ ├── BeNil.swift │ │ │ │ └── Match.swift │ │ │ │ ├── Adapters │ │ │ │ ├── AssertionDispatcher.swift │ │ │ │ └── AdapterProtocols.swift │ │ │ │ └── Info.plist │ │ ├── Nimble.xcodeproj │ │ │ └── project.xcworkspace │ │ │ │ └── contents.xcworkspacedata │ │ ├── Tests │ │ │ ├── Nimble │ │ │ │ ├── Helpers │ │ │ │ │ ├── ObjectWithLazyProperty.swift │ │ │ │ │ └── XCTestCaseProvider.swift │ │ │ │ ├── objc │ │ │ │ │ ├── ObjCSyncTest.m │ │ │ │ │ ├── ObjCBeNilTest.m │ │ │ │ │ ├── ObjCBeFalseTest.m │ │ │ │ │ ├── ObjCBeTrueTest.m │ │ │ │ │ ├── NimbleSpecHelper.h │ │ │ │ │ ├── ObjCBeFalsyTest.m │ │ │ │ │ ├── ObjCBeTruthyTest.m │ │ │ │ │ ├── ObjCBeLessThanTest.m │ │ │ │ │ ├── ObjCEqualTest.m │ │ │ │ │ ├── ObjCBeGreaterThanTest.m │ │ │ │ │ ├── ObjCMatchTest.m │ │ │ │ │ ├── ObjCBeLessThanOrEqualToTest.m │ │ │ │ │ ├── ObjCBeKindOfTest.m │ │ │ │ │ ├── ObjCBeginWithTest.m │ │ │ │ │ ├── ObjCBeGreaterThanOrEqualToTest.m │ │ │ │ │ ├── ObjCEndWithTest.m │ │ │ │ │ ├── ObjCBeCloseToTest.m │ │ │ │ │ └── ObjCBeAnInstanceOfTest.m │ │ │ │ ├── Matchers │ │ │ │ │ ├── BeNilTest.swift │ │ │ │ │ └── BeVoidTest.swift │ │ │ │ └── Info.plist │ │ │ └── LinuxMain.swift │ │ ├── .gitignore │ │ ├── circle.yml │ │ ├── .travis.yml │ │ └── Nimble.podspec │ │ └── Sugar │ │ ├── Source │ │ ├── Shared │ │ │ ├── Result.swift │ │ │ ├── TypeAlias.swift │ │ │ ├── UITesting.swift │ │ │ ├── Then.swift │ │ │ ├── Extensions │ │ │ │ ├── String+Validation.swift │ │ │ │ ├── String+URLStringConvertible.swift │ │ │ │ ├── String+Empty.swift │ │ │ │ ├── Array+Queueable.swift │ │ │ │ ├── NSDate+Compare.swift │ │ │ │ ├── String+Regex.swift │ │ │ │ └── String+CoreFoundation.swift │ │ │ ├── Operator.swift │ │ │ ├── UnitTesting.swift │ │ │ ├── Localization.swift │ │ │ └── Swizzler.swift │ │ └── iOS │ │ │ ├── Extensions │ │ │ ├── UIView+AddSubviews.swift │ │ │ ├── UIView+Optimize.swift │ │ │ ├── UIImage+RenderingMode.swift │ │ │ ├── UIView+Frame.swift │ │ │ └── UIDevice+Model.swift │ │ │ ├── Simulator.swift │ │ │ └── Screen.swift │ │ ├── Images │ │ └── icon.png │ │ ├── .slather.yml │ │ ├── Sugar.xcodeproj │ │ └── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── Tests │ │ ├── Mac │ │ │ ├── TestThen.swift │ │ │ └── Info.plist │ │ ├── Shared │ │ │ ├── TestUnitTesting.swift │ │ │ ├── TestTruncate.swift │ │ │ ├── TestOperators.swift │ │ │ ├── TestQueueable.swift │ │ │ ├── TestSwizzler.swift │ │ │ └── TestStringExtensionCoreFoundation.swift │ │ └── iOS │ │ │ ├── TestThen.swift │ │ │ └── Info.plist │ │ ├── CONTRIBUTING.md │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── Sugar.podspec │ │ ├── SupportFiles │ │ ├── Mac │ │ │ └── Info.plist │ │ └── iOS │ │ │ └── Info.plist │ │ └── LICENSE.md │ ├── Cartfile.resolved │ ├── BeerApp.xcodeproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── BeerApp │ └── ViewController.swift │ ├── BeerAppTests │ ├── BeerAppTests.swift │ └── Info.plist │ └── BeerAppUITests │ └── Info.plist ├── Cocoapods └── TeaApp │ ├── Gemfile │ ├── Pods │ ├── Target Support Files │ │ ├── Nimble │ │ │ ├── Nimble-prefix.pch │ │ │ ├── Nimble.modulemap │ │ │ ├── Nimble-dummy.m │ │ │ ├── Nimble-umbrella.h │ │ │ ├── Nimble.xcconfig │ │ │ └── Info.plist │ │ ├── Quick │ │ │ ├── Quick-prefix.pch │ │ │ ├── Quick.modulemap │ │ │ ├── Quick-dummy.m │ │ │ ├── Quick-umbrella.h │ │ │ ├── Quick.xcconfig │ │ │ └── Info.plist │ │ ├── Sugar │ │ │ ├── Sugar-prefix.pch │ │ │ ├── Sugar.modulemap │ │ │ ├── Sugar-dummy.m │ │ │ ├── Sugar-umbrella.h │ │ │ ├── Sugar.xcconfig │ │ │ └── Info.plist │ │ ├── Pods-TeaApp │ │ │ ├── Pods-TeaApp.modulemap │ │ │ ├── Pods-TeaApp-dummy.m │ │ │ ├── Pods-TeaApp-umbrella.h │ │ │ ├── Pods-TeaApp.debug.xcconfig │ │ │ ├── Pods-TeaApp.release.xcconfig │ │ │ └── Info.plist │ │ ├── Pods-TeaAppTests │ │ │ ├── Pods-TeaAppTests.modulemap │ │ │ ├── Pods-TeaAppTests-dummy.m │ │ │ ├── Pods-TeaAppTests-umbrella.h │ │ │ ├── Pods-TeaAppTests.debug.xcconfig │ │ │ ├── Pods-TeaAppTests.release.xcconfig │ │ │ └── Info.plist │ │ └── Pods-TeaAppUITests │ │ │ ├── Pods-TeaAppUITests.modulemap │ │ │ ├── Pods-TeaAppUITests-dummy.m │ │ │ ├── Pods-TeaAppUITests-umbrella.h │ │ │ ├── Pods-TeaAppUITests.debug.xcconfig │ │ │ ├── Pods-TeaAppUITests.release.xcconfig │ │ │ └── Info.plist │ ├── Sugar │ │ ├── Source │ │ │ ├── Shared │ │ │ │ ├── Result.swift │ │ │ │ ├── TypeAlias.swift │ │ │ │ ├── UITesting.swift │ │ │ │ ├── Then.swift │ │ │ │ ├── Extensions │ │ │ │ │ ├── String+Validation.swift │ │ │ │ │ ├── String+URLStringConvertible.swift │ │ │ │ │ ├── String+Empty.swift │ │ │ │ │ ├── Array+Queueable.swift │ │ │ │ │ ├── NSDate+Compare.swift │ │ │ │ │ ├── String+Regex.swift │ │ │ │ │ └── String+CoreFoundation.swift │ │ │ │ ├── Operator.swift │ │ │ │ ├── UnitTesting.swift │ │ │ │ ├── Localization.swift │ │ │ │ └── Swizzler.swift │ │ │ └── iOS │ │ │ │ ├── Extensions │ │ │ │ ├── UIView+AddSubviews.swift │ │ │ │ ├── UIView+Optimize.swift │ │ │ │ ├── UIImage+RenderingMode.swift │ │ │ │ ├── UIView+Frame.swift │ │ │ │ └── UIDevice+Model.swift │ │ │ │ ├── Simulator.swift │ │ │ │ └── Screen.swift │ │ └── LICENSE.md │ ├── Nimble │ │ └── Sources │ │ │ └── Nimble │ │ │ ├── Nimble.h │ │ │ ├── Utils │ │ │ ├── Functional.swift │ │ │ ├── SourceLocation.swift │ │ │ └── ExceptionCapture.swift │ │ │ ├── objc │ │ │ ├── NMBExceptionCapture.h │ │ │ ├── CurrentTestCaseTracker.m │ │ │ └── NMBExceptionCapture.m │ │ │ ├── Matchers │ │ │ ├── BeVoid.swift │ │ │ ├── BeNil.swift │ │ │ └── Match.swift │ │ │ └── Adapters │ │ │ ├── AssertionDispatcher.swift │ │ │ └── AdapterProtocols.swift │ ├── Quick │ │ └── Sources │ │ │ └── Quick │ │ │ ├── String+FileName.swift │ │ │ ├── Hooks │ │ │ ├── HooksPhase.swift │ │ │ ├── SuiteHooks.swift │ │ │ └── Closures.swift │ │ │ ├── Quick.h │ │ │ ├── ErrorUtility.swift │ │ │ ├── NSBundle+CurrentTestBundle.swift │ │ │ ├── NSString+QCKSelectorName.h │ │ │ ├── World.h │ │ │ ├── ExampleMetadata.swift │ │ │ ├── Callsite.swift │ │ │ ├── Filter.swift │ │ │ └── Configuration │ │ │ └── QuickConfiguration.h │ └── Manifest.lock │ ├── TeaApp.xcodeproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── TeaApp.xcworkspace │ └── contents.xcworkspacedata │ ├── Podfile │ ├── Podfile.lock │ ├── TeaApp │ └── ViewController.swift │ ├── TeaAppTests │ ├── TeaAppTests.swift │ └── Info.plist │ └── TeaAppUITests │ └── Info.plist ├── Screenshots ├── carthage_copy_files.png ├── carthage_link_binaries.png ├── cocoapods_link_binaries.png ├── carthage_framework_search_paths.png └── cocoapods_runpath_search_paths.png └── .gitignore /Carthage/BeerApp/Cartfile: -------------------------------------------------------------------------------- 1 | github "hyperoslo/Sugar" ~> 1.0 -------------------------------------------------------------------------------- /Carthage/BeerApp/Cartfile.private: -------------------------------------------------------------------------------- 1 | github "Quick/Nimble" 2 | github "Quick/Quick" -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/.swift-version: -------------------------------------------------------------------------------- 1 | 2.2-SNAPSHOT-2016-01-11-a 2 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/.swift-version: -------------------------------------------------------------------------------- 1 | DEVELOPMENT-SNAPSHOT-2016-02-25-a 2 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem 'cocoapods', '1.0.0.beta.5' -------------------------------------------------------------------------------- /Screenshots/carthage_copy_files.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/TestTarget/HEAD/Screenshots/carthage_copy_files.png -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Nimble/Nimble-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Quick/Quick-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Sugar/Sugar-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Screenshots/carthage_link_binaries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/TestTarget/HEAD/Screenshots/carthage_link_binaries.png -------------------------------------------------------------------------------- /Screenshots/cocoapods_link_binaries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/TestTarget/HEAD/Screenshots/cocoapods_link_binaries.png -------------------------------------------------------------------------------- /Carthage/BeerApp/Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "Quick/Nimble" "v3.2.0" 2 | github "Quick/Quick" "v0.9.1" 3 | github "hyperoslo/Sugar" "1.0.13" 4 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/script/travis-script-linux: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | . ~/.swiftenv/init 4 | rake test:swiftpm 5 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Nimble" 5 | ) 6 | -------------------------------------------------------------------------------- /Screenshots/carthage_framework_search_paths.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/TestTarget/HEAD/Screenshots/carthage_framework_search_paths.png -------------------------------------------------------------------------------- /Screenshots/cocoapods_runpath_search_paths.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/TestTarget/HEAD/Screenshots/cocoapods_runpath_search_paths.png -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Result.swift: -------------------------------------------------------------------------------- 1 | public enum Result { 2 | case Success(T) 3 | case Failure(Error) 4 | } 5 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Externals/Nimble"] 2 | path = Externals/Nimble 3 | url = https://github.com/Quick/Nimble.git 4 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/QuickTestsBridgingHeader.h: -------------------------------------------------------------------------------- 1 | #import "QCKSpecRunner.h" 2 | #import "QuickSpec+QuickSpec_MethodList.h" -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Result.swift: -------------------------------------------------------------------------------- 1 | public enum Result { 2 | case Success(T) 3 | case Failure(Error) 4 | } 5 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/TestTarget/HEAD/Carthage/BeerApp/Carthage/Checkouts/Sugar/Images/icon.png -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/TypeAlias.swift: -------------------------------------------------------------------------------- 1 | public typealias JSONArray = [[String : AnyObject]] 2 | public typealias JSONDictionary = [String : AnyObject] 3 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/.slather.yml: -------------------------------------------------------------------------------- 1 | ci_service: travis_ci 2 | coverage_service: coveralls 3 | xcodeproj: Tests/Tests.xcodeproj 4 | source_directory: Source 5 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/TypeAlias.swift: -------------------------------------------------------------------------------- 1 | public typealias JSONArray = [[String : AnyObject]] 2 | public typealias JSONDictionary = [String : AnyObject] 3 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Quick/Quick.modulemap: -------------------------------------------------------------------------------- 1 | framework module Quick { 2 | umbrella header "Quick-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Sugar/Sugar.modulemap: -------------------------------------------------------------------------------- 1 | framework module Sugar { 2 | umbrella header "Sugar-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Nimble/Nimble.modulemap: -------------------------------------------------------------------------------- 1 | framework module Nimble { 2 | umbrella header "Nimble-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Quick/Quick-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Quick : NSObject 3 | @end 4 | @implementation PodsDummy_Quick 5 | @end 6 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Sugar/Sugar-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Sugar : NSObject 3 | @end 4 | @implementation PodsDummy_Sugar 5 | @end 6 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Nimble/Nimble-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Nimble : NSObject 3 | @end 4 | @implementation PodsDummy_Nimble 5 | @end 6 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaApp/Pods-TeaApp.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_TeaApp { 2 | umbrella header "Pods-TeaApp-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaApp/Pods-TeaApp-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_TeaApp : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_TeaApp 5 | @end 6 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Sugar/Sugar-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double SugarVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char SugarVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/NimbleTests-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppTests/Pods-TeaAppTests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_TeaAppTests { 2 | umbrella header "Pods-TeaAppTests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.h: -------------------------------------------------------------------------------- 1 | @import Quick; 2 | 3 | @interface ___FILEBASENAMEASIDENTIFIER___ : QuickConfiguration 4 | 5 | @end 6 | 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/iOS/Extensions/UIView+AddSubviews.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIView { 4 | 5 | func addSubviews(subviews: UIView...) { 6 | subviews.forEach { addSubview($0) } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppTests/Pods-TeaAppTests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_TeaAppTests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_TeaAppTests 5 | @end 6 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppUITests/Pods-TeaAppUITests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_TeaAppUITests { 2 | umbrella header "Pods-TeaAppUITests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaApp/Pods-TeaApp-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_TeaAppVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_TeaAppVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppUITests/Pods-TeaAppUITests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_TeaAppUITests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_TeaAppUITests 5 | @end 6 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/iOS/Extensions/UIView+AddSubviews.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIView { 4 | 5 | func addSubviews(subviews: UIView...) { 6 | subviews.forEach { addSubview($0) } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/UITesting.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct UITesting { 4 | 5 | public static var isRunning: Bool { 6 | return NSProcessInfo.processInfo().arguments.contains("-ui_testing") 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Spec Class.xctemplate/Objective-C/___FILEBASENAME___.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | QuickSpecBegin(___FILEBASENAMEASIDENTIFIER___) 5 | 6 | QuickSpecEnd 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/TeaApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/BeerApp/BeerApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | xcode: 3 | version: "7.0" 4 | 5 | test: 6 | override: 7 | - NIMBLE_RUNTIME_IOS_SDK_VERSION=9.0 ./test ios 8 | - NIMBLE_RUNTIME_OSX_SDK_VERSION=10.10 ./test osx 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Spec Class.xctemplate/Swift/___FILEBASENAME___.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | import Nimble 3 | 4 | class ___FILEBASENAMEASIDENTIFIER___: QuickSpec { 5 | override func spec() { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Spec Class.xctemplate/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/TestTarget/HEAD/Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Spec Class.xctemplate/TemplateIcon.icns -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/Nimble.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NMBExceptionCapture.h" 3 | #import "DSL.h" 4 | 5 | FOUNDATION_EXPORT double NimbleVersionNumber; 6 | FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/UITesting.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct UITesting { 4 | 5 | public static var isRunning: Bool { 6 | return NSProcessInfo.processInfo().arguments.contains("-ui_testing") 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppTests/Pods-TeaAppTests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_TeaAppTestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_TeaAppTestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/iOS/Extensions/UIView+Optimize.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIView { 4 | 5 | func optimize() { 6 | clipsToBounds = true 7 | layer.drawsAsynchronously = true 8 | opaque = true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppUITests/Pods-TeaAppUITests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_TeaAppUITestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_TeaAppUITestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Nimble.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NMBExceptionCapture.h" 3 | #import "DSL.h" 4 | 5 | FOUNDATION_EXPORT double NimbleVersionNumber; 6 | FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Nimble", 5 | targets: [ 6 | Target(name: "NimbleTests", dependencies: [.Target(name: "Nimble")]) 7 | ] 8 | ) 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Nimble.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/Helpers/ObjectWithLazyProperty.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | class ObjectWithLazyProperty { 4 | init() {} 5 | lazy var value: String = "hello" 6 | lazy var anotherValue: String = { return "world" }() 7 | } 8 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onmyway133/TestTarget/HEAD/Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/TemplateIcon.icns -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/iOS/Extensions/UIView+Optimize.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIView { 4 | 5 | func optimize() { 6 | clipsToBounds = true 7 | layer.drawsAsynchronously = true 8 | opaque = true 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Sugar.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Nimble.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NMBExceptionCapture.h" 3 | #import "DSL.h" 4 | 5 | FOUNDATION_EXPORT double NimbleVersionNumber; 6 | FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/.travis.yml: -------------------------------------------------------------------------------- 1 | osx_image: xcode7 2 | language: objective-c 3 | 4 | env: 5 | matrix: 6 | - NIMBLE_RUNTIME_IOS_SDK_VERSION=9.0 TYPE=ios 7 | - NIMBLE_RUNTIME_OSX_SDK_VERSION=10.10 TYPE=osx 8 | 9 | script: ./test $TYPE 10 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Nimble.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/Helpers/ObjectWithLazyProperty.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | class ObjectWithLazyProperty { 4 | init() {} 5 | lazy var value: String = "hello" 6 | lazy var anotherValue: String = { return "world" }() 7 | } 8 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Then.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public protocol Then {} 4 | extension Then { 5 | 6 | public func then(@noescape block: Self -> Void) -> Self { 7 | block(self) 8 | return self 9 | } 10 | } 11 | 12 | extension NSObject: Then {} 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/Swift/___FILEBASENAME___.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | 3 | class ___FILEBASENAMEASIDENTIFIER___: QuickConfiguration { 4 | override class func configure(configuration: Configuration) { 5 | 6 | } 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/script/travis-install-linux: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | 4 | # See: https://github.com/kylef/swiftenv/wiki/Travis-CI 5 | curl -sL https://gist.github.com/kylef/5c0475ff02b7c7671d2a/raw/621ef9b29bbb852fdfd2e10ed147b321d792c1e4/swiftenv-install.sh | bash 6 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | NS_ASSUME_NONNULL_BEGIN 4 | 5 | @interface QuickSpec (QuickSpec_MethodList) 6 | 7 | + (NSSet *)allSelectors; 8 | 9 | @end 10 | 11 | NS_ASSUME_NONNULL_END 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Then.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public protocol Then {} 4 | extension Then { 5 | 6 | public func then(@noescape block: Self -> Void) -> Self { 7 | block(self) 8 | return self 9 | } 10 | } 11 | 12 | extension NSObject: Then {} 13 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/iOS/Simulator.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct Simulator { 4 | 5 | public static var isRunning: Bool = { 6 | #if (arch(i386) || arch(x86_64)) && os(iOS) 7 | return true 8 | #else 9 | return false 10 | #endif 11 | }() 12 | } 13 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Nimble/Nimble-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "Nimble.h" 4 | #import "DSL.h" 5 | #import "NMBExceptionCapture.h" 6 | 7 | FOUNDATION_EXPORT double NimbleVersionNumber; 8 | FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; 9 | 10 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.m: -------------------------------------------------------------------------------- 1 | #import "___FILEBASENAMEASIDENTIFIER___.h" 2 | 3 | @implementation ___FILEBASENAMEASIDENTIFIER___ 4 | 5 | + (void)configure:(Configuration *)configuration { 6 | 7 | } 8 | 9 | @end 10 | 11 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/iOS/Simulator.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct Simulator { 4 | 5 | public static var isRunning: Bool = { 6 | #if (arch(i386) || arch(x86_64)) && os(iOS) 7 | return true 8 | #else 9 | return false 10 | #endif 11 | }() 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Utils/Functional.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | internal func all(array: [T], fn: (T) -> Bool) -> Bool { 4 | for item in array { 5 | if !fn(item) { 6 | return false 7 | } 8 | } 9 | return true 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Quick/Quick-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "QuickConfiguration.h" 4 | #import "QCKDSL.h" 5 | #import "Quick.h" 6 | #import "QuickSpec.h" 7 | 8 | FOUNDATION_EXPORT double QuickVersionNumber; 9 | FOUNDATION_EXPORT const unsigned char QuickVersionString[]; 10 | 11 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/TeaApp.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickFocusedTests/main.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | 3 | QCKMain([ 4 | FunctionalTests_FocusedSpec_Focused(), 5 | FunctionalTests_FocusedSpec_Unfocused(), 6 | FocusedTests(), 7 | ], 8 | configurations: [FunctionalTests_FocusedSpec_SharedExamplesConfiguration.self] 9 | ) 10 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Extensions/String+Validation.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public extension String { 4 | 5 | public func isEmail() -> Bool { 6 | return match(Regex.Email.pattern) 7 | } 8 | 9 | public func isNumber() -> Bool { 10 | return match(Regex.Number.pattern) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/Mac/TestThen.swift: -------------------------------------------------------------------------------- 1 | import AppKit 2 | import XCTest 3 | @testable import Sugar 4 | 5 | class ThenTests: XCTestCase { 6 | 7 | func testThen() { 8 | let view = NSView().then { 9 | $0.alphaValue = 0.5 10 | } 11 | 12 | XCTAssertEqual(view.alphaValue, 0.5) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Extensions/String+Validation.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public extension String { 4 | 5 | public func isEmail() -> Bool { 6 | return match(Regex.Email.pattern) 7 | } 8 | 9 | public func isNumber() -> Bool { 10 | return match(Regex.Number.pattern) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/iOS/Extensions/UIImage+RenderingMode.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIImage { 4 | 5 | public var original: UIImage { 6 | return imageWithRenderingMode(.AlwaysOriginal) 7 | } 8 | 9 | public var template: UIImage { 10 | return imageWithRenderingMode(.AlwaysTemplate) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Quick.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/iOS/Extensions/UIImage+RenderingMode.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIImage { 4 | 5 | public var original: UIImage { 6 | return imageWithRenderingMode(.AlwaysOriginal) 7 | } 8 | 9 | public var template: UIImage { 10 | return imageWithRenderingMode(.AlwaysTemplate) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/Utils/Functional.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension SequenceType { 4 | internal func all(fn: Generator.Element -> Bool) -> Bool { 5 | for item in self { 6 | if !fn(item) { 7 | return false 8 | } 9 | } 10 | return true 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Utils/Functional.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension SequenceType { 4 | internal func all(fn: Generator.Element -> Bool) -> Bool { 5 | for item in self { 6 | if !fn(item) { 7 | return false 8 | } 9 | } 10 | return true 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTestHelpers/TestRun.swift: -------------------------------------------------------------------------------- 1 | 2 | public struct TestRun { 3 | public var executionCount: UInt 4 | public var hasSucceeded: Bool 5 | 6 | public init(executionCount: UInt, hasSucceeded: Bool) { 7 | self.executionCount = executionCount 8 | self.hasSucceeded = hasSucceeded 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/String+FileName.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension String { 4 | 5 | /** 6 | If the receiver represents a path, returns its file name with a file extension. 7 | */ 8 | var fileName: String? { 9 | return NSURL(string: self)?.URLByDeletingPathExtension?.lastPathComponent 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/iOS/Screen.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public struct Screen { 4 | 5 | public static var pixelSize: CGSize { 6 | let screenSize = UIScreen.mainScreen().bounds.size 7 | let scale = UIScreen.mainScreen().scale 8 | 9 | return CGSize(width: screenSize.width * scale, 10 | height: screenSize.height * scale) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/String+FileName.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension String { 4 | 5 | /** 6 | If the receiver represents a path, returns its file name with a file extension. 7 | */ 8 | var fileName: String? { 9 | return NSURL(string: self)?.URLByDeletingPathExtension?.lastPathComponent 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/Hooks/HooksPhase.swift: -------------------------------------------------------------------------------- 1 | /** 2 | A description of the execution cycle of the current example with 3 | respect to the hooks of that example. 4 | */ 5 | internal enum HooksPhase: Int { 6 | case NothingExecuted = 0 7 | case BeforesExecuting 8 | case BeforesFinished 9 | case AftersExecuting 10 | case AftersFinished 11 | } 12 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/Quick.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | //! Project version number for Quick. 4 | FOUNDATION_EXPORT double QuickVersionNumber; 5 | 6 | //! Project version string for Quick. 7 | FOUNDATION_EXPORT const unsigned char QuickVersionString[]; 8 | 9 | #import "QuickSpec.h" 10 | #import "QCKDSL.h" 11 | #import "QuickConfiguration.h" 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/script/travis-install-osx: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | set -e 3 | 4 | git submodule update --init --recursive 5 | 6 | # There is a bug in a formula resulting in update failing if run once, but not the second time 7 | # See https://github.com/Homebrew/homebrew/issues/45616 8 | brew update || brew update 9 | brew outdated xctool || brew upgrade xctool 10 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/iOS/Screen.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public struct Screen { 4 | 5 | public static var pixelSize: CGSize { 6 | let screenSize = UIScreen.mainScreen().bounds.size 7 | let scale = UIScreen.mainScreen().scale 8 | 9 | return CGSize(width: screenSize.width * scale, 10 | height: screenSize.height * scale) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Configuration/QuickConfiguration.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | // NOTE: This file is not intended to be included in the Xcode project or CocoaPods. 4 | // It is picked up by the Swift Package Manager during its build process. 5 | 6 | public class QuickConfiguration { 7 | public class func configure(configuration: Configuration) {} 8 | } 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/Shared/TestUnitTesting.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import XCTest 3 | @testable import Sugar 4 | 5 | class UnitTestTests: XCTestCase { 6 | 7 | func testMeasure() { 8 | let timing = UnitTesting.measure { 9 | for _ in [0...1000] { } 10 | } 11 | XCTAssertTrue(timing > 0) 12 | XCTAssertTrue(timing < 1) 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Hooks/HooksPhase.swift: -------------------------------------------------------------------------------- 1 | /** 2 | A description of the execution cycle of the current example with 3 | respect to the hooks of that example. 4 | */ 5 | internal enum HooksPhase: Int { 6 | case NothingExecuted = 0 7 | case BeforesExecuting 8 | case BeforesFinished 9 | case AftersExecuting 10 | case AftersFinished 11 | } 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Quick.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | //! Project version number for Quick. 4 | FOUNDATION_EXPORT double QuickVersionNumber; 5 | 6 | //! Project version string for Quick. 7 | FOUNDATION_EXPORT const unsigned char QuickVersionString[]; 8 | 9 | #import "QuickSpec.h" 10 | #import "QCKDSL.h" 11 | #import "QuickConfiguration.h" 12 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Operator.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | infix operator ?= { associativity right precedence 90 } 4 | 5 | public func ?=(inout left: T, right: T?) { 6 | guard let value = right else { return } 7 | left = value 8 | } 9 | 10 | public func ?=(inout left: T?, right: T?) { 11 | guard let value = right else { return } 12 | left = value 13 | } 14 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/objc/NMBExceptionCapture.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface NMBExceptionCapture : NSObject 5 | 6 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally; 7 | - (void)tryBlock:(void(^)())unsafeBlock; 8 | 9 | @end 10 | 11 | typedef void(^NMBSourceCallbackBlock)(BOOL successful); 12 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/ErrorUtility.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @noreturn internal func raiseError(message: String) { 4 | #if _runtime(_ObjC) 5 | NSException(name: NSInternalInconsistencyException, reason: message, userInfo: nil).raise() 6 | #endif 7 | 8 | // This won't be reached when ObjC is available and the exception above is raisd 9 | fatalError(message) 10 | } 11 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Operator.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | infix operator ?= { associativity right precedence 90 } 4 | 5 | public func ?=(inout left: T, right: T?) { 6 | guard let value = right else { return } 7 | left = value 8 | } 9 | 10 | public func ?=(inout left: T?, right: T?) { 11 | guard let value = right else { return } 12 | left = value 13 | } 14 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/ErrorUtility.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @noreturn internal func raiseError(message: String) { 4 | #if _runtime(_ObjC) 5 | NSException(name: NSInternalInconsistencyException, reason: message, userInfo: nil).raise() 6 | #endif 7 | 8 | // This won't be reached when ObjC is available and the exception above is raisd 9 | fatalError(message) 10 | } 11 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/objc/NMBExceptionCapture.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface NMBExceptionCapture : NSObject 5 | 6 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally; 7 | - (void)tryBlock:(void(^)())unsafeBlock; 8 | 9 | @end 10 | 11 | typedef void(^NMBSourceCallbackBlock)(BOOL successful); 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/QuickConfigurationTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface QuickConfigurationTests : XCTestCase; @end 5 | 6 | @implementation QuickConfigurationTests 7 | 8 | - (void)testInitThrows { 9 | XCTAssertThrowsSpecificNamed([QuickConfiguration new], NSException, NSInternalInconsistencyException); 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '8.0' 2 | use_frameworks! 3 | 4 | def app_pods 5 | pod 'Sugar', '~> 1.0' 6 | end 7 | 8 | def test_pods 9 | pod 'Nimble', '~> 3.2' 10 | pod 'Quick', '~> 0.9' 11 | end 12 | 13 | target 'TeaApp' do 14 | app_pods 15 | end 16 | 17 | target 'TeaAppTests' do 18 | app_pods 19 | test_pods 20 | end 21 | 22 | target 'TeaAppUITests' do 23 | app_pods 24 | test_pods 25 | end 26 | 27 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Extensions/String+URLStringConvertible.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public protocol URLStringConvertible { 4 | var url: NSURL? { get } 5 | var string: String { get } 6 | } 7 | 8 | extension String: URLStringConvertible { 9 | 10 | public var url: NSURL? { 11 | return NSURL(string: self) 12 | } 13 | 14 | public var string: String { 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/objc/NMBExceptionCapture.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface NMBExceptionCapture : NSObject 5 | 6 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally; 7 | - (void)tryBlock:(void(^)())unsafeBlock; 8 | 9 | @end 10 | 11 | typedef void(^NMBSourceCallbackBlock)(BOOL successful); 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Extensions/String+URLStringConvertible.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public protocol URLStringConvertible { 4 | var url: NSURL? { get } 5 | var string: String { get } 6 | } 7 | 8 | extension String: URLStringConvertible { 9 | 10 | public var url: NSURL? { 11 | return NSURL(string: self) 12 | } 13 | 14 | public var string: String { 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/iOS/TestThen.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | @testable import Sugar 4 | 5 | class ThenTests: XCTestCase { 6 | 7 | func testThen() { 8 | let view = UIView().then { 9 | $0.backgroundColor = UIColor.blackColor() 10 | $0.alpha = 0.5 11 | } 12 | 13 | XCTAssertEqual(view.alpha, 0.5) 14 | XCTAssertEqual(view.backgroundColor, UIColor.blackColor()) 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | xcuserdata/ 3 | build/ 4 | .idea 5 | DerivedData/ 6 | Nimble.framework.zip 7 | 8 | # Carthage 9 | # 10 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 11 | # Carthage/Checkouts 12 | 13 | Carthage/Build 14 | 15 | # Swift Package Manager 16 | # 17 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 18 | # Packages/ 19 | .build/ 20 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Nimble (3.2.0) 3 | - Quick (0.9.1) 4 | - Sugar (1.0.13) 5 | 6 | DEPENDENCIES: 7 | - Nimble (~> 3.2) 8 | - Quick (~> 0.9) 9 | - Sugar (~> 1.0) 10 | 11 | SPEC CHECKSUMS: 12 | Nimble: 703854335d181df169bbca9c97117b5cf8c47c1d 13 | Quick: a5221fc21788b6aeda934805e68b061839bc3165 14 | Sugar: ca8778ac9d076fba1366b889e6bc205f376465e4 15 | 16 | PODFILE CHECKSUM: 08509db3db9b078545c9a35d18aefd20fbe86bf2 17 | 18 | COCOAPODS: 1.0.0.beta.5 19 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Nimble (3.2.0) 3 | - Quick (0.9.1) 4 | - Sugar (1.0.13) 5 | 6 | DEPENDENCIES: 7 | - Nimble (~> 3.2) 8 | - Quick (~> 0.9) 9 | - Sugar (~> 1.0) 10 | 11 | SPEC CHECKSUMS: 12 | Nimble: 703854335d181df169bbca9c97117b5cf8c47c1d 13 | Quick: a5221fc21788b6aeda934805e68b061839bc3165 14 | Sugar: ca8778ac9d076fba1366b889e6bc205f376465e4 15 | 16 | PODFILE CHECKSUM: 08509db3db9b078545c9a35d18aefd20fbe86bf2 17 | 18 | COCOAPODS: 1.0.0.beta.5 19 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/UnitTesting.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import QuartzCore 3 | 4 | public struct UnitTesting { 5 | 6 | public static var isRunning: Bool { 7 | return NSProcessInfo.processInfo().environment["XCInjectBundle"] != nil 8 | } 9 | 10 | public static func measure(closure: () -> Void) -> Float { 11 | let start = CACurrentMediaTime() 12 | closure() 13 | let end = CACurrentMediaTime() 14 | 15 | return Float(end - start) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | xcuserdata/ 3 | build/ 4 | .idea 5 | DerivedData/ 6 | Nimble.framework.zip 7 | 8 | # Carthage 9 | # 10 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 11 | # Carthage/Checkouts 12 | 13 | Carthage/Build 14 | 15 | # Swift Package Manager 16 | # 17 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 18 | # Packages/ 19 | .build/ 20 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/Configuration/AfterEach/Configuration+AfterEach.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | 3 | public var FunctionalTests_Configuration_AfterEachWasExecuted = false 4 | 5 | class FunctionalTests_Configuration_AfterEach: QuickConfiguration { 6 | override class func configure(configuration: Configuration) { 7 | configuration.afterEach { 8 | FunctionalTests_Configuration_AfterEachWasExecuted = true 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/UnitTesting.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import QuartzCore 3 | 4 | public struct UnitTesting { 5 | 6 | public static var isRunning: Bool { 7 | return NSProcessInfo.processInfo().environment["XCInjectBundle"] != nil 8 | } 9 | 10 | public static func measure(closure: () -> Void) -> Float { 11 | let start = CACurrentMediaTime() 12 | closure() 13 | let end = CACurrentMediaTime() 14 | 15 | return Float(end - start) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/Configuration/BeforeEach/Configuration+BeforeEach.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | 3 | public var FunctionalTests_Configuration_BeforeEachWasExecuted = false 4 | 5 | class FunctionalTests_Configuration_BeforeEach: QuickConfiguration { 6 | override class func configure(configuration: Configuration) { 7 | configuration.beforeEach { 8 | FunctionalTests_Configuration_BeforeEachWasExecuted = true 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/script/travis-script-osx: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | rake test:ios 4 | rake test:osx 5 | rake test:xctool:ios 6 | 7 | # Due to the `pending` specs using a `print` xctool fails generating the report, 8 | # which in turn makes the tests fail. 9 | # See https://github.com/facebook/xctool/issues/314#issuecomment-152988101 and comments 10 | # for details. 11 | # See https://circleci.com/gh/mokagio/Quick/12 for a proof that without `print` the test pass. 12 | #rake test:xctool:osx 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | .AppleDouble 4 | .LSOverride 5 | Icon 6 | ._* 7 | .Spotlight-V100 8 | .Trashes 9 | 10 | # Xcode 11 | # 12 | build/ 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata 22 | *.xccheckout 23 | *.moved-aside 24 | DerivedData 25 | *.hmap 26 | *.ipa 27 | *.xcuserstate 28 | 29 | # CocoaPods 30 | # Pods 31 | 32 | # Carthage 33 | # Carthage 34 | 35 | # SPM 36 | .build/ 37 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/.travis.yml: -------------------------------------------------------------------------------- 1 | os: 2 | - osx 3 | - linux 4 | language: generic 5 | osx_image: xcode7.2 6 | sudo: required 7 | dist: trusty 8 | install: 9 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./script/travis-install-osx; fi 10 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./script/travis-install-linux; fi 11 | script: 12 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./script/travis-script-osx; fi 13 | - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./script/travis-script-linux; fi 14 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/NSBundle+CurrentTestBundle.swift: -------------------------------------------------------------------------------- 1 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS) 2 | 3 | import Foundation 4 | 5 | extension NSBundle { 6 | 7 | /** 8 | Locates the first bundle with a '.xctest' file extension. 9 | */ 10 | internal static var currentTestBundle: NSBundle? { 11 | return allBundles().lazy 12 | .filter { 13 | $0.bundlePath.hasSuffix(".xctest") 14 | } 15 | .first 16 | } 17 | 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCSyncTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "NimbleSpecHelper.h" 4 | 5 | @interface ObjCSyncTest : XCTestCase 6 | 7 | @end 8 | 9 | @implementation ObjCSyncTest 10 | 11 | - (void)testFailureExpectation { 12 | expectFailureMessage(@"fail() always fails", ^{ 13 | fail(); 14 | }); 15 | 16 | expectFailureMessage(@"This always fails", ^{ 17 | failWithMessage(@"This always fails"); 18 | }); 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | GitHub Issues is for reporting bugs, discussing features and general feedback in **Sugar**. Be sure to check our [documentation](http://cocoadocs.org/docsets/Sugar), [FAQ](https://github.com/hyperoslo/Sugar/wiki/FAQ) and [past issues](https://github.com/hyperoslo/Sugar/issues?state=closed) before opening any new issues. 2 | 3 | If you are posting about a crash in your application, a stack trace is helpful, but additional context, in the form of code and explanation, is necessary to be of any use. 4 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/NSBundle+CurrentTestBundle.swift: -------------------------------------------------------------------------------- 1 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS) 2 | 3 | import Foundation 4 | 5 | extension NSBundle { 6 | 7 | /** 8 | Locates the first bundle with a '.xctest' file extension. 9 | */ 10 | internal static var currentTestBundle: NSBundle? { 11 | return allBundles().lazy 12 | .filter { 13 | $0.bundlePath.hasSuffix(".xctest") 14 | } 15 | .first 16 | } 17 | 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | .AppleDouble 4 | .LSOverride 5 | Icon 6 | ._* 7 | .Spotlight-V100 8 | .Trashes 9 | 10 | # Xcode 11 | # 12 | build/ 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata 22 | *.xccheckout 23 | *.moved-aside 24 | DerivedData 25 | *.hmap 26 | *.ipa 27 | *.xcuserstate 28 | 29 | # CocoaPods 30 | Pods 31 | 32 | # Carthage 33 | Carthage 34 | 35 | # SPM 36 | .build/ 37 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Utils/SourceLocation.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | 4 | public class SourceLocation : NSObject { 5 | public let file: String 6 | public let line: UInt 7 | 8 | override init() { 9 | file = "Unknown File" 10 | line = 0 11 | } 12 | 13 | init(file: String, line: UInt) { 14 | self.file = file 15 | self.line = line 16 | } 17 | 18 | override public var description: String { 19 | return "\(file):\(line)" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCSyncTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "NimbleSpecHelper.h" 4 | 5 | @interface ObjCSyncTest : XCTestCase 6 | 7 | @end 8 | 9 | @implementation ObjCSyncTest 10 | 11 | - (void)testFailureExpectation { 12 | expectFailureMessage(@"fail() always fails", ^{ 13 | fail(); 14 | }); 15 | 16 | expectFailureMessage(@"This always fails", ^{ 17 | failWithMessage(@"This always fails"); 18 | }); 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Extensions/String+Empty.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public extension String { 4 | 5 | public var isEmptyOrWhiteSpace: Bool { 6 | return stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()).isEmpty 7 | } 8 | } 9 | 10 | public protocol OptionalString {} 11 | extension String: OptionalString {} 12 | 13 | public extension Optional where Wrapped: OptionalString { 14 | 15 | public var isNilOrEmpty: Bool { 16 | return ((self as? String) ?? "").isEmpty 17 | } 18 | } -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaApp/Pods-TeaApp.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$CONFIGURATION_BUILD_DIR/Sugar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Sugar/Sugar.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "Sugar" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Sugar/Sugar.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_SHARED_BUILD_DIR/Sugar 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_LDFLAGS = -framework "Foundation" 5 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_SHARED_BUILD_DIR = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaApp/Pods-TeaApp.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$CONFIGURATION_BUILD_DIR/Sugar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Sugar/Sugar.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "Sugar" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Extensions/String+Empty.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public extension String { 4 | 5 | public var isEmptyOrWhiteSpace: Bool { 6 | return stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()).isEmpty 7 | } 8 | } 9 | 10 | public protocol OptionalString {} 11 | extension String: OptionalString {} 12 | 13 | public extension Optional where Wrapped: OptionalString { 14 | 15 | public var isNilOrEmpty: Bool { 16 | return ((self as? String) ?? "").isEmpty 17 | } 18 | } -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | xcode: 3 | version: "7.0" 4 | 5 | dependencies: 6 | pre: 7 | - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)" 8 | 9 | test: 10 | override: 11 | - NIMBLE_RUNTIME_IOS_SDK_VERSION=9.0 ./test ios 12 | - NIMBLE_RUNTIME_OSX_SDK_VERSION=10.10 ./test osx 13 | - eval "$(swiftenv init -)"; ./test swiftpm: 14 | environment: 15 | SWIFTENV_ROOT: $HOME/.swiftenv 16 | PATH: $SWIFTENV_ROOT/bin:$PATH 17 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Extensions/Array+Queueable.swift: -------------------------------------------------------------------------------- 1 | public protocol Queueable { 2 | func process() -> Bool 3 | } 4 | 5 | public extension Array where Element : Queueable { 6 | 7 | public mutating func processQueue(from: Int = 0, _ to: Int? = nil, process: ((element: Element) -> Void)? = nil) { 8 | let to = to != nil ? to! : count 9 | let currentQueue = self[from.. MatcherFunc<()> { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be void" 7 | let actualValue: ()? = try actualExpression.evaluate() 8 | return actualValue != nil 9 | } 10 | } 11 | 12 | public func ==(lhs: Expectation<()>, rhs: ()) { 13 | lhs.to(beVoid()) 14 | } 15 | 16 | public func !=(lhs: Expectation<()>, rhs: ()) { 17 | lhs.toNot(beVoid()) 18 | } -------------------------------------------------------------------------------- /Carthage/BeerApp/BeerApp/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // BeerApp 4 | // 5 | // Created by Khoa Pham on 01/04/16. 6 | // Copyright © 2016 Fantageek. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/TeaApp/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // TeaApp 4 | // 5 | // Created by Khoa Pham on 01/04/16. 6 | // Copyright © 2016 Fantageek. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | // Do any additional setup after loading the view, typically from a nib. 16 | } 17 | 18 | override func didReceiveMemoryWarning() { 19 | super.didReceiveMemoryWarning() 20 | // Dispose of any resources that can be recreated. 21 | } 22 | 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Extensions/Array+Queueable.swift: -------------------------------------------------------------------------------- 1 | public protocol Queueable { 2 | func process() -> Bool 3 | } 4 | 5 | public extension Array where Element : Queueable { 6 | 7 | public mutating func processQueue(from: Int = 0, _ to: Int? = nil, process: ((element: Element) -> Void)? = nil) { 8 | let to = to != nil ? to! : count 9 | let currentQueue = self[from.. MatcherFunc<()> { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be void" 7 | let actualValue: ()? = try actualExpression.evaluate() 8 | return actualValue != nil 9 | } 10 | } 11 | 12 | public func ==(lhs: Expectation<()>, rhs: ()) { 13 | lhs.to(beVoid()) 14 | } 15 | 16 | public func !=(lhs: Expectation<()>, rhs: ()) { 17 | lhs.toNot(beVoid()) 18 | } -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/Shared/TestTruncate.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import XCTest 3 | @testable import Sugar 4 | 5 | class StringTruncateTests: XCTestCase { 6 | 7 | let testString = "John Hyperseed" 8 | 9 | func testTruncate() { 10 | XCTAssertEqual(testString.truncate(4), "John...") 11 | XCTAssertNotEqual(testString.truncate(5), "John...") 12 | } 13 | 14 | func testTruncateSuffix() { 15 | XCTAssertEqual(testString.truncate(4, suffix: "-"), "John-") 16 | } 17 | 18 | func testTruncateWithShortString() { 19 | XCTAssertEqual(testString.truncate(20), testString) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeNilTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeNilTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeNilTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(nil).to(beNil()); 12 | expect(@NO).toNot(beNil()); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be nil, got <1.0000>", ^{ 17 | expect(@1).to(beNil()); 18 | }); 19 | expectFailureMessage(@"expected to not be nil, got ", ^{ 20 | expect(nil).toNot(beNil()); 21 | }); 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/objc/CurrentTestCaseTracker.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | SWIFT_CLASS("_TtC6Nimble22CurrentTestCaseTracker") 5 | @interface CurrentTestCaseTracker : NSObject 6 | + (CurrentTestCaseTracker *)sharedInstance; 7 | @end 8 | 9 | @interface CurrentTestCaseTracker (Register) @end 10 | 11 | @implementation CurrentTestCaseTracker (Register) 12 | 13 | + (void)load { 14 | CurrentTestCaseTracker *tracker = [CurrentTestCaseTracker sharedInstance]; 15 | [[XCTestObservationCenter sharedTestObservationCenter] addTestObserver:tracker]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/NSString+QCKSelectorName.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | /** 4 | QuickSpec converts example names into test methods. 5 | Those test methods need valid selector names, which means no whitespace, 6 | control characters, etc. This category gives NSString objects an easy way 7 | to replace those illegal characters with underscores. 8 | */ 9 | @interface NSString (QCKSelectorName) 10 | 11 | /** 12 | Returns a string with underscores in place of all characters that cannot 13 | be included in a selector (SEL) name. 14 | */ 15 | @property (nonatomic, readonly) NSString *qck_selectorName; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/.travis.yml: -------------------------------------------------------------------------------- 1 | osx_image: xcode7.2 2 | language: generic 3 | matrix: 4 | include: 5 | - os: osx 6 | env: NIMBLE_RUNTIME_IOS_SDK_VERSION=9.0 TYPE=ios 7 | - os: osx 8 | env: NIMBLE_RUNTIME_OSX_SDK_VERSION=10.10 TYPE=osx 9 | - os: osx 10 | env: TYPE=swiftpm 11 | - os: linux 12 | dist: trusty 13 | sudo: required 14 | env: TYPE=swiftpm 15 | install: 16 | - if [[ "$TYPE" == "swiftpm" ]]; then eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)"; fi 17 | script: 18 | - ./test $TYPE 19 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/objc/CurrentTestCaseTracker.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | SWIFT_CLASS("_TtC6Nimble22CurrentTestCaseTracker") 5 | @interface CurrentTestCaseTracker : NSObject 6 | + (CurrentTestCaseTracker *)sharedInstance; 7 | @end 8 | 9 | @interface CurrentTestCaseTracker (Register) @end 10 | 11 | @implementation CurrentTestCaseTracker (Register) 12 | 13 | + (void)load { 14 | CurrentTestCaseTracker *tracker = [CurrentTestCaseTracker sharedInstance]; 15 | [[XCTestObservationCenter sharedTestObservationCenter] addTestObserver:tracker]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/Shared/TestOperators.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import XCTest 3 | @testable import Sugar 4 | 5 | class OperatorTests: XCTestCase { 6 | 7 | func testIfLetAssignment() { 8 | let hyper = NSURL(string: "hyper.no")! 9 | let faultyURL = NSURL(string: "\\/http") 10 | let nilURL: NSURL? = nil 11 | 12 | var testURL: NSURL? 13 | testURL ?= hyper 14 | XCTAssertEqual(testURL, hyper) 15 | 16 | testURL ?= faultyURL 17 | XCTAssertNotEqual(testURL, faultyURL) 18 | 19 | testURL ?= nilURL 20 | XCTAssertNotEqual(testURL, nilURL) 21 | 22 | XCTAssertEqual(testURL, hyper) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Extensions/NSDate+Compare.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension NSDate : Comparable {} 4 | 5 | public func < (lhs: NSDate, rhs: NSDate) -> Bool { 6 | return lhs.timeIntervalSince1970 < rhs.timeIntervalSince1970 7 | } 8 | 9 | public func <= (lhs: NSDate, rhs: NSDate) -> Bool { 10 | return lhs.timeIntervalSince1970 <= rhs.timeIntervalSince1970 11 | } 12 | 13 | public func >= (lhs: NSDate, rhs: NSDate) -> Bool { 14 | return lhs.timeIntervalSince1970 >= rhs.timeIntervalSince1970 15 | } 16 | 17 | public func > (lhs: NSDate, rhs: NSDate) -> Bool { 18 | return lhs.timeIntervalSince1970 > rhs.timeIntervalSince1970 19 | } 20 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/NSString+QCKSelectorName.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | /** 4 | QuickSpec converts example names into test methods. 5 | Those test methods need valid selector names, which means no whitespace, 6 | control characters, etc. This category gives NSString objects an easy way 7 | to replace those illegal characters with underscores. 8 | */ 9 | @interface NSString (QCKSelectorName) 10 | 11 | /** 12 | Returns a string with underscores in place of all characters that cannot 13 | be included in a selector (SEL) name. 14 | */ 15 | @property (nonatomic, readonly) NSString *qck_selectorName; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeFalseTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeFalseTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeFalseTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@NO).to(beFalse()); 12 | expect(@YES).toNot(beFalse()); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectNilFailureMessage(@"expected to be false, got ", ^{ 17 | expect(nil).to(beFalse()); 18 | }); 19 | expectNilFailureMessage(@"expected to not be false, got ", ^{ 20 | expect(nil).toNot(beFalse()); 21 | }); 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeNilTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeNilTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeNilTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(nil).to(beNil()); 12 | expect(@NO).toNot(beNil()); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be nil, got <1.0000>", ^{ 17 | expect(@1).to(beNil()); 18 | }); 19 | expectFailureMessage(@"expected to not be nil, got ", ^{ 20 | expect(nil).toNot(beNil()); 21 | }); 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Quick/Quick.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_SHARED_BUILD_DIR/Quick 2 | ENABLE_BITCODE = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 6 | OTHER_LDFLAGS = -framework "XCTest" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_SHARED_BUILD_DIR = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Extensions/NSDate+Compare.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension NSDate : Comparable {} 4 | 5 | public func < (lhs: NSDate, rhs: NSDate) -> Bool { 6 | return lhs.timeIntervalSince1970 < rhs.timeIntervalSince1970 7 | } 8 | 9 | public func <= (lhs: NSDate, rhs: NSDate) -> Bool { 10 | return lhs.timeIntervalSince1970 <= rhs.timeIntervalSince1970 11 | } 12 | 13 | public func >= (lhs: NSDate, rhs: NSDate) -> Bool { 14 | return lhs.timeIntervalSince1970 >= rhs.timeIntervalSince1970 15 | } 16 | 17 | public func > (lhs: NSDate, rhs: NSDate) -> Bool { 18 | return lhs.timeIntervalSince1970 > rhs.timeIntervalSince1970 19 | } 20 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeTrueTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeTrueTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeTrueTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@YES).to(beTrue()); 12 | expect(@NO).toNot(beTrue()); 13 | expect(nil).toNot(beTrue()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be true, got <0.0000>", ^{ 18 | expect(@NO).to(beTrue()); 19 | }); 20 | expectFailureMessage(@"expected to be true, got ", ^{ 21 | expect(nil).to(beTrue()); 22 | }); 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeFalseTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeFalseTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeFalseTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@NO).to(beFalse()); 12 | expect(@YES).toNot(beFalse()); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectNilFailureMessage(@"expected to be false, got ", ^{ 17 | expect(nil).to(beFalse()); 18 | }); 19 | expectNilFailureMessage(@"expected to not be false, got ", ^{ 20 | expect(nil).toNot(beFalse()); 21 | }); 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Extensions/String+Regex.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public enum Regex: String { 4 | 5 | case Email = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}" 6 | case Number = "^[0-9]*?$" 7 | 8 | var pattern: String { 9 | return rawValue 10 | } 11 | } 12 | 13 | public extension String { 14 | 15 | public func match(pattern: String) -> Bool { 16 | do { 17 | let regex = try NSRegularExpression(pattern: pattern, options: [.CaseInsensitive]) 18 | return regex.firstMatchInString(self, options: NSMatchingOptions(rawValue: 0), range: NSMakeRange(0, characters.count)) != nil 19 | } catch { 20 | return false 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Nimble/Nimble.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_SHARED_BUILD_DIR/Nimble 2 | ENABLE_BITCODE = NO 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 6 | OTHER_LDFLAGS = -weak-lswiftXCTest -weak_framework "XCTest" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_SHARED_BUILD_DIR = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | cache: cocoapods 3 | before_install: gem install cocoapods obcd slather -N 4 | 5 | # Use when you don't have third party dependencies 6 | script: xctool -project Pod/Pod.xcodeproj -scheme Tests -sdk iphonesimulator build test GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test 7 | 8 | # Use when you have third party dependencies (CocoaPods generates a workspace) 9 | # podfile: Pod/Podfile 10 | # script: xctool -workspace Pod/Pod.xcworkspace -scheme Tests -sdk iphonesimulator build test GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test 11 | 12 | after_success: slather 13 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/Matchers/BeNilTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | 4 | class BeNilTest: XCTestCase { 5 | func producesNil() -> Array? { 6 | return nil 7 | } 8 | 9 | func testBeNil() { 10 | expect(nil as Int?).to(beNil()) 11 | expect(1 as Int?).toNot(beNil()) 12 | expect(self.producesNil()).to(beNil()) 13 | 14 | failsWithErrorMessage("expected to not be nil, got ") { 15 | expect(nil as Int?).toNot(beNil()) 16 | } 17 | 18 | failsWithErrorMessage("expected to be nil, got <1>") { 19 | expect(1 as Int?).to(beNil()) 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeTrueTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeTrueTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeTrueTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@YES).to(beTrue()); 12 | expect(@NO).toNot(beTrue()); 13 | expect(nil).toNot(beTrue()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be true, got <0.0000>", ^{ 18 | expect(@NO).to(beTrue()); 19 | }); 20 | expectFailureMessage(@"expected to be true, got ", ^{ 21 | expect(nil).to(beTrue()); 22 | }); 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Extensions/String+Regex.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public enum Regex: String { 4 | 5 | case Email = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}" 6 | case Number = "^[0-9]*?$" 7 | 8 | var pattern: String { 9 | return rawValue 10 | } 11 | } 12 | 13 | public extension String { 14 | 15 | public func match(pattern: String) -> Bool { 16 | do { 17 | let regex = try NSRegularExpression(pattern: pattern, options: [.CaseInsensitive]) 18 | return regex.firstMatchInString(self, options: NSMatchingOptions(rawValue: 0), range: NSMakeRange(0, characters.count)) != nil 19 | } catch { 20 | return false 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/World.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class ExampleGroup; 4 | @class ExampleMetadata; 5 | 6 | SWIFT_CLASS("_TtC5Quick5World") 7 | @interface World 8 | 9 | @property (nonatomic) ExampleGroup * __nullable currentExampleGroup; 10 | @property (nonatomic) ExampleMetadata * __nullable currentExampleMetadata; 11 | @property (nonatomic) BOOL isRunningAdditionalSuites; 12 | + (World * __nonnull)sharedWorld; 13 | - (void)configure:(void (^ __nonnull)(Configuration * __nonnull))closure; 14 | - (void)finalizeConfiguration; 15 | - (ExampleGroup * __nonnull)rootExampleGroupForSpecClass:(Class __nonnull)cls; 16 | - (NSArray * __nonnull)examplesForSpecClass:(Class __nonnull)specClass; 17 | @end 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/World.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class ExampleGroup; 4 | @class ExampleMetadata; 5 | 6 | SWIFT_CLASS("_TtC5Quick5World") 7 | @interface World 8 | 9 | @property (nonatomic) ExampleGroup * __nullable currentExampleGroup; 10 | @property (nonatomic) ExampleMetadata * __nullable currentExampleMetadata; 11 | @property (nonatomic) BOOL isRunningAdditionalSuites; 12 | + (World * __nonnull)sharedWorld; 13 | - (void)configure:(void (^ __nonnull)(Configuration * __nonnull))closure; 14 | - (void)finalizeConfiguration; 15 | - (ExampleGroup * __nonnull)rootExampleGroupForSpecClass:(Class __nonnull)cls; 16 | - (NSArray * __nonnull)examplesForSpecClass:(Class __nonnull)specClass; 17 | @end 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Matchers/BeNil.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// A Nimble matcher that succeeds when the actual value is nil. 4 | public func beNil() -> MatcherFunc { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be nil" 7 | let actualValue = try actualExpression.evaluate() 8 | return actualValue == nil 9 | } 10 | } 11 | 12 | extension NMBObjCMatcher { 13 | public class func beNilMatcher() -> NMBObjCMatcher { 14 | return NMBObjCMatcher { actualExpression, failureMessage in 15 | return try! beNil().matches(actualExpression, failureMessage: failureMessage) 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/ExampleMetadata.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /** 4 | A class that encapsulates information about an example, 5 | including the index at which the example was executed, as 6 | well as the example itself. 7 | */ 8 | final public class ExampleMetadata: NSObject { 9 | /** 10 | The example for which this metadata was collected. 11 | */ 12 | public let example: Example 13 | 14 | /** 15 | The index at which this example was executed in the 16 | test suite. 17 | */ 18 | public let exampleIndex: Int 19 | 20 | internal init(example: Example, exampleIndex: Int) { 21 | self.example = example 22 | self.exampleIndex = exampleIndex 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/Matchers/BeNil.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// A Nimble matcher that succeeds when the actual value is nil. 4 | public func beNil() -> MatcherFunc { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be nil" 7 | let actualValue = try actualExpression.evaluate() 8 | return actualValue == nil 9 | } 10 | } 11 | 12 | #if _runtime(_ObjC) 13 | extension NMBObjCMatcher { 14 | public class func beNilMatcher() -> NMBObjCMatcher { 15 | return NMBObjCMatcher { actualExpression, failureMessage in 16 | return try! beNil().matches(actualExpression, failureMessage: failureMessage) 17 | } 18 | } 19 | } 20 | #endif 21 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/ExampleMetadata.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /** 4 | A class that encapsulates information about an example, 5 | including the index at which the example was executed, as 6 | well as the example itself. 7 | */ 8 | final public class ExampleMetadata: NSObject { 9 | /** 10 | The example for which this metadata was collected. 11 | */ 12 | public let example: Example 13 | 14 | /** 15 | The index at which this example was executed in the 16 | test suite. 17 | */ 18 | public let exampleIndex: Int 19 | 20 | internal init(example: Example, exampleIndex: Int) { 21 | self.example = example 22 | self.exampleIndex = exampleIndex 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Matchers/BeNil.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// A Nimble matcher that succeeds when the actual value is nil. 4 | public func beNil() -> MatcherFunc { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be nil" 7 | let actualValue = try actualExpression.evaluate() 8 | return actualValue == nil 9 | } 10 | } 11 | 12 | #if _runtime(_ObjC) 13 | extension NMBObjCMatcher { 14 | public class func beNilMatcher() -> NMBObjCMatcher { 15 | return NMBObjCMatcher { actualExpression, failureMessage in 16 | return try! beNil().matches(actualExpression, failureMessage: failureMessage) 17 | } 18 | } 19 | } 20 | #endif 21 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/NimbleSpecHelper.h: -------------------------------------------------------------------------------- 1 | @import Nimble; 2 | #import "NimbleTests-Swift.h" 3 | 4 | // Use this when you want to verify the failure message for when an expectation fails 5 | #define expectFailureMessage(MSG, BLOCK) \ 6 | [NimbleHelper expectFailureMessage:(MSG) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 7 | 8 | #define expectFailureMessages(MSGS, BLOCK) \ 9 | [NimbleHelper expectFailureMessages:(MSGS) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 10 | 11 | 12 | // Use this when you want to verify the failure message with the nil message postfixed 13 | // to it: " (use beNil() to match nils)" 14 | #define expectNilFailureMessage(MSG, BLOCK) \ 15 | [NimbleHelper expectFailureMessageForNil:(MSG) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 16 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/Shared/TestQueueable.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import XCTest 3 | @testable import Sugar 4 | 5 | struct Object: Queueable { 6 | 7 | func process() -> Bool { return true } 8 | } 9 | 10 | struct SecondObject: Queueable { 11 | 12 | func process() -> Bool { return false } 13 | } 14 | 15 | class QueueableTests: XCTestCase { 16 | 17 | func testQueueable() { 18 | var testQueue = [Object(), Object()] 19 | XCTAssertTrue(testQueue.count == 2) 20 | testQueue.processQueue() 21 | XCTAssertTrue(testQueue.count == 0) 22 | 23 | var secondTestQueue = [SecondObject(), SecondObject()] 24 | XCTAssertTrue(secondTestQueue.count == 2) 25 | secondTestQueue.processQueue() 26 | XCTAssertTrue(secondTestQueue.count == 2) 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/Adapters/AssertionDispatcher.swift: -------------------------------------------------------------------------------- 1 | 2 | /// AssertionDispatcher allows multiple AssertionHandlers to receive 3 | /// assertion messages. 4 | /// 5 | /// @warning Does not fully dispatch if one of the handlers raises an exception. 6 | /// This is possible with XCTest-based assertion handlers. 7 | /// 8 | public class AssertionDispatcher: AssertionHandler { 9 | let handlers: [AssertionHandler] 10 | 11 | public init(handlers: [AssertionHandler]) { 12 | self.handlers = handlers 13 | } 14 | 15 | public func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) { 16 | for handler in handlers { 17 | handler.assert(assertion, message: message, location: location) 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppTests/Pods-TeaAppTests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$CONFIGURATION_BUILD_DIR/Nimble" "$CONFIGURATION_BUILD_DIR/Quick" "$CONFIGURATION_BUILD_DIR/Sugar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Nimble/Nimble.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Quick/Quick.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Sugar/Sugar.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "Nimble" -framework "Quick" -framework "Sugar" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppTests/Pods-TeaAppTests.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$CONFIGURATION_BUILD_DIR/Nimble" "$CONFIGURATION_BUILD_DIR/Quick" "$CONFIGURATION_BUILD_DIR/Sugar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Nimble/Nimble.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Quick/Quick.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Sugar/Sugar.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "Nimble" -framework "Quick" -framework "Sugar" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/AssertionDispatcher.swift: -------------------------------------------------------------------------------- 1 | 2 | /// AssertionDispatcher allows multiple AssertionHandlers to receive 3 | /// assertion messages. 4 | /// 5 | /// @warning Does not fully dispatch if one of the handlers raises an exception. 6 | /// This is possible with XCTest-based assertion handlers. 7 | /// 8 | public class AssertionDispatcher: AssertionHandler { 9 | let handlers: [AssertionHandler] 10 | 11 | public init(handlers: [AssertionHandler]) { 12 | self.handlers = handlers 13 | } 14 | 15 | public func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) { 16 | for handler in handlers { 17 | handler.assert(assertion, message: message, location: location) 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/NimbleSpecHelper.h: -------------------------------------------------------------------------------- 1 | @import Nimble; 2 | #import "NimbleTests-Swift.h" 3 | 4 | // Use this when you want to verify the failure message for when an expectation fails 5 | #define expectFailureMessage(MSG, BLOCK) \ 6 | [NimbleHelper expectFailureMessage:(MSG) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 7 | 8 | #define expectFailureMessages(MSGS, BLOCK) \ 9 | [NimbleHelper expectFailureMessages:(MSGS) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 10 | 11 | 12 | // Use this when you want to verify the failure message with the nil message postfixed 13 | // to it: " (use beNil() to match nils)" 14 | #define expectNilFailureMessage(MSG, BLOCK) \ 15 | [NimbleHelper expectFailureMessageForNil:(MSG) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 16 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Sugar.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "Sugar" 3 | s.summary = "Something sweet that goes great with your Cocoa" 4 | s.version = "1.0.12" 5 | s.homepage = "https://github.com/hyperoslo/Sugar" 6 | s.license = 'MIT' 7 | s.author = { "Hyper Interaktiv AS" => "ios@hyper.no" } 8 | s.source = { :git => "https://github.com/hyperoslo/Sugar.git", :tag => s.version.to_s } 9 | s.social_media_url = 'https://twitter.com/hyperoslo' 10 | 11 | s.ios.deployment_target = '8.0' 12 | s.osx.deployment_target = '10.10' 13 | 14 | s.requires_arc = true 15 | s.ios.source_files = 'Source/{iOS,Shared}/**/*' 16 | s.osx.source_files = 'Source/{Shared}/**/*' 17 | 18 | s.frameworks = 'Foundation' 19 | end 20 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppUITests/Pods-TeaAppUITests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$CONFIGURATION_BUILD_DIR/Nimble" "$CONFIGURATION_BUILD_DIR/Quick" "$CONFIGURATION_BUILD_DIR/Sugar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Nimble/Nimble.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Quick/Quick.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Sugar/Sugar.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "Nimble" -framework "Quick" -framework "Sugar" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppUITests/Pods-TeaAppUITests.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$CONFIGURATION_BUILD_DIR/Nimble" "$CONFIGURATION_BUILD_DIR/Quick" "$CONFIGURATION_BUILD_DIR/Sugar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Nimble/Nimble.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Quick/Quick.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/Sugar/Sugar.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "Nimble" -framework "Quick" -framework "Sugar" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/QuickTests/FunctionalTests/ContextTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Quick 3 | import Nimble 4 | 5 | class QuickContextTests: QuickSpec { 6 | override func spec() { 7 | describe("Context") { 8 | it("should throw an exception if used in an it block") { 9 | expect { 10 | context("A nested context that should throw") { } 11 | }.to(raiseException { (exception: NSException) in 12 | expect(exception.name).to(equal("Invalid DSL Exception")) 13 | expect(exception.reason).to(equal("'context' cannot be used inside 'it', 'context' may only be used inside 'context' or 'describe'. ")) 14 | }) 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/Shared/TestSwizzler.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import XCTest 3 | @testable import Sugar 4 | 5 | class Swizzled: NSObject { 6 | 7 | override class func initialize() { 8 | struct Static { 9 | static var token: dispatch_once_t = 0 10 | } 11 | 12 | if self !== Swizzled.self { 13 | return 14 | } 15 | 16 | dispatch_once(&Static.token) { 17 | Swizzler.swizzle("method", cls: self) 18 | } 19 | } 20 | 21 | dynamic func method() -> Bool { 22 | return true 23 | } 24 | 25 | func swizzled_method() -> Bool { 26 | return false 27 | } 28 | } 29 | 30 | class SwizzleTests: XCTestCase { 31 | 32 | func testSwizzleInstanceMethod() { 33 | let object = Swizzled() 34 | XCTAssertFalse(object.method()) 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/iOS/Extensions/UIView+Frame.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIView { 4 | 5 | public var height: CGFloat { 6 | get { 7 | return CGRectGetHeight(frame) 8 | } 9 | set { 10 | frame.size.height = newValue 11 | } 12 | } 13 | 14 | public var width: CGFloat { 15 | get { 16 | return CGRectGetWidth(frame) 17 | } 18 | set { 19 | frame.size.width = newValue 20 | } 21 | } 22 | 23 | public var x: CGFloat { 24 | get { 25 | return CGRectGetMinX(frame) 26 | } 27 | set { 28 | frame.origin.x = newValue 29 | } 30 | } 31 | 32 | public var y: CGFloat { 33 | get { 34 | return CGRectGetMinY(frame) 35 | } 36 | set { 37 | frame.origin.y = newValue 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeFalsyTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeFalsyTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeFalsyTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@NO).to(beFalsy()); 12 | expect(@YES).toNot(beFalsy()); 13 | expect(nil).to(beFalsy()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to not be falsy, got ", ^{ 18 | expect(nil).toNot(beFalsy()); 19 | }); 20 | expectFailureMessage(@"expected to be falsy, got <1.0000>", ^{ 21 | expect(@1).to(beFalsy()); 22 | }); 23 | expectFailureMessage(@"expected to be truthy, got <0.0000>", ^{ 24 | expect(@NO).to(beTruthy()); 25 | }); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Localization.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public func localizedString(key: String, _ bundleClass: AnyClass? = nil, comment: String? = nil) -> String { 4 | if let bundleClass = bundleClass { 5 | return NSLocalizedString(key, bundle: NSBundle(forClass: bundleClass), comment: (comment != nil) ? comment! : key) 6 | } else { 7 | return NSLocalizedString(key, bundle: NSBundle.mainBundle(), comment: (comment != nil) ? comment! : key) 8 | } 9 | } 10 | 11 | public func localizedString(key: String, _ bundleClass: AnyClass? = nil, comment: String? = nil, arguments: CVarArgType...) -> String { 12 | return withVaList(arguments) { 13 | NSString(format: localizedString(key, bundleClass, comment: comment), locale: NSLocale.currentLocale(), arguments: $0) 14 | } as String 15 | } 16 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/AssertionDispatcher.swift: -------------------------------------------------------------------------------- 1 | 2 | /// AssertionDispatcher allows multiple AssertionHandlers to receive 3 | /// assertion messages. 4 | /// 5 | /// @warning Does not fully dispatch if one of the handlers raises an exception. 6 | /// This is possible with XCTest-based assertion handlers. 7 | /// 8 | public class AssertionDispatcher: AssertionHandler { 9 | let handlers: [AssertionHandler] 10 | 11 | public init(handlers: [AssertionHandler]) { 12 | self.handlers = handlers 13 | } 14 | 15 | public func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) { 16 | for handler in handlers { 17 | handler.assert(assertion, message: message, location: location) 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTestHelpers/SpecRunner.swift: -------------------------------------------------------------------------------- 1 | @testable import Quick 2 | import Nimble 3 | 4 | public func qck_runSpec(specClass: QuickSpec.Type) -> TestRun { 5 | return qck_runSpecs([specClass]) 6 | } 7 | 8 | public func qck_runSpecs(specClasses: [QuickSpec.Type]) -> TestRun { 9 | World.sharedWorld.isRunningAdditionalSuites = true 10 | 11 | var executionCount: UInt = 0 12 | 13 | let fails = gatherFailingExpectations(silently: true) { 14 | for specClass in specClasses { 15 | let spec = specClass.init() 16 | for (_, test) in spec.allTests { 17 | test() 18 | executionCount += 1 19 | } 20 | } 21 | } 22 | 23 | return TestRun(executionCount: executionCount, hasSucceeded: fails.isEmpty) 24 | } 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/iOS/Extensions/UIView+Frame.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIView { 4 | 5 | public var height: CGFloat { 6 | get { 7 | return CGRectGetHeight(frame) 8 | } 9 | set { 10 | frame.size.height = newValue 11 | } 12 | } 13 | 14 | public var width: CGFloat { 15 | get { 16 | return CGRectGetWidth(frame) 17 | } 18 | set { 19 | frame.size.width = newValue 20 | } 21 | } 22 | 23 | public var x: CGFloat { 24 | get { 25 | return CGRectGetMinX(frame) 26 | } 27 | set { 28 | frame.origin.x = newValue 29 | } 30 | } 31 | 32 | public var y: CGFloat { 33 | get { 34 | return CGRectGetMinY(frame) 35 | } 36 | set { 37 | frame.origin.y = newValue 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeTruthyTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeTruthyTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeTruthyTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@YES).to(beTruthy()); 12 | expect(@NO).toNot(beTruthy()); 13 | expect(nil).toNot(beTruthy()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be truthy, got ", ^{ 18 | expect(nil).to(beTruthy()); 19 | }); 20 | expectFailureMessage(@"expected to not be truthy, got <1.0000>", ^{ 21 | expect(@1).toNot(beTruthy()); 22 | }); 23 | expectFailureMessage(@"expected to be truthy, got <0.0000>", ^{ 24 | expect(@NO).to(beTruthy()); 25 | }); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Localization.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public func localizedString(key: String, _ bundleClass: AnyClass? = nil, comment: String? = nil) -> String { 4 | if let bundleClass = bundleClass { 5 | return NSLocalizedString(key, bundle: NSBundle(forClass: bundleClass), comment: (comment != nil) ? comment! : key) 6 | } else { 7 | return NSLocalizedString(key, bundle: NSBundle.mainBundle(), comment: (comment != nil) ? comment! : key) 8 | } 9 | } 10 | 11 | public func localizedString(key: String, _ bundleClass: AnyClass? = nil, comment: String? = nil, arguments: CVarArgType...) -> String { 12 | return withVaList(arguments) { 13 | NSString(format: localizedString(key, bundleClass, comment: comment), locale: NSLocale.currentLocale(), arguments: $0) 14 | } as String 15 | } 16 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/Adapters/AdapterProtocols.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// Protocol for the assertion handler that Nimble uses for all expectations. 4 | public protocol AssertionHandler { 5 | func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) 6 | } 7 | 8 | /// Global backing interface for assertions that Nimble creates. 9 | /// Defaults to a private test handler that passes through to XCTest. 10 | /// 11 | /// If XCTest is not available, you must assign your own assertion handler 12 | /// before using any matchers, otherwise Nimble will abort the program. 13 | /// 14 | /// @see AssertionHandler 15 | public var NimbleAssertionHandler: AssertionHandler = { () -> AssertionHandler in 16 | return isXCTestAvailable() ? NimbleXCTestHandler() : NimbleXCTestUnavailableHandler() 17 | }() 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeFalsyTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeFalsyTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeFalsyTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@NO).to(beFalsy()); 12 | expect(@YES).toNot(beFalsy()); 13 | expect(nil).to(beFalsy()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to not be falsy, got ", ^{ 18 | expect(nil).toNot(beFalsy()); 19 | }); 20 | expectFailureMessage(@"expected to be falsy, got <1.0000>", ^{ 21 | expect(@1).to(beFalsy()); 22 | }); 23 | expectFailureMessage(@"expected to be truthy, got <0.0000>", ^{ 24 | expect(@NO).to(beTruthy()); 25 | }); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/AdapterProtocols.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// Protocol for the assertion handler that Nimble uses for all expectations. 4 | public protocol AssertionHandler { 5 | func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) 6 | } 7 | 8 | /// Global backing interface for assertions that Nimble creates. 9 | /// Defaults to a private test handler that passes through to XCTest. 10 | /// 11 | /// If XCTest is not available, you must assign your own assertion handler 12 | /// before using any matchers, otherwise Nimble will abort the program. 13 | /// 14 | /// @see AssertionHandler 15 | public var NimbleAssertionHandler: AssertionHandler = { () -> AssertionHandler in 16 | return isXCTestAvailable() ? NimbleXCTestHandler() : NimbleXCTestUnavailableHandler() 17 | }() 18 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/TeaAppTests/TeaAppTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TeaAppTests.swift 3 | // TeaAppTests 4 | // 5 | // Created by Khoa Pham on 01/04/16. 6 | // Copyright © 2016 Fantageek. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import TeaApp 11 | import Nimble 12 | import Quick 13 | import Sugar 14 | 15 | class TeaAppTests: XCTestCase { 16 | 17 | override func setUp() { 18 | super.setUp() 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | override func tearDown() { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | super.tearDown() 25 | } 26 | 27 | func testExample() { 28 | XCTAssert("ios@hyper.no".isEmail() == true) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/BeerAppTests/BeerAppTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BeerAppTests.swift 3 | // BeerAppTests 4 | // 5 | // Created by Khoa Pham on 01/04/16. 6 | // Copyright © 2016 Fantageek. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import BeerApp 11 | import Sugar 12 | import Quick 13 | import Nimble 14 | 15 | class BeerAppTests: XCTestCase { 16 | 17 | override func setUp() { 18 | super.setUp() 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | override func tearDown() { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | super.tearDown() 25 | } 26 | 27 | func testExample() { 28 | XCTAssert("ios@hyper.no".isEmail() == true) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/Matchers/BeNilTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | 4 | class BeNilTest: XCTestCase, XCTestCaseProvider { 5 | var allTests: [(String, () throws -> Void)] { 6 | return [ 7 | ("testBeNil", testBeNil), 8 | ] 9 | } 10 | 11 | func producesNil() -> Array? { 12 | return nil 13 | } 14 | 15 | func testBeNil() { 16 | expect(nil as Int?).to(beNil()) 17 | expect(1 as Int?).toNot(beNil()) 18 | expect(self.producesNil()).to(beNil()) 19 | 20 | failsWithErrorMessage("expected to not be nil, got ") { 21 | expect(nil as Int?).toNot(beNil()) 22 | } 23 | 24 | failsWithErrorMessage("expected to be nil, got <1>") { 25 | expect(1 as Int?).to(beNil()) 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/TeaAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/BeerAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/BeerAppUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeTruthyTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeTruthyTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeTruthyTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@YES).to(beTruthy()); 12 | expect(@NO).toNot(beTruthy()); 13 | expect(nil).toNot(beTruthy()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be truthy, got ", ^{ 18 | expect(nil).to(beTruthy()); 19 | }); 20 | expectFailureMessage(@"expected to not be truthy, got <1.0000>", ^{ 21 | expect(@1).toNot(beTruthy()); 22 | }); 23 | expectFailureMessage(@"expected to be truthy, got <0.0000>", ^{ 24 | expect(@NO).to(beTruthy()); 25 | }); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/TeaAppUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/AdapterProtocols.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// Protocol for the assertion handler that Nimble uses for all expectations. 4 | public protocol AssertionHandler { 5 | func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) 6 | } 7 | 8 | /// Global backing interface for assertions that Nimble creates. 9 | /// Defaults to a private test handler that passes through to XCTest. 10 | /// 11 | /// If XCTest is not available, you must assign your own assertion handler 12 | /// before using any matchers, otherwise Nimble will abort the program. 13 | /// 14 | /// @see AssertionHandler 15 | public var NimbleAssertionHandler: AssertionHandler = { () -> AssertionHandler in 16 | return isXCTestAvailable() ? NimbleXCTestHandler() : NimbleXCTestUnavailableHandler() 17 | }() 18 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Documentation/InstallingFileTemplates.md: -------------------------------------------------------------------------------- 1 | # Installing Quick File Templates 2 | 3 | The Quick repository includes file templates for both Swift and 4 | Objective-C specs. 5 | 6 | ## Alcatraz 7 | 8 | Quick templates can be installed via [Alcatraz](https://github.com/supermarin/Alcatraz), 9 | a package manager for Xcode. Just search for the templates from the 10 | Package Manager window. 11 | 12 | ![](http://f.cl.ly/items/3T3q0G1j0b2t1V0M0T04/Screen%20Shot%202014-06-27%20at%202.01.10%20PM.png) 13 | 14 | ## Manually via the Rakefile 15 | 16 | To manually install the templates, just clone the repository and 17 | run the `templates:install` rake task: 18 | 19 | ```sh 20 | $ git clone git@github.com:Quick/Quick.git 21 | $ rake templates:install 22 | ``` 23 | 24 | Uninstalling is easy, too: 25 | 26 | ```sh 27 | $ rake templates:uninstall 28 | ``` 29 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/Mac/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickFocusedTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/QuickMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | // NOTE: This file is not intended to be included in the Xcode project or CocoaPods. 4 | // It is picked up by the Swift Package Manager during its build process. 5 | 6 | @noreturn public func QCKMain(specs: [XCTestCase], configurations: [QuickConfiguration.Type] = []) { 7 | // Perform all configuration (ensures that shared examples have been discovered) 8 | World.sharedWorld.configure { configuration in 9 | for configurationClass in configurations { 10 | configurationClass.configure(configuration) 11 | } 12 | } 13 | World.sharedWorld.finalizeConfiguration() 14 | 15 | // Gather all examples (ensures suite hooks have been discovered) 16 | for case let spec as QuickSpec in specs { 17 | spec.gatherExamplesIfNeeded() 18 | } 19 | 20 | XCTMain(specs) 21 | } 22 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/ContextTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Quick 3 | import Nimble 4 | #if SWIFT_PACKAGE 5 | import QuickTestHelpers 6 | #endif 7 | 8 | #if _runtime(_ObjC) 9 | class QuickContextTests: QuickSpec { 10 | override func spec() { 11 | describe("Context") { 12 | it("should throw an exception if used in an it block") { 13 | expect { 14 | context("A nested context that should throw") { } 15 | }.to(raiseException { (exception: NSException) in 16 | expect(exception.name).to(equal(NSInternalInconsistencyException)) 17 | expect(exception.reason).to(equal("'context' cannot be used inside 'it', 'context' may only be used inside 'context' or 'describe'. ")) 18 | }) 19 | } 20 | } 21 | } 22 | } 23 | #endif 24 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/Callsite.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /** 4 | An object encapsulating the file and line number at which 5 | a particular example is defined. 6 | */ 7 | final public class Callsite: NSObject { 8 | /** 9 | The absolute path of the file in which an example is defined. 10 | */ 11 | public let file: String 12 | 13 | /** 14 | The line number on which an example is defined. 15 | */ 16 | public let line: UInt 17 | 18 | internal init(file: String, line: UInt) { 19 | self.file = file 20 | self.line = line 21 | } 22 | } 23 | 24 | /** 25 | Returns a boolean indicating whether two Callsite objects are equal. 26 | If two callsites are in the same file and on the same line, they must be equal. 27 | */ 28 | public func ==(lhs: Callsite, rhs: Callsite) -> Bool { 29 | return lhs.file == rhs.file && lhs.line == rhs.line 30 | } 31 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/objc/NMBExceptionCapture.m: -------------------------------------------------------------------------------- 1 | #import "NMBExceptionCapture.h" 2 | 3 | @interface NMBExceptionCapture () 4 | @property (nonatomic, copy) void(^handler)(NSException *exception); 5 | @property (nonatomic, copy) void(^finally)(); 6 | @end 7 | 8 | @implementation NMBExceptionCapture 9 | 10 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally { 11 | self = [super init]; 12 | if (self) { 13 | self.handler = handler; 14 | self.finally = finally; 15 | } 16 | return self; 17 | } 18 | 19 | - (void)tryBlock:(void(^)())unsafeBlock { 20 | @try { 21 | unsafeBlock(); 22 | } 23 | @catch (NSException *exception) { 24 | if (self.handler) { 25 | self.handler(exception); 26 | } 27 | } 28 | @finally { 29 | if (self.finally) { 30 | self.finally(); 31 | } 32 | } 33 | } 34 | 35 | @end -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Callsite.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /** 4 | An object encapsulating the file and line number at which 5 | a particular example is defined. 6 | */ 7 | final public class Callsite: NSObject { 8 | /** 9 | The absolute path of the file in which an example is defined. 10 | */ 11 | public let file: String 12 | 13 | /** 14 | The line number on which an example is defined. 15 | */ 16 | public let line: UInt 17 | 18 | internal init(file: String, line: UInt) { 19 | self.file = file 20 | self.line = line 21 | } 22 | } 23 | 24 | /** 25 | Returns a boolean indicating whether two Callsite objects are equal. 26 | If two callsites are in the same file and on the same line, they must be equal. 27 | */ 28 | public func ==(lhs: Callsite, rhs: Callsite) -> Bool { 29 | return lhs.file == rhs.file && lhs.line == rhs.line 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/objc/NMBExceptionCapture.m: -------------------------------------------------------------------------------- 1 | #import "NMBExceptionCapture.h" 2 | 3 | @interface NMBExceptionCapture () 4 | @property (nonatomic, copy) void(^handler)(NSException *exception); 5 | @property (nonatomic, copy) void(^finally)(); 6 | @end 7 | 8 | @implementation NMBExceptionCapture 9 | 10 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally { 11 | self = [super init]; 12 | if (self) { 13 | self.handler = handler; 14 | self.finally = finally; 15 | } 16 | return self; 17 | } 18 | 19 | - (void)tryBlock:(void(^)())unsafeBlock { 20 | @try { 21 | unsafeBlock(); 22 | } 23 | @catch (NSException *exception) { 24 | if (self.handler) { 25 | self.handler(exception); 26 | } 27 | } 28 | @finally { 29 | if (self.finally) { 30 | self.finally(); 31 | } 32 | } 33 | } 34 | 35 | @end -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Quick", 5 | targets: [ 6 | Target(name: "QuickTests", dependencies: [.Target(name: "Quick"), .Target(name: "QuickTestHelpers")]), 7 | Target(name: "QuickFocusedTests", dependencies: [.Target(name: "Quick"), .Target(name: "QuickTestHelpers")]), 8 | Target(name: "QuickTestHelpers", dependencies: [.Target(name: "Quick")]), 9 | ], 10 | // TODO: Once the `test` command has been implemented in the Swift Package Manager, this should be changed to 11 | // be `testDependencies:` instead. For now it has to be done like this for the library to get linked with the test targets. 12 | // See: https://github.com/apple/swift-evolution/blob/master/proposals/0019-package-manager-testing.md 13 | dependencies: [ 14 | .Package(url: "https://github.com/briancroom/Nimble", majorVersion: 3) 15 | ] 16 | ) 17 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/objc/NMBExceptionCapture.m: -------------------------------------------------------------------------------- 1 | #import "NMBExceptionCapture.h" 2 | 3 | @interface NMBExceptionCapture () 4 | @property (nonatomic, copy) void(^handler)(NSException *exception); 5 | @property (nonatomic, copy) void(^finally)(); 6 | @end 7 | 8 | @implementation NMBExceptionCapture 9 | 10 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally { 11 | self = [super init]; 12 | if (self) { 13 | self.handler = handler; 14 | self.finally = finally; 15 | } 16 | return self; 17 | } 18 | 19 | - (void)tryBlock:(void(^)())unsafeBlock { 20 | @try { 21 | unsafeBlock(); 22 | } 23 | @catch (NSException *exception) { 24 | if (self.handler) { 25 | self.handler(exception); 26 | } 27 | } 28 | @finally { 29 | if (self.finally) { 30 | self.finally(); 31 | } 32 | } 33 | } 34 | 35 | @end -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/SupportFiles/Mac/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/SupportFiles/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | xcode: 3 | version: "7.0" 4 | 5 | checkout: 6 | post: 7 | - git submodule update --init --recursive 8 | 9 | dependencies: 10 | pre: 11 | # There is a bug in a formula resulting in update failing if run once, but not the second time 12 | # See https://github.com/Homebrew/homebrew/issues/45616 13 | - brew update || brew update 14 | - brew outdated xctool || brew upgrade xctool 15 | 16 | test: 17 | override: 18 | - rake test:ios 19 | - rake test:osx 20 | - rake test:xctool:ios 21 | # Due to the `pending` specs using a `print` xctool fails generating the report, 22 | # which in turn makes the tests fail. 23 | # See https://github.com/facebook/xctool/issues/314#issuecomment-152988101 and comments 24 | # for details. 25 | # See https://circleci.com/gh/mokagio/Quick/12 for a proof that without `print` the test pass. 26 | # - rake test:xctool_osx 27 | 28 | 29 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Quick/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.9.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Nimble/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Sugar/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.13 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Nimbletest 3 | 4 | // This is the entry point for NimbleTests on Linux 5 | 6 | XCTMain([ 7 | // AsynchronousTests(), 8 | SynchronousTest(), 9 | UserDescriptionTest(), 10 | 11 | // Matchers 12 | AllPassTest(), 13 | // BeAKindOfTest(), 14 | BeAnInstanceOfTest(), 15 | BeCloseToTest(), 16 | BeginWithTest(), 17 | BeGreaterThanOrEqualToTest(), 18 | BeGreaterThanTest(), 19 | BeIdenticalToObjectTest(), 20 | BeIdenticalToTest(), 21 | BeLessThanOrEqualToTest(), 22 | BeLessThanTest(), 23 | BeTruthyTest(), 24 | BeTrueTest(), 25 | BeFalsyTest(), 26 | BeFalseTest(), 27 | BeNilTest(), 28 | ContainTest(), 29 | EndWithTest(), 30 | EqualTest(), 31 | HaveCountTest(), 32 | // MatchTest(), 33 | // RaisesExceptionTest(), 34 | ThrowErrorTest(), 35 | SatisfyAnyOfTest(), 36 | PostNotificationTest(), 37 | ]) 38 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaApp/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Target Support Files/Pods-TeaAppUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/Hooks/SuiteHooks.swift: -------------------------------------------------------------------------------- 1 | /** 2 | A container for closures to be executed before and after all examples. 3 | */ 4 | final internal class SuiteHooks { 5 | internal var befores: [BeforeSuiteClosure] = [] 6 | internal var afters: [AfterSuiteClosure] = [] 7 | internal var phase: HooksPhase = .NothingExecuted 8 | 9 | internal func appendBefore(closure: BeforeSuiteClosure) { 10 | befores.append(closure) 11 | } 12 | 13 | internal func appendAfter(closure: AfterSuiteClosure) { 14 | afters.append(closure) 15 | } 16 | 17 | internal func executeBefores() { 18 | phase = .BeforesExecuting 19 | for before in befores { 20 | before() 21 | } 22 | phase = .BeforesFinished 23 | } 24 | 25 | internal func executeAfters() { 26 | phase = .AftersExecuting 27 | for after in afters { 28 | after() 29 | } 30 | phase = .AftersFinished 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/Matchers/BeVoidTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | 4 | class BeVoidTest: XCTestCase, XCTestCaseProvider { 5 | var allTests: [(String, () throws -> Void)] { 6 | return [ 7 | ("testBeVoid", testBeVoid), 8 | ] 9 | } 10 | 11 | func testBeVoid() { 12 | expect(()).to(beVoid()) 13 | expect(() as ()?).to(beVoid()) 14 | expect(nil as ()?).toNot(beVoid()) 15 | 16 | expect(()) == () 17 | expect(() as ()?) == () 18 | expect(nil as ()?) != () 19 | 20 | failsWithErrorMessage("expected to not be void, got <()>") { 21 | expect(()).toNot(beVoid()) 22 | } 23 | 24 | failsWithErrorMessage("expected to not be void, got <()>") { 25 | expect(() as ()?).toNot(beVoid()) 26 | } 27 | 28 | failsWithErrorMessage("expected to be void, got ") { 29 | expect(nil as ()?).to(beVoid()) 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/Fixtures/FunctionalTests_SharedExamplesTests_SharedExamples.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import Quick 3 | import Nimble 4 | 5 | class FunctionalTests_SharedExamplesTests_SharedExamples: QuickConfiguration { 6 | override class func configure(configuration: Configuration) { 7 | sharedExamples("a group of three shared examples") { 8 | it("passes once") { expect(true).to(beTruthy()) } 9 | it("passes twice") { expect(true).to(beTruthy()) } 10 | it("passes three times") { expect(true).to(beTruthy()) } 11 | } 12 | 13 | sharedExamples("shared examples that take a context") { (sharedExampleContext: SharedExampleContext) in 14 | it("is passed the correct parameters via the context") { 15 | let callsite = sharedExampleContext()[NSString(string: "callsite")] as! NSString 16 | expect(callsite).to(equal("SharedExamplesSpec")) 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Hooks/SuiteHooks.swift: -------------------------------------------------------------------------------- 1 | /** 2 | A container for closures to be executed before and after all examples. 3 | */ 4 | final internal class SuiteHooks { 5 | internal var befores: [BeforeSuiteClosure] = [] 6 | internal var afters: [AfterSuiteClosure] = [] 7 | internal var phase: HooksPhase = .NothingExecuted 8 | 9 | internal func appendBefore(closure: BeforeSuiteClosure) { 10 | befores.append(closure) 11 | } 12 | 13 | internal func appendAfter(closure: AfterSuiteClosure) { 14 | afters.append(closure) 15 | } 16 | 17 | internal func executeBefores() { 18 | phase = .BeforesExecuting 19 | for before in befores { 20 | before() 21 | } 22 | phase = .BeforesFinished 23 | } 24 | 25 | internal func executeAfters() { 26 | phase = .AftersExecuting 27 | for after in afters { 28 | after() 29 | } 30 | phase = .AftersFinished 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Extensions/String+CoreFoundation.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public extension String { 4 | 5 | var length: Int { return characters.count } 6 | var isPresent: Bool { return !isEmpty } 7 | 8 | func replace(string: String, with withString: String) -> String { 9 | return stringByReplacingOccurrencesOfString(string, withString: withString) 10 | } 11 | 12 | func truncate(length: Int, suffix: String = "...") -> String { 13 | return self.length > length 14 | ? substringToIndex(startIndex.advancedBy(length)) + suffix 15 | : self 16 | } 17 | 18 | func split(delimiter: String) -> [String] { 19 | let components = componentsSeparatedByString(delimiter) 20 | return components != [""] ? components : [] 21 | } 22 | 23 | func contains(find: String) -> Bool { 24 | return rangeOfString(find) != nil 25 | } 26 | 27 | func trim() -> String { 28 | return stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Extensions/String+CoreFoundation.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public extension String { 4 | 5 | var length: Int { return characters.count } 6 | var isPresent: Bool { return !isEmpty } 7 | 8 | func replace(string: String, with withString: String) -> String { 9 | return stringByReplacingOccurrencesOfString(string, withString: withString) 10 | } 11 | 12 | func truncate(length: Int, suffix: String = "...") -> String { 13 | return self.length > length 14 | ? substringToIndex(startIndex.advancedBy(length)) + suffix 15 | : self 16 | } 17 | 18 | func split(delimiter: String) -> [String] { 19 | let components = componentsSeparatedByString(delimiter) 20 | return components != [""] ? components : [] 21 | } 22 | 23 | func contains(find: String) -> Bool { 24 | return rangeOfString(find) != nil 25 | } 26 | 27 | func trim() -> String { 28 | return stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeLessThanTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeLessThanTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeLessThanTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beLessThan(@3)); 12 | expect(@2).toNot(beLessThan(@2)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be less than <0.0000>, got <-1.0000>", ^{ 17 | expect(@(-1)).to(beLessThan(@0)); 18 | }); 19 | expectFailureMessage(@"expected to not be less than <1.0000>, got <0.0000>", ^{ 20 | expect(@0).toNot(beLessThan(@1)); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be less than <-1.0000>, got ", ^{ 26 | expect(nil).to(beLessThan(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be less than <1.0000>, got ", ^{ 29 | expect(nil).toNot(beLessThan(@1)); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCEqualTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCEqualTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCEqualTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@1).to(equal(@1)); 12 | expect(@1).toNot(equal(@2)); 13 | expect(@1).notTo(equal(@2)); 14 | expect(@"hello").to(equal(@"hello")); 15 | } 16 | 17 | - (void)testNegativeMatches { 18 | expectFailureMessage(@"expected to equal <2.0000>, got <1.0000>", ^{ 19 | expect(@1).to(equal(@2)); 20 | }); 21 | expectFailureMessage(@"expected to not equal <1.0000>, got <1.0000>", ^{ 22 | expect(@1).toNot(equal(@1)); 23 | }); 24 | } 25 | 26 | - (void)testNilMatches { 27 | expectNilFailureMessage(@"expected to equal , got ", ^{ 28 | expect(nil).to(equal(nil)); 29 | }); 30 | expectNilFailureMessage(@"expected to not equal , got ", ^{ 31 | expect(nil).toNot(equal(nil)); 32 | }); 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/QCKSpecRunner.h: -------------------------------------------------------------------------------- 1 | @import XCTest; 2 | 3 | /** 4 | Runs an XCTestSuite instance containing only the given XCTestCase subclass. 5 | Use this to run QuickSpec subclasses from within a set of unit tests. 6 | 7 | Due to implicit dependencies in _XCTFailureHandler, this function raises an 8 | exception when used in Swift to run a failing test case. 9 | 10 | @param specClass The class of the spec to be run. 11 | @return An XCTestRun instance that contains information such as the number of failures, etc. 12 | */ 13 | extern XCTestRun *qck_runSpec(Class specClass); 14 | 15 | /** 16 | Runs an XCTestSuite instance containing the given XCTestCase subclasses, in the order provided. 17 | See the documentation for `qck_runSpec` for more details. 18 | 19 | @param specClasses An array of QuickSpec classes, in the order they should be run. 20 | @return An XCTestRun instance that contains information such as the number of failures, etc. 21 | */ 22 | extern XCTestRun *qck_runSpecs(NSArray *specClasses); 23 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSHumanReadableCopyright 24 | Copyright © 2014 Jeff Hui. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeLessThanTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeLessThanTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeLessThanTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beLessThan(@3)); 12 | expect(@2).toNot(beLessThan(@2)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be less than <0.0000>, got <-1.0000>", ^{ 17 | expect(@(-1)).to(beLessThan(@0)); 18 | }); 19 | expectFailureMessage(@"expected to not be less than <1.0000>, got <0.0000>", ^{ 20 | expect(@0).toNot(beLessThan(@1)); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be less than <-1.0000>, got ", ^{ 26 | expect(nil).to(beLessThan(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be less than <1.0000>, got ", ^{ 29 | expect(nil).toNot(beLessThan(@1)); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCEqualTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCEqualTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCEqualTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@1).to(equal(@1)); 12 | expect(@1).toNot(equal(@2)); 13 | expect(@1).notTo(equal(@2)); 14 | expect(@"hello").to(equal(@"hello")); 15 | } 16 | 17 | - (void)testNegativeMatches { 18 | expectFailureMessage(@"expected to equal <2.0000>, got <1.0000>", ^{ 19 | expect(@1).to(equal(@2)); 20 | }); 21 | expectFailureMessage(@"expected to not equal <1.0000>, got <1.0000>", ^{ 22 | expect(@1).toNot(equal(@1)); 23 | }); 24 | } 25 | 26 | - (void)testNilMatches { 27 | expectNilFailureMessage(@"expected to equal , got ", ^{ 28 | expect(nil).to(equal(nil)); 29 | }); 30 | expectNilFailureMessage(@"expected to not equal , got ", ^{ 31 | expect(nil).toNot(equal(nil)); 32 | }); 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Nimble.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "Nimble" 3 | s.version = "3.2.0" 4 | s.summary = "A Matcher Framework for Swift and Objective-C" 5 | s.description = <<-DESC 6 | Use Nimble to express the expected outcomes of Swift or Objective-C expressions. Inspired by Cedar. 7 | DESC 8 | s.homepage = "https://github.com/Quick/Nimble" 9 | s.license = { :type => "Apache 2.0", :file => "LICENSE.md" } 10 | s.author = "Quick Contributors" 11 | s.ios.deployment_target = "7.0" 12 | s.osx.deployment_target = "10.9" 13 | s.tvos.deployment_target = "9.0" 14 | s.source = { :git => "https://github.com/Quick/Nimble.git", :tag => "v#{s.version}" } 15 | 16 | s.source_files = "Sources/Nimble/**/*.{swift,h,m}" 17 | s.weak_framework = "XCTest" 18 | s.requires_arc = true 19 | s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO', 'OTHER_LDFLAGS' => '-weak-lswiftXCTest', 'FRAMEWORK_SEARCH_PATHS' => '$(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks"' } 20 | end 21 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSHumanReadableCopyright 24 | Copyright © 2014 - present, Quick Team. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeGreaterThanTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeGreaterThanTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeGreaterThanTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beGreaterThan(@1)); 12 | expect(@2).toNot(beGreaterThan(@2)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be greater than <0.0000>, got <-1.0000>", ^{ 17 | expect(@(-1)).to(beGreaterThan(@(0))); 18 | }); 19 | expectFailureMessage(@"expected to not be greater than <1.0000>, got <0.0000>", ^{ 20 | expect(@0).toNot(beGreaterThan(@(1))); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be greater than <-1.0000>, got ", ^{ 26 | expect(nil).to(beGreaterThan(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be greater than <1.0000>, got ", ^{ 29 | expect(nil).toNot(beGreaterThan(@(1))); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSHumanReadableCopyright 24 | Copyright © 2014 Jeff Hui. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCMatchTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCMatchTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCMatchTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@"11:14").to(match(@"\\d{2}:\\d{2}")); 12 | expect(@"hello").toNot(match(@"\\d{2}:\\d{2}")); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to match <\\d{2}:\\d{2}>, got ", ^{ 17 | expect(@"hello").to(match(@"\\d{2}:\\d{2}")); 18 | }); 19 | expectFailureMessage(@"expected to not match <\\d{2}:\\d{2}>, got <11:22>", ^{ 20 | expect(@"11:22").toNot(match(@"\\d{2}:\\d{2}")); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to match <\\d{2}:\\d{2}>, got ", ^{ 26 | expect(nil).to(match(@"\\d{2}:\\d{2}")); 27 | }); 28 | expectNilFailureMessage(@"expected to not match <\\d{2}:\\d{2}>, got ", ^{ 29 | expect(nil).toNot(match(@"\\d{2}:\\d{2}")); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Nimble.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "Nimble" 3 | s.version = "3.1.0" 4 | s.summary = "A Matcher Framework for Swift and Objective-C" 5 | s.description = <<-DESC 6 | Use Nimble to express the expected outcomes of Swift or Objective-C expressions. Inspired by Cedar. 7 | DESC 8 | s.homepage = "https://github.com/Quick/Nimble" 9 | s.license = { :type => "Apache 2.0", :file => "LICENSE.md" } 10 | s.author = "Quick Contributors" 11 | s.ios.deployment_target = "7.0" 12 | s.osx.deployment_target = "10.9" 13 | s.tvos.deployment_target = "9.0" 14 | s.source = { :git => "https://github.com/Quick/Nimble.git", :tag => "v#{s.version}" } 15 | 16 | s.source_files = "Sources/Nimble/**/*.{swift,h,m}" 17 | s.weak_framework = "XCTest" 18 | s.requires_arc = true 19 | s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO', 'OTHER_LDFLAGS' => '-weak-lswiftXCTest', 'FRAMEWORK_SEARCH_PATHS' => '$(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks"' } 20 | end 21 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | /** 4 | Expose internal XCTest class and methods in order to run isolated XCTestSuite 5 | instances while the QuickTests test suite is running. 6 | 7 | If an Xcode upgrade causes QuickTests to crash when executing, or for tests to fail 8 | with the message "Timed out waiting for IDE barrier message to complete", it is 9 | likely that this internal interface has been changed. 10 | */ 11 | @interface XCTestObservationCenter (QCKSuspendObservation) 12 | 13 | /** 14 | Suspends test suite observation for the duration that the block is executing. 15 | Any test suites that are executed within the block do not generate any log output. 16 | Failures are still reported. 17 | 18 | Use this method to run XCTestSuite objects while another XCTestSuite is running. 19 | Without this method, tests fail with the message: "Timed out waiting for IDE 20 | barrier message to complete". 21 | */ 22 | - (void)_suspendObservationForBlock:(void (^)(void))block; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/Utils/SourceLocation.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | // Ideally we would always use `StaticString` as the type for tracking the file name 4 | // that expectations originate from, for consistency with `assert` etc. from the 5 | // stdlib, and because recent versions of the XCTest overlay require `StaticString` 6 | // when calling `XCTFail`. Under the Objective-C runtime (i.e. building on Mac), we 7 | // have to use `String` instead because StaticString can't be generated from Objective-C 8 | #if _runtime(_ObjC) 9 | public typealias FileString = String 10 | #else 11 | public typealias FileString = StaticString 12 | #endif 13 | 14 | public final class SourceLocation : NSObject { 15 | public let file: FileString 16 | public let line: UInt 17 | 18 | override init() { 19 | file = "Unknown File" 20 | line = 0 21 | } 22 | 23 | init(file: FileString, line: UInt) { 24 | self.file = file 25 | self.line = line 26 | } 27 | 28 | override public var description: String { 29 | return "\(file):\(line)" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/QuickSpec.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | // NOTE: This file is not intended to be included in the Xcode project or CocoaPods. 4 | // It is picked up by the Swift Package Manager during its build process. 5 | 6 | public class QuickSpec: XCTestCase, XCTestCaseProvider { 7 | public func spec() {} 8 | 9 | public required init() {} 10 | 11 | public var allTests : [(String, () -> Void)] { 12 | gatherExamplesIfNeeded() 13 | 14 | let examples = World.sharedWorld.examples(self.dynamicType) 15 | return examples.map({ example -> (String, () -> Void) in 16 | return (example.name, { example.run() }) 17 | }) 18 | } 19 | 20 | internal func gatherExamplesIfNeeded() { 21 | let world = World.sharedWorld 22 | let rootExampleGroup = world.rootExampleGroupForSpecClass(self.dynamicType) 23 | if rootExampleGroup.examples.isEmpty { 24 | world.currentExampleGroup = rootExampleGroup 25 | spec() 26 | world.currentExampleGroup = nil 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Utils/SourceLocation.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | // Ideally we would always use `StaticString` as the type for tracking the file name 4 | // that expectations originate from, for consistency with `assert` etc. from the 5 | // stdlib, and because recent versions of the XCTest overlay require `StaticString` 6 | // when calling `XCTFail`. Under the Objective-C runtime (i.e. building on Mac), we 7 | // have to use `String` instead because StaticString can't be generated from Objective-C 8 | #if _runtime(_ObjC) 9 | public typealias FileString = String 10 | #else 11 | public typealias FileString = StaticString 12 | #endif 13 | 14 | public final class SourceLocation : NSObject { 15 | public let file: FileString 16 | public let line: UInt 17 | 18 | override init() { 19 | file = "Unknown File" 20 | line = 0 21 | } 22 | 23 | init(file: FileString, line: UInt) { 24 | self.file = file 25 | self.line = line 26 | } 27 | 28 | override public var description: String { 29 | return "\(file):\(line)" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeGreaterThanTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeGreaterThanTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeGreaterThanTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beGreaterThan(@1)); 12 | expect(@2).toNot(beGreaterThan(@2)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be greater than <0.0000>, got <-1.0000>", ^{ 17 | expect(@(-1)).to(beGreaterThan(@(0))); 18 | }); 19 | expectFailureMessage(@"expected to not be greater than <1.0000>, got <0.0000>", ^{ 20 | expect(@0).toNot(beGreaterThan(@(1))); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be greater than <-1.0000>, got ", ^{ 26 | expect(nil).to(beGreaterThan(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be greater than <1.0000>, got ", ^{ 29 | expect(nil).toNot(beGreaterThan(@(1))); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/Filter.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /** 4 | A mapping of string keys to booleans that can be used to 5 | filter examples or example groups. For example, a "focused" 6 | example would have the flags [Focused: true]. 7 | */ 8 | public typealias FilterFlags = [String: Bool] 9 | 10 | /** 11 | A namespace for filter flag keys, defined primarily to make the 12 | keys available in Objective-C. 13 | */ 14 | final public class Filter: NSObject { 15 | /** 16 | Example and example groups with [Focused: true] are included in test runs, 17 | excluding all other examples without this flag. Use this to only run one or 18 | two tests that you're currently focusing on. 19 | */ 20 | public class var focused: String { 21 | return "focused" 22 | } 23 | 24 | /** 25 | Example and example groups with [Pending: true] are excluded from test runs. 26 | Use this to temporarily suspend examples that you know do not pass yet. 27 | */ 28 | public class var pending: String { 29 | return "pending" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCMatchTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCMatchTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCMatchTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@"11:14").to(match(@"\\d{2}:\\d{2}")); 12 | expect(@"hello").toNot(match(@"\\d{2}:\\d{2}")); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to match <\\d{2}:\\d{2}>, got ", ^{ 17 | expect(@"hello").to(match(@"\\d{2}:\\d{2}")); 18 | }); 19 | expectFailureMessage(@"expected to not match <\\d{2}:\\d{2}>, got <11:22>", ^{ 20 | expect(@"11:22").toNot(match(@"\\d{2}:\\d{2}")); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to match <\\d{2}:\\d{2}>, got ", ^{ 26 | expect(nil).to(match(@"\\d{2}:\\d{2}")); 27 | }); 28 | expectNilFailureMessage(@"expected to not match <\\d{2}:\\d{2}>, got ", ^{ 29 | expect(nil).toNot(match(@"\\d{2}:\\d{2}")); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Filter.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /** 4 | A mapping of string keys to booleans that can be used to 5 | filter examples or example groups. For example, a "focused" 6 | example would have the flags [Focused: true]. 7 | */ 8 | public typealias FilterFlags = [String: Bool] 9 | 10 | /** 11 | A namespace for filter flag keys, defined primarily to make the 12 | keys available in Objective-C. 13 | */ 14 | final public class Filter: NSObject { 15 | /** 16 | Example and example groups with [Focused: true] are included in test runs, 17 | excluding all other examples without this flag. Use this to only run one or 18 | two tests that you're currently focusing on. 19 | */ 20 | public class var focused: String { 21 | return "focused" 22 | } 23 | 24 | /** 25 | Example and example groups with [Pending: true] are excluded from test runs. 26 | Use this to temporarily suspend examples that you know do not pass yet. 27 | */ 28 | public class var pending: String { 29 | return "pending" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/BeforeSuiteTests+ObjC.m: -------------------------------------------------------------------------------- 1 | @import XCTest; 2 | @import Quick; 3 | @import Nimble; 4 | 5 | #import "QCKSpecRunner.h" 6 | 7 | static BOOL beforeSuiteWasExecuted = NO; 8 | 9 | QuickSpecBegin(FunctionalTests_BeforeSuite_BeforeSuiteSpec_ObjC) 10 | 11 | beforeSuite(^{ 12 | beforeSuiteWasExecuted = YES; 13 | }); 14 | 15 | QuickSpecEnd 16 | 17 | QuickSpecBegin(FunctionalTests_BeforeSuite_Spec_ObjC) 18 | 19 | it(@"is executed after beforeSuite", ^{ 20 | expect(@(beforeSuiteWasExecuted)).to(beTruthy()); 21 | }); 22 | 23 | QuickSpecEnd 24 | 25 | @interface BeforeSuiteTests_ObjC : XCTestCase; @end 26 | 27 | @implementation BeforeSuiteTests_ObjC 28 | 29 | - (void)testBeforeSuiteIsExecutedBeforeAnyExamples { 30 | // Execute the spec with an assertion before the one with a beforeSuite 31 | NSArray *specs = @[ 32 | [FunctionalTests_BeforeSuite_Spec_ObjC class], 33 | [FunctionalTests_BeforeSuite_BeforeSuiteSpec_ObjC class] 34 | ]; 35 | XCTestRun *result = qck_runSpecs(specs); 36 | XCTAssert(result.hasSucceeded); 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.m: -------------------------------------------------------------------------------- 1 | #import "QuickSpec+QuickSpec_MethodList.h" 2 | #import 3 | 4 | 5 | @implementation QuickSpec (QuickSpec_MethodList) 6 | 7 | /** 8 | * This method will instantiate an instance of the class on which it is called, 9 | * returning a list of selector names for it. 10 | * 11 | * @warning Only intended to be used in test assertions! 12 | * 13 | * @return a set of NSStrings representing the list of selectors it contains 14 | */ 15 | + (NSSet *)allSelectors { 16 | QuickSpec *specInstance = [[[self class] alloc] init]; 17 | NSMutableSet *allSelectors = [NSMutableSet set]; 18 | 19 | unsigned int methodCount = 0; 20 | Method *mlist = class_copyMethodList(object_getClass(specInstance), &methodCount); 21 | 22 | for(unsigned int i = 0; i < methodCount; i++) { 23 | SEL selector = method_getName(mlist[i]); 24 | [allSelectors addObject:NSStringFromSelector(selector)]; 25 | } 26 | 27 | free(mlist); 28 | return [allSelectors copy]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/iOS/Extensions/UIDevice+Model.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIDevice { 4 | 5 | public enum DeviceKind { 6 | case iPhone4 7 | case iPhone5 8 | case iPhone6 9 | case iPhone6Plus 10 | case iPad 11 | case Unknown 12 | } 13 | 14 | public var kind: DeviceKind { 15 | guard userInterfaceIdiom == .Phone else { 16 | return .iPad 17 | } 18 | 19 | let result: DeviceKind 20 | 21 | switch UIScreen.mainScreen().nativeBounds.height { 22 | case 960: 23 | result = .iPhone4 24 | case 1136: 25 | result = .iPhone5 26 | case 1334: 27 | result = .iPhone6 28 | case 2208: 29 | result = .iPhone6Plus 30 | default: 31 | result = .Unknown 32 | } 33 | 34 | return result 35 | } 36 | 37 | public static func isPhone() -> Bool { 38 | return UIDevice().userInterfaceIdiom == .Phone 39 | } 40 | 41 | public static func isPad() -> Bool { 42 | return UIDevice().userInterfaceIdiom == .Pad 43 | } 44 | 45 | public static func isSimulator() -> Bool { 46 | return Simulator.isRunning 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Tests/Shared/TestStringExtensionCoreFoundation.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import XCTest 3 | @testable import Sugar 4 | 5 | class StringExtensionCoreFoundationTests: XCTestCase { 6 | 7 | func testStringLength() { 8 | var testString = "foo" 9 | 10 | XCTAssertEqual(testString.characters.count, testString.length) 11 | XCTAssertEqual(testString.lengthOfBytesUsingEncoding(NSUTF8StringEncoding), testString.length) 12 | 13 | testString = "Hyper🚀" 14 | 15 | XCTAssertEqual(testString.characters.count, testString.length) 16 | XCTAssertNotEqual(testString.lengthOfBytesUsingEncoding(NSUTF8StringEncoding), testString.length) 17 | } 18 | 19 | func testStringReplace() { 20 | let stringA = "-foo-" 21 | let stringB = ":foo:" 22 | let stringC = stringA.replace("-", with: ":") 23 | 24 | XCTAssertEqual(stringB, stringC) 25 | XCTAssertEqual(stringC, stringA.stringByReplacingOccurrencesOfString("-", withString: ":")) 26 | } 27 | 28 | func testStringSplit() { 29 | let testString = "root/path/file" 30 | let parts = testString.split("/") 31 | XCTAssertEqual(parts.count, 3) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/Utils/ExceptionCapture.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | #if !_runtime(_ObjC) 4 | // swift-corelibs-foundation doesn't provide NSException at all, so provide a dummy 5 | class NSException {} 6 | #endif 7 | 8 | // NOTE: This file is not intended to be included in the Xcode project. It 9 | // is picked up by the Swift Package Manager during its build process. 10 | 11 | /// A dummy reimplementation of the `NMBExceptionCapture` class to serve 12 | /// as a stand-in for build and runtime environments that don't support 13 | /// Objective C. 14 | internal class ExceptionCapture { 15 | let finally: (() -> Void)? 16 | 17 | init(handler: ((NSException!) -> Void)?, finally: (() -> Void)?) { 18 | self.finally = finally 19 | } 20 | 21 | func tryBlock(unsafeBlock: (() -> Void)) { 22 | // We have no way of handling Objective C exceptions in Swift, 23 | // so we just go ahead and run the unsafeBlock as-is 24 | unsafeBlock() 25 | 26 | finally?() 27 | } 28 | } 29 | 30 | /// Compatibility with the actual Objective-C implementation 31 | typealias NMBExceptionCapture = ExceptionCapture 32 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeLessThanOrEqualToTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeLessThanOrEqualToTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeLessThanOrEqualToTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beLessThanOrEqualTo(@2)); 12 | expect(@2).toNot(beLessThanOrEqualTo(@1)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be less than or equal to <1.0000>, got <2.0000>", ^{ 17 | expect(@2).to(beLessThanOrEqualTo(@1)); 18 | }); 19 | expectFailureMessage(@"expected to not be less than or equal to <1.0000>, got <1.0000>", ^{ 20 | expect(@1).toNot(beLessThanOrEqualTo(@1)); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be less than or equal to <1.0000>, got ", ^{ 26 | expect(nil).to(beLessThanOrEqualTo(@1)); 27 | }); 28 | expectNilFailureMessage(@"expected to not be less than or equal to <-1.0000>, got ", ^{ 29 | expect(nil).toNot(beLessThanOrEqualTo(@(-1))); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/iOS/Extensions/UIDevice+Model.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | public extension UIDevice { 4 | 5 | public enum DeviceKind { 6 | case iPhone4 7 | case iPhone5 8 | case iPhone6 9 | case iPhone6Plus 10 | case iPad 11 | case Unknown 12 | } 13 | 14 | public var kind: DeviceKind { 15 | guard userInterfaceIdiom == .Phone else { 16 | return .iPad 17 | } 18 | 19 | let result: DeviceKind 20 | 21 | switch UIScreen.mainScreen().nativeBounds.height { 22 | case 960: 23 | result = .iPhone4 24 | case 1136: 25 | result = .iPhone5 26 | case 1334: 27 | result = .iPhone6 28 | case 2208: 29 | result = .iPhone6Plus 30 | default: 31 | result = .Unknown 32 | } 33 | 34 | return result 35 | } 36 | 37 | public static func isPhone() -> Bool { 38 | return UIDevice().userInterfaceIdiom == .Phone 39 | } 40 | 41 | public static func isPad() -> Bool { 42 | return UIDevice().userInterfaceIdiom == .Pad 43 | } 44 | 45 | public static func isSimulator() -> Bool { 46 | return Simulator.isRunning 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Utils/ExceptionCapture.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | #if !_runtime(_ObjC) 4 | // swift-corelibs-foundation doesn't provide NSException at all, so provide a dummy 5 | class NSException {} 6 | #endif 7 | 8 | // NOTE: This file is not intended to be included in the Xcode project. It 9 | // is picked up by the Swift Package Manager during its build process. 10 | 11 | /// A dummy reimplementation of the `NMBExceptionCapture` class to serve 12 | /// as a stand-in for build and runtime environments that don't support 13 | /// Objective C. 14 | internal class ExceptionCapture { 15 | let finally: (() -> Void)? 16 | 17 | init(handler: ((NSException!) -> Void)?, finally: (() -> Void)?) { 18 | self.finally = finally 19 | } 20 | 21 | func tryBlock(unsafeBlock: (() -> Void)) { 22 | // We have no way of handling Objective C exceptions in Swift, 23 | // so we just go ahead and run the unsafeBlock as-is 24 | unsafeBlock() 25 | 26 | finally?() 27 | } 28 | } 29 | 30 | /// Compatibility with the actual Objective-C implementation 31 | typealias NMBExceptionCapture = ExceptionCapture 32 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Matchers/Match.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// A Nimble matcher that succeeds when the actual string satisfies the regular expression 4 | /// described by the expected string. 5 | public func match(expectedValue: String?) -> NonNilMatcherFunc { 6 | return NonNilMatcherFunc { actualExpression, failureMessage in 7 | failureMessage.postfixMessage = "match <\(stringify(expectedValue))>" 8 | 9 | if let actual = try actualExpression.evaluate() { 10 | if let regexp = expectedValue { 11 | return actual.rangeOfString(regexp, options: .RegularExpressionSearch) != nil 12 | } 13 | } 14 | 15 | return false 16 | } 17 | } 18 | 19 | extension NMBObjCMatcher { 20 | public class func matchMatcher(expected: NSString) -> NMBMatcher { 21 | return NMBObjCMatcher(canMatchNil: false) { actualExpression, failureMessage in 22 | let actual = actualExpression.cast { $0 as? String } 23 | return try! match(expected.description).matches(actual, failureMessage: failureMessage) 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeKindOfTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeKindOfTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeKindOfTest 9 | 10 | - (void)testPositiveMatches { 11 | NSMutableArray *array = [NSMutableArray array]; 12 | expect(array).to(beAKindOf([NSArray class])); 13 | expect(@1).toNot(beAKindOf([NSNull class])); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be a kind of NSNull, got <__NSCFNumber instance>", ^{ 18 | expect(@1).to(beAKindOf([NSNull class])); 19 | }); 20 | expectFailureMessage(@"expected to not be a kind of NSNull, got ", ^{ 21 | expect([NSNull null]).toNot(beAKindOf([NSNull class])); 22 | }); 23 | } 24 | 25 | - (void)testNilMatches { 26 | expectNilFailureMessage(@"expected to be a kind of NSNull, got ", ^{ 27 | expect(nil).to(beAKindOf([NSNull class])); 28 | }); 29 | expectNilFailureMessage(@"expected to not be a kind of NSNull, got ", ^{ 30 | expect(nil).toNot(beAKindOf([NSNull class])); 31 | }); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeginWithTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeginWithTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeginWithTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@"hello world!").to(beginWith(@"hello")); 12 | expect(@"hello world!").toNot(beginWith(@"world")); 13 | 14 | NSArray *array = @[@1, @2]; 15 | expect(array).to(beginWith(@1)); 16 | expect(array).toNot(beginWith(@2)); 17 | } 18 | 19 | - (void)testNegativeMatches { 20 | expectFailureMessage(@"expected to begin with , got ", ^{ 21 | expect(@"foo").to(beginWith(@"bar")); 22 | }); 23 | expectFailureMessage(@"expected to not begin with , got ", ^{ 24 | expect(@"foo").toNot(beginWith(@"foo")); 25 | }); 26 | } 27 | 28 | - (void)testNilMatches { 29 | expectNilFailureMessage(@"expected to begin with <1>, got ", ^{ 30 | expect(nil).to(beginWith(@1)); 31 | }); 32 | expectNilFailureMessage(@"expected to not begin with <1>, got ", ^{ 33 | expect(nil).toNot(beginWith(@1)); 34 | }); 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeLessThanOrEqualToTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeLessThanOrEqualToTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeLessThanOrEqualToTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beLessThanOrEqualTo(@2)); 12 | expect(@2).toNot(beLessThanOrEqualTo(@1)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be less than or equal to <1.0000>, got <2.0000>", ^{ 17 | expect(@2).to(beLessThanOrEqualTo(@1)); 18 | }); 19 | expectFailureMessage(@"expected to not be less than or equal to <1.0000>, got <1.0000>", ^{ 20 | expect(@1).toNot(beLessThanOrEqualTo(@1)); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be less than or equal to <1.0000>, got ", ^{ 26 | expect(nil).to(beLessThanOrEqualTo(@1)); 27 | }); 28 | expectNilFailureMessage(@"expected to not be less than or equal to <-1.0000>, got ", ^{ 29 | expect(nil).toNot(beLessThanOrEqualTo(@(-1))); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Nimble/Sources/Nimble/Matchers/Match.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | #if _runtime(_ObjC) 4 | 5 | /// A Nimble matcher that succeeds when the actual string satisfies the regular expression 6 | /// described by the expected string. 7 | public func match(expectedValue: String?) -> NonNilMatcherFunc { 8 | return NonNilMatcherFunc { actualExpression, failureMessage in 9 | failureMessage.postfixMessage = "match <\(stringify(expectedValue))>" 10 | 11 | if let actual = try actualExpression.evaluate() { 12 | if let regexp = expectedValue { 13 | return actual.rangeOfString(regexp, options: .RegularExpressionSearch) != nil 14 | } 15 | } 16 | 17 | return false 18 | } 19 | } 20 | 21 | extension NMBObjCMatcher { 22 | public class func matchMatcher(expected: NSString) -> NMBMatcher { 23 | return NMBObjCMatcher(canMatchNil: false) { actualExpression, failureMessage in 24 | let actual = actualExpression.cast { $0 as? String } 25 | return try! match(expected.description).matches(actual, failureMessage: failureMessage) 26 | } 27 | } 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Sources/Nimble/Matchers/Match.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | #if _runtime(_ObjC) 4 | 5 | /// A Nimble matcher that succeeds when the actual string satisfies the regular expression 6 | /// described by the expected string. 7 | public func match(expectedValue: String?) -> NonNilMatcherFunc { 8 | return NonNilMatcherFunc { actualExpression, failureMessage in 9 | failureMessage.postfixMessage = "match <\(stringify(expectedValue))>" 10 | 11 | if let actual = try actualExpression.evaluate() { 12 | if let regexp = expectedValue { 13 | return actual.rangeOfString(regexp, options: .RegularExpressionSearch) != nil 14 | } 15 | } 16 | 17 | return false 18 | } 19 | } 20 | 21 | extension NMBObjCMatcher { 22 | public class func matchMatcher(expected: NSString) -> NMBMatcher { 23 | return NMBObjCMatcher(canMatchNil: false) { actualExpression, failureMessage in 24 | let actual = actualExpression.cast { $0 as? String } 25 | return try! match(expected.description).matches(actual, failureMessage: failureMessage) 26 | } 27 | } 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/Helpers/XCTestCaseProvider.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import XCTest 3 | 4 | // XCTestCaseProvider is defined in swift-corelibs-xctest, but is not available 5 | // in the XCTest that ships with Xcode. By defining this protocol on Apple platforms, 6 | // we ensure that the tests fail in Xcode if they haven't been configured properly to 7 | // be run with the open-source tools. 8 | 9 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS) 10 | 11 | public protocol XCTestCaseProvider { 12 | var allTests: [(String, () throws -> Void)] { get } 13 | } 14 | 15 | extension XCTestCase { 16 | override public func tearDown() { 17 | if let provider = self as? XCTestCaseProvider { 18 | provider.assertContainsTest(invocation!.selector.description) 19 | } 20 | 21 | super.tearDown() 22 | } 23 | } 24 | 25 | extension XCTestCaseProvider { 26 | private func assertContainsTest(name: String) { 27 | let contains = self.allTests.contains({ test in 28 | return test.0 == name 29 | }) 30 | 31 | XCTAssert(contains, "Test '\(name)' is missing from the allTests array") 32 | } 33 | } 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeginWithTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeginWithTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeginWithTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@"hello world!").to(beginWith(@"hello")); 12 | expect(@"hello world!").toNot(beginWith(@"world")); 13 | 14 | NSArray *array = @[@1, @2]; 15 | expect(array).to(beginWith(@1)); 16 | expect(array).toNot(beginWith(@2)); 17 | } 18 | 19 | - (void)testNegativeMatches { 20 | expectFailureMessage(@"expected to begin with , got ", ^{ 21 | expect(@"foo").to(beginWith(@"bar")); 22 | }); 23 | expectFailureMessage(@"expected to not begin with , got ", ^{ 24 | expect(@"foo").toNot(beginWith(@"foo")); 25 | }); 26 | } 27 | 28 | - (void)testNilMatches { 29 | expectNilFailureMessage(@"expected to begin with <1>, got ", ^{ 30 | expect(nil).to(beginWith(@1)); 31 | }); 32 | expectNilFailureMessage(@"expected to not begin with <1>, got ", ^{ 33 | expect(nil).toNot(beginWith(@1)); 34 | }); 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/Configuration/BeforeEach/Configuration+BeforeEachTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Quick 3 | import Nimble 4 | #if SWIFT_PACKAGE 5 | import QuickTestHelpers 6 | #endif 7 | 8 | class Configuration_BeforeEachSpec: QuickSpec { 9 | override func spec() { 10 | it("is executed after the configuration beforeEach") { 11 | expect(FunctionalTests_Configuration_BeforeEachWasExecuted).to(beTruthy()) 12 | } 13 | } 14 | } 15 | 16 | class Configuration_BeforeEachTests: XCTestCase, XCTestCaseProvider { 17 | var allTests: [(String, () -> Void)] { 18 | return [ 19 | ("testExampleIsRunAfterTheConfigurationBeforeEachIsExecuted", testExampleIsRunAfterTheConfigurationBeforeEachIsExecuted), 20 | ] 21 | } 22 | 23 | func testExampleIsRunAfterTheConfigurationBeforeEachIsExecuted() { 24 | FunctionalTests_Configuration_BeforeEachWasExecuted = false 25 | 26 | qck_runSpec(Configuration_BeforeEachSpec.self) 27 | XCTAssert(FunctionalTests_Configuration_BeforeEachWasExecuted) 28 | 29 | FunctionalTests_Configuration_BeforeEachWasExecuted = false 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/XCTestCaseProvider.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import XCTest 3 | 4 | // XCTestCaseProvider is defined in swift-corelibs-xctest, but is not available 5 | // in the XCTest that ships with Xcode. By defining this protocol on Apple platforms, 6 | // we ensure that the tests fail in Xcode if they haven't been configured properly to 7 | // be run with the open-source tools. 8 | 9 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS) 10 | 11 | public protocol XCTestCaseProvider { 12 | var allTests : [(String, () -> Void)] { get } 13 | } 14 | 15 | extension XCTestCase { 16 | override public func tearDown() { 17 | if let provider = self as? XCTestCaseProvider { 18 | provider.assertContainsTest(invocation!.selector.description) 19 | } 20 | 21 | super.tearDown() 22 | } 23 | } 24 | 25 | extension XCTestCaseProvider { 26 | private func assertContainsTest(name: String) { 27 | let contains = self.allTests.contains({ test in 28 | return test.0 == name 29 | }) 30 | 31 | XCTAssert(contains, "Test '\(name)' is missing from the allTests array") 32 | } 33 | } 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeKindOfTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeKindOfTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeKindOfTest 9 | 10 | - (void)testPositiveMatches { 11 | NSMutableArray *array = [NSMutableArray array]; 12 | expect(array).to(beAKindOf([NSArray class])); 13 | expect(@1).toNot(beAKindOf([NSNull class])); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be a kind of NSNull, got <__NSCFNumber instance>", ^{ 18 | expect(@1).to(beAKindOf([NSNull class])); 19 | }); 20 | expectFailureMessage(@"expected to not be a kind of NSNull, got ", ^{ 21 | expect([NSNull null]).toNot(beAKindOf([NSNull class])); 22 | }); 23 | } 24 | 25 | - (void)testNilMatches { 26 | expectNilFailureMessage(@"expected to be a kind of NSNull, got ", ^{ 27 | expect(nil).to(beAKindOf([NSNull class])); 28 | }); 29 | expectNilFailureMessage(@"expected to not be a kind of NSNull, got ", ^{ 30 | expect(nil).toNot(beAKindOf([NSNull class])); 31 | }); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeGreaterThanOrEqualToTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeGreaterThanOrEqualToTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeGreaterThanOrEqualToTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beGreaterThanOrEqualTo(@2)); 12 | expect(@2).toNot(beGreaterThanOrEqualTo(@3)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be greater than or equal to <0.0000>, got <-1.0000>", ^{ 17 | expect(@(-1)).to(beGreaterThanOrEqualTo(@0)); 18 | }); 19 | expectFailureMessage(@"expected to not be greater than or equal to <1.0000>, got <2.0000>", ^{ 20 | expect(@2).toNot(beGreaterThanOrEqualTo(@(1))); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be greater than or equal to <-1.0000>, got ", ^{ 26 | expect(nil).to(beGreaterThanOrEqualTo(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be greater than or equal to <1.0000>, got ", ^{ 29 | expect(nil).toNot(beGreaterThanOrEqualTo(@(1))); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCEndWithTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCEndWithTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCEndWithTest 9 | 10 | - (void)testPositiveMatches { 11 | NSArray *array = @[@1, @2]; 12 | expect(@"hello world!").to(endWith(@"world!")); 13 | expect(@"hello world!").toNot(endWith(@"hello")); 14 | expect(array).to(endWith(@2)); 15 | expect(array).toNot(endWith(@1)); 16 | expect(@1).toNot(contain(@"foo")); 17 | } 18 | 19 | - (void)testNegativeMatches { 20 | expectFailureMessage(@"expected to end with , got ", ^{ 21 | expect(@"hello world!").to(endWith(@"?")); 22 | }); 23 | expectFailureMessage(@"expected to not end with , got ", ^{ 24 | expect(@"hello world!").toNot(endWith(@"!")); 25 | }); 26 | } 27 | 28 | - (void)testNilMatches { 29 | expectNilFailureMessage(@"expected to end with <1>, got ", ^{ 30 | expect(nil).to(endWith(@1)); 31 | }); 32 | expectNilFailureMessage(@"expected to not end with <1>, got ", ^{ 33 | expect(nil).toNot(endWith(@1)); 34 | }); 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/Hooks/Closures.swift: -------------------------------------------------------------------------------- 1 | // MARK: Example Hooks 2 | 3 | /** 4 | A closure executed before an example is run. 5 | */ 6 | public typealias BeforeExampleClosure = () -> () 7 | 8 | /** 9 | A closure executed before an example is run. The closure is given example metadata, 10 | which contains information about the example that is about to be run. 11 | */ 12 | public typealias BeforeExampleWithMetadataClosure = (exampleMetadata: ExampleMetadata) -> () 13 | 14 | /** 15 | A closure executed after an example is run. 16 | */ 17 | public typealias AfterExampleClosure = BeforeExampleClosure 18 | 19 | /** 20 | A closure executed after an example is run. The closure is given example metadata, 21 | which contains information about the example that has just finished running. 22 | */ 23 | public typealias AfterExampleWithMetadataClosure = BeforeExampleWithMetadataClosure 24 | 25 | // MARK: Suite Hooks 26 | 27 | /** 28 | A closure executed before any examples are run. 29 | */ 30 | public typealias BeforeSuiteClosure = () -> () 31 | 32 | /** 33 | A closure executed after all examples have finished running. 34 | */ 35 | public typealias AfterSuiteClosure = BeforeSuiteClosure 36 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/Source/Shared/Swizzler.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct Swizzler { 4 | 5 | public enum Kind { 6 | case Instance 7 | case Class 8 | } 9 | 10 | public static func swizzle(method: String, cls: AnyClass!, prefix: String = "swizzled", kind: Kind = .Instance) { 11 | let originalSelector = Selector(method) 12 | let swizzledSelector = Selector("\(prefix)_\(method)") 13 | 14 | let originalMethod = kind == .Instance 15 | ? class_getInstanceMethod(cls, originalSelector) 16 | : class_getClassMethod(cls, originalSelector) 17 | 18 | let swizzledMethod = kind == .Instance 19 | ? class_getInstanceMethod(cls, swizzledSelector) 20 | : class_getClassMethod(cls, swizzledSelector) 21 | 22 | let didAddMethod = class_addMethod(cls, originalSelector, 23 | method_getImplementation(swizzledMethod), 24 | method_getTypeEncoding(swizzledMethod)) 25 | 26 | if didAddMethod { 27 | class_replaceMethod(cls, swizzledSelector, 28 | method_getImplementation(originalMethod), 29 | method_getTypeEncoding(originalMethod)) 30 | } else { 31 | method_exchangeImplementations(originalMethod, swizzledMethod) 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeCloseToTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeCloseToTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeCloseToTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@1.2).to(beCloseTo(@1.2001)); 12 | expect(@1.2).to(beCloseTo(@2).within(10)); 13 | expect(@2).toNot(beCloseTo(@1)); 14 | expect(@1.00001).toNot(beCloseTo(@1).within(0.00000001)); 15 | } 16 | 17 | - (void)testNegativeMatches { 18 | expectFailureMessage(@"expected to be close to <0.0000> (within 0.0010), got <1.0000>", ^{ 19 | expect(@1).to(beCloseTo(@0)); 20 | }); 21 | expectFailureMessage(@"expected to not be close to <0.0000> (within 0.0010), got <0.0001>", ^{ 22 | expect(@(0.0001)).toNot(beCloseTo(@0)); 23 | }); 24 | } 25 | 26 | - (void)testNilMatches { 27 | expectNilFailureMessage(@"expected to be close to <0.0000> (within 0.0010), got ", ^{ 28 | expect(nil).to(beCloseTo(@0)); 29 | }); 30 | expectNilFailureMessage(@"expected to not be close to <0.0000> (within 0.0010), got ", ^{ 31 | expect(nil).toNot(beCloseTo(@0)); 32 | }); 33 | } 34 | 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Hooks/Closures.swift: -------------------------------------------------------------------------------- 1 | // MARK: Example Hooks 2 | 3 | /** 4 | A closure executed before an example is run. 5 | */ 6 | public typealias BeforeExampleClosure = () -> () 7 | 8 | /** 9 | A closure executed before an example is run. The closure is given example metadata, 10 | which contains information about the example that is about to be run. 11 | */ 12 | public typealias BeforeExampleWithMetadataClosure = (exampleMetadata: ExampleMetadata) -> () 13 | 14 | /** 15 | A closure executed after an example is run. 16 | */ 17 | public typealias AfterExampleClosure = BeforeExampleClosure 18 | 19 | /** 20 | A closure executed after an example is run. The closure is given example metadata, 21 | which contains information about the example that has just finished running. 22 | */ 23 | public typealias AfterExampleWithMetadataClosure = BeforeExampleWithMetadataClosure 24 | 25 | // MARK: Suite Hooks 26 | 27 | /** 28 | A closure executed before any examples are run. 29 | */ 30 | public typealias BeforeSuiteClosure = () -> () 31 | 32 | /** 33 | A closure executed after all examples have finished running. 34 | */ 35 | public typealias AfterSuiteClosure = BeforeSuiteClosure 36 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeAnInstanceOfTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeAnInstanceOfTest : XCTestCase 5 | @end 6 | 7 | @implementation ObjCBeAnInstanceOfTest 8 | 9 | - (void)testPositiveMatches { 10 | NSNull *obj = [NSNull null]; 11 | expect(obj).to(beAnInstanceOf([NSNull class])); 12 | expect(@1).toNot(beAnInstanceOf([NSNull class])); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be an instance of NSNull, got <__NSCFNumber instance>", ^{ 17 | expect(@1).to(beAnInstanceOf([NSNull class])); 18 | }); 19 | expectFailureMessage(@"expected to not be an instance of NSNull, got ", ^{ 20 | expect([NSNull null]).toNot(beAnInstanceOf([NSNull class])); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be an instance of NSNull, got ", ^{ 26 | expect(nil).to(beAnInstanceOf([NSNull class])); 27 | }); 28 | 29 | expectNilFailureMessage(@"expected to not be an instance of NSNull, got ", ^{ 30 | expect(nil).toNot(beAnInstanceOf([NSNull class])); 31 | }); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeGreaterThanOrEqualToTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeGreaterThanOrEqualToTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeGreaterThanOrEqualToTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beGreaterThanOrEqualTo(@2)); 12 | expect(@2).toNot(beGreaterThanOrEqualTo(@3)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be greater than or equal to <0.0000>, got <-1.0000>", ^{ 17 | expect(@(-1)).to(beGreaterThanOrEqualTo(@0)); 18 | }); 19 | expectFailureMessage(@"expected to not be greater than or equal to <1.0000>, got <2.0000>", ^{ 20 | expect(@2).toNot(beGreaterThanOrEqualTo(@(1))); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be greater than or equal to <-1.0000>, got ", ^{ 26 | expect(nil).to(beGreaterThanOrEqualTo(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be greater than or equal to <1.0000>, got ", ^{ 29 | expect(nil).toNot(beGreaterThanOrEqualTo(@(1))); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/Source/Shared/Swizzler.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct Swizzler { 4 | 5 | public enum Kind { 6 | case Instance 7 | case Class 8 | } 9 | 10 | public static func swizzle(method: String, cls: AnyClass!, prefix: String = "swizzled", kind: Kind = .Instance) { 11 | let originalSelector = Selector(method) 12 | let swizzledSelector = Selector("\(prefix)_\(method)") 13 | 14 | let originalMethod = kind == .Instance 15 | ? class_getInstanceMethod(cls, originalSelector) 16 | : class_getClassMethod(cls, originalSelector) 17 | 18 | let swizzledMethod = kind == .Instance 19 | ? class_getInstanceMethod(cls, swizzledSelector) 20 | : class_getClassMethod(cls, swizzledSelector) 21 | 22 | let didAddMethod = class_addMethod(cls, originalSelector, 23 | method_getImplementation(swizzledMethod), 24 | method_getTypeEncoding(swizzledMethod)) 25 | 26 | if didAddMethod { 27 | class_replaceMethod(cls, swizzledSelector, 28 | method_getImplementation(originalMethod), 29 | method_getTypeEncoding(originalMethod)) 30 | } else { 31 | method_exchangeImplementations(originalMethod, swizzledMethod) 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Sugar/LICENSE.md: -------------------------------------------------------------------------------- 1 | Licensed under the **MIT** license 2 | 3 | > Copyright (c) 2015 Hyper Interaktiv AS 4 | > 5 | > Permission is hereby granted, free of charge, to any person obtaining 6 | > a copy of this software and associated documentation files (the 7 | > "Software"), to deal in the Software without restriction, including 8 | > without limitation the rights to use, copy, modify, merge, publish, 9 | > distribute, sublicense, and/or sell copies of the Software, and to 10 | > permit persons to whom the Software is furnished to do so, subject to 11 | > the following conditions: 12 | > 13 | > The above copyright notice and this permission notice shall be 14 | > included in all copies or substantial portions of the Software. 15 | > 16 | > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | > CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | > TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCEndWithTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCEndWithTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCEndWithTest 9 | 10 | - (void)testPositiveMatches { 11 | NSArray *array = @[@1, @2]; 12 | expect(@"hello world!").to(endWith(@"world!")); 13 | expect(@"hello world!").toNot(endWith(@"hello")); 14 | expect(array).to(endWith(@2)); 15 | expect(array).toNot(endWith(@1)); 16 | expect(@1).toNot(contain(@"foo")); 17 | } 18 | 19 | - (void)testNegativeMatches { 20 | expectFailureMessage(@"expected to end with , got ", ^{ 21 | expect(@"hello world!").to(endWith(@"?")); 22 | }); 23 | expectFailureMessage(@"expected to not end with , got ", ^{ 24 | expect(@"hello world!").toNot(endWith(@"!")); 25 | }); 26 | } 27 | 28 | - (void)testNilMatches { 29 | expectNilFailureMessage(@"expected to end with <1>, got ", ^{ 30 | expect(nil).to(endWith(@1)); 31 | }); 32 | expectNilFailureMessage(@"expected to not end with <1>, got ", ^{ 33 | expect(nil).toNot(endWith(@1)); 34 | }); 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeCloseToTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeCloseToTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeCloseToTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@1.2).to(beCloseTo(@1.2001)); 12 | expect(@1.2).to(beCloseTo(@2).within(10)); 13 | expect(@2).toNot(beCloseTo(@1)); 14 | expect(@1.00001).toNot(beCloseTo(@1).within(0.00000001)); 15 | } 16 | 17 | - (void)testNegativeMatches { 18 | expectFailureMessage(@"expected to be close to <0.0000> (within 0.0010), got <1.0000>", ^{ 19 | expect(@1).to(beCloseTo(@0)); 20 | }); 21 | expectFailureMessage(@"expected to not be close to <0.0000> (within 0.0010), got <0.0001>", ^{ 22 | expect(@(0.0001)).toNot(beCloseTo(@0)); 23 | }); 24 | } 25 | 26 | - (void)testNilMatches { 27 | expectNilFailureMessage(@"expected to be close to <0.0000> (within 0.0010), got ", ^{ 28 | expect(nil).to(beCloseTo(@0)); 29 | }); 30 | expectNilFailureMessage(@"expected to not be close to <0.0000> (within 0.0010), got ", ^{ 31 | expect(nil).toNot(beCloseTo(@0)); 32 | }); 33 | } 34 | 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/objc/ObjCBeAnInstanceOfTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeAnInstanceOfTest : XCTestCase 5 | @end 6 | 7 | @implementation ObjCBeAnInstanceOfTest 8 | 9 | - (void)testPositiveMatches { 10 | NSNull *obj = [NSNull null]; 11 | expect(obj).to(beAnInstanceOf([NSNull class])); 12 | expect(@1).toNot(beAnInstanceOf([NSNull class])); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be an instance of NSNull, got <__NSCFNumber instance>", ^{ 17 | expect(@1).to(beAnInstanceOf([NSNull class])); 18 | }); 19 | expectFailureMessage(@"expected to not be an instance of NSNull, got ", ^{ 20 | expect([NSNull null]).toNot(beAnInstanceOf([NSNull class])); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be an instance of NSNull, got ", ^{ 26 | expect(nil).to(beAnInstanceOf([NSNull class])); 27 | }); 28 | 29 | expectNilFailureMessage(@"expected to not be an instance of NSNull, got ", ^{ 30 | expect(nil).toNot(beAnInstanceOf([NSNull class])); 31 | }); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Sugar/LICENSE.md: -------------------------------------------------------------------------------- 1 | Licensed under the **MIT** license 2 | 3 | > Copyright (c) 2015 Hyper Interaktiv AS 4 | > 5 | > Permission is hereby granted, free of charge, to any person obtaining 6 | > a copy of this software and associated documentation files (the 7 | > "Software"), to deal in the Software without restriction, including 8 | > without limitation the rights to use, copy, modify, merge, publish, 9 | > distribute, sublicense, and/or sell copies of the Software, and to 10 | > permit persons to whom the Software is furnished to do so, subject to 11 | > the following conditions: 12 | > 13 | > The above copyright notice and this permission notice shall be 14 | > included in all copies or substantial portions of the Software. 15 | > 16 | > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | > CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | > TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Matchers/BeIdenticalTo.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | 4 | /// A Nimble matcher that succeeds when the actual value is the same instance 5 | /// as the expected instance. 6 | public func beIdenticalTo(expected: T?) -> NonNilMatcherFunc { 7 | return NonNilMatcherFunc { actualExpression, failureMessage in 8 | let actual = try actualExpression.evaluate() 9 | failureMessage.actualValue = "\(identityAsString(actual))" 10 | failureMessage.postfixMessage = "be identical to \(identityAsString(expected))" 11 | return actual === expected && actual !== nil 12 | } 13 | } 14 | 15 | public func ===(lhs: Expectation, rhs: T?) { 16 | lhs.to(beIdenticalTo(rhs)) 17 | } 18 | public func !==(lhs: Expectation, rhs: T?) { 19 | lhs.toNot(beIdenticalTo(rhs)) 20 | } 21 | 22 | extension NMBObjCMatcher { 23 | public class func beIdenticalToMatcher(expected: NSObject?) -> NMBObjCMatcher { 24 | return NMBObjCMatcher(canMatchNil: false) { actualExpression, failureMessage in 25 | return try! beIdenticalTo(expected).matches(actualExpression, failureMessage: failureMessage) 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/AfterSuiteTests+ObjC.m: -------------------------------------------------------------------------------- 1 | @import XCTest; 2 | @import Quick; 3 | @import Nimble; 4 | 5 | #import "QCKSpecRunner.h" 6 | 7 | static BOOL afterSuiteWasExecuted = NO; 8 | 9 | QuickSpecBegin(FunctionalTests_AfterSuite_AfterSuiteSpec_ObjC) 10 | 11 | afterSuite(^{ 12 | afterSuiteWasExecuted = YES; 13 | }); 14 | 15 | QuickSpecEnd 16 | 17 | QuickSpecBegin(FunctionalTests_AfterSuite_Spec_ObjC) 18 | 19 | it(@"is executed before afterSuite", ^{ 20 | expect(@(afterSuiteWasExecuted)).to(beFalsy()); 21 | }); 22 | 23 | QuickSpecEnd 24 | 25 | @interface AfterSuiteTests_ObjC : XCTestCase; @end 26 | 27 | @implementation AfterSuiteTests_ObjC 28 | 29 | - (void)testAfterSuiteIsNotExecutedBeforeAnyExamples { 30 | // Execute the spec with an assertion after the one with an afterSuite. 31 | NSArray *specs = @[ 32 | [FunctionalTests_AfterSuite_AfterSuiteSpec_ObjC class], 33 | [FunctionalTests_AfterSuite_Spec_ObjC class] 34 | ]; 35 | XCTestRun *result = qck_runSpecs(specs); 36 | 37 | // Although this ensures that afterSuite is not called before any 38 | // examples, it doesn't test that it's ever called in the first place. 39 | XCTAssert(result.hasSucceeded); 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Cocoapods/TeaApp/Pods/Quick/Sources/Quick/Configuration/QuickConfiguration.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class Configuration; 4 | 5 | /** 6 | Subclass QuickConfiguration and override the +[QuickConfiguration configure:] 7 | method in order to configure how Quick behaves when running specs, or to define 8 | shared examples that are used across spec files. 9 | */ 10 | @interface QuickConfiguration : NSObject 11 | 12 | /** 13 | This method is executed on each subclass of this class before Quick runs 14 | any examples. You may override this method on as many subclasses as you like, but 15 | there is no guarantee as to the order in which these methods are executed. 16 | 17 | You can override this method in order to: 18 | 19 | 1. Configure how Quick behaves, by modifying properties on the Configuration object. 20 | Setting the same properties in several methods has undefined behavior. 21 | 22 | 2. Define shared examples using `sharedExamples`. 23 | 24 | @param configuration A mutable object that is used to configure how Quick behaves on 25 | a framework level. For details on all the options, see the 26 | documentation in Configuration.swift. 27 | */ 28 | + (void)configure:(Configuration *)configuration; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Externals/Nimble/Sources/NimbleTests/Matchers/MatchTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | 4 | class MatchTest:XCTestCase { 5 | func testMatchPositive() { 6 | expect("11:14").to(match("\\d{2}:\\d{2}")) 7 | } 8 | 9 | func testMatchNegative() { 10 | expect("hello").toNot(match("\\d{2}:\\d{2}")) 11 | } 12 | 13 | func testMatchPositiveMessage() { 14 | let message = "expected to match <\\d{2}:\\d{2}>, got " 15 | failsWithErrorMessage(message) { 16 | expect("hello").to(match("\\d{2}:\\d{2}")) 17 | } 18 | } 19 | 20 | func testMatchNegativeMessage() { 21 | let message = "expected to not match <\\d{2}:\\d{2}>, got <11:14>" 22 | failsWithErrorMessage(message) { 23 | expect("11:14").toNot(match("\\d{2}:\\d{2}")) 24 | } 25 | } 26 | 27 | func testMatchNils() { 28 | failsWithErrorMessageForNil("expected to match <\\d{2}:\\d{2}>, got ") { 29 | expect(nil as String?).to(match("\\d{2}:\\d{2}")) 30 | } 31 | 32 | failsWithErrorMessageForNil("expected to not match <\\d{2}:\\d{2}>, got ") { 33 | expect(nil as String?).toNot(match("\\d{2}:\\d{2}")) 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/Quick/Configuration/QuickConfiguration.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class Configuration; 4 | 5 | /** 6 | Subclass QuickConfiguration and override the +[QuickConfiguration configure:] 7 | method in order to configure how Quick behaves when running specs, or to define 8 | shared examples that are used across spec files. 9 | */ 10 | @interface QuickConfiguration : NSObject 11 | 12 | /** 13 | This method is executed on each subclass of this class before Quick runs 14 | any examples. You may override this method on as many subclasses as you like, but 15 | there is no guarantee as to the order in which these methods are executed. 16 | 17 | You can override this method in order to: 18 | 19 | 1. Configure how Quick behaves, by modifying properties on the Configuration object. 20 | Setting the same properties in several methods has undefined behavior. 21 | 22 | 2. Define shared examples using `sharedExamples`. 23 | 24 | @param configuration A mutable object that is used to configure how Quick behaves on 25 | a framework level. For details on all the options, see the 26 | documentation in Configuration.swift. 27 | */ 28 | + (void)configure:(Configuration *)configuration; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Carthage/BeerApp/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/DescribeTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | import Quick 4 | 5 | #if _runtime(_ObjC) 6 | 7 | class DescribeTests: XCTestCase, XCTestCaseProvider { 8 | var allTests: [(String, () -> Void)] { 9 | return [ 10 | ("testDescribeThrowsIfUsedOutsideOfQuickSpec", testDescribeThrowsIfUsedOutsideOfQuickSpec), 11 | ] 12 | } 13 | 14 | func testDescribeThrowsIfUsedOutsideOfQuickSpec() { 15 | expect { describe("this should throw an exception", {}) }.to(raiseException()) 16 | } 17 | } 18 | 19 | class QuickDescribeTests: QuickSpec { 20 | override func spec() { 21 | describe("Describe") { 22 | it("should throw an exception if used in an it block") { 23 | expect { 24 | describe("A nested describe that should throw") { } 25 | }.to(raiseException { (exception: NSException) in 26 | expect(exception.name).to(equal(NSInternalInconsistencyException)) 27 | expect(exception.reason).to(equal("'describe' cannot be used inside 'it', 'describe' may only be used inside 'context' or 'describe'. ")) 28 | }) 29 | } 30 | } 31 | } 32 | } 33 | 34 | #endif 35 | --------------------------------------------------------------------------------