Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Unit tests for the parser #9

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Example/PSSRedisClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/* Begin PBXBuildFile section */
102EAA865C27F182ABB91B76 /* Pods_PSSRedisClient_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F07CE36579172291747CF45 /* Pods_PSSRedisClient_Tests.framework */; };
4B3B5F3D2296E6D200456846 /* ParserTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B3B5F3C2296E6D200456846 /* ParserTests.swift */; };
5C3A75F30BEDA60EB5CF4374 /* Pods_PSSRedisClient_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CFB0065F43C5FCFBE7113CE5 /* Pods_PSSRedisClient_Example.framework */; };
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
Expand All @@ -31,6 +32,7 @@
1F07CE36579172291747CF45 /* Pods_PSSRedisClient_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PSSRedisClient_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
47C1130350FB8962AFF1E1B3 /* Pods-PSSRedisClient_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PSSRedisClient_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PSSRedisClient_Tests/Pods-PSSRedisClient_Tests.debug.xcconfig"; sourceTree = "<group>"; };
4A9ECFB6A4FDE8BC08BB05C5 /* Pods-PSSRedisClient_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PSSRedisClient_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PSSRedisClient_Example/Pods-PSSRedisClient_Example.debug.xcconfig"; sourceTree = "<group>"; };
4B3B5F3C2296E6D200456846 /* ParserTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParserTests.swift; sourceTree = "<group>"; };
4D49AA46A3E3BBD6CF880AB1 /* Pods-PSSRedisClient_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PSSRedisClient_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-PSSRedisClient_Tests/Pods-PSSRedisClient_Tests.release.xcconfig"; sourceTree = "<group>"; };
607FACD01AFB9204008FA782 /* PSSRedisClient_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PSSRedisClient_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -126,6 +128,7 @@
children = (
607FACEB1AFB9204008FA782 /* Tests.swift */,
607FACE91AFB9204008FA782 /* Supporting Files */,
4B3B5F3C2296E6D200456846 /* ParserTests.swift */,
);
path = Tests;
sourceTree = "<group>";
Expand Down Expand Up @@ -189,6 +192,7 @@
607FACE11AFB9204008FA782 /* Sources */,
607FACE21AFB9204008FA782 /* Frameworks */,
607FACE31AFB9204008FA782 /* Resources */,
3EB4D0CA1FC2CD962E7C0DEF /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -299,6 +303,30 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PSSRedisClient_Example/Pods-PSSRedisClient_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
3EB4D0CA1FC2CD962E7C0DEF /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-PSSRedisClient_Tests/Pods-PSSRedisClient_Tests-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/CocoaAsyncSocket/CocoaAsyncSocket.framework",
"${BUILT_PRODUCTS_DIR}/PSSRedisClient/PSSRedisClient.framework",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CocoaAsyncSocket.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PSSRedisClient.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PSSRedisClient_Tests/Pods-PSSRedisClient_Tests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
735C83929BC1DE1356B22749 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -333,6 +361,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4B3B5F3D2296E6D200456846 /* ParserTests.swift in Sources */,
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
4 changes: 4 additions & 0 deletions Example/PSSRedisClient/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,9 @@ class ViewController: UIViewController, RedisManagerDelegate, UITextFieldDelegat
func socketDidReceivePong(socket: RedisClient) {
debugPrint("SOCKET: Pong received")
}

func clientSideError(client: RedisClient, error: Error) {

}
}

2 changes: 1 addition & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ target 'PSSRedisClient_Example' do

target 'PSSRedisClient_Tests' do
inherit! :search_paths

pod 'PSSRedisClient', :path => '../'

end
end
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- CocoaAsyncSocket (7.6.3)
- PSSRedisClient (0.1.14):
- PSSRedisClient (0.1.16):
- CocoaAsyncSocket (>= 7.6.1)

DEPENDENCIES:
Expand All @@ -16,8 +16,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
CocoaAsyncSocket: eafaa68a7e0ec99ead0a7b35015e0bf25d2c8987
PSSRedisClient: 1b8e9d807999f0ee3d1f09e5b80da4367ba41550
PSSRedisClient: 03a82e11b89913b9398d771af9e115e05b89e849

PODFILE CHECKSUM: aee095853e4b79d728970208bf4d75fb75074742
PODFILE CHECKSUM: e3a6f07cd0bab34936a7c01fcc8d8e0b26c5f032

COCOAPODS: 1.6.1
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/PSSRedisClient.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading