Skip to content

Commit 8b11e44

Browse files
committed
Remove host in URLPatternExampleTests
1 parent 79a94f7 commit 8b11e44

File tree

3 files changed

+53
-44
lines changed

3 files changed

+53
-44
lines changed

URLPatternExample/URLPatternExample.xcodeproj/project.pbxproj

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
EF43E64B2D9ED8A800809F76 /* URLPattern in Frameworks */ = {isa = PBXBuildFile; productRef = EF43E64A2D9ED8A800809F76 /* URLPattern */; };
1212
EF43E64D2D9ED8A800809F76 /* URLPatternClient in Frameworks */ = {isa = PBXBuildFile; productRef = EF43E64C2D9ED8A800809F76 /* URLPatternClient */; };
1313
EF43E6502D9ED93E00809F76 /* URLPattern in Frameworks */ = {isa = PBXBuildFile; productRef = EF43E64F2D9ED93E00809F76 /* URLPattern */; };
14+
EF43E72D2D9FE2C300809F76 /* URLPattern in Frameworks */ = {isa = PBXBuildFile; productRef = EF43E72C2D9FE2C300809F76 /* URLPattern */; };
15+
EF43E7302D9FE2CC00809F76 /* URLPattern in Frameworks */ = {isa = PBXBuildFile; productRef = EF43E72F2D9FE2CC00809F76 /* URLPattern */; };
1416
/* End PBXBuildFile section */
1517

1618
/* Begin PBXContainerItemProxy section */
@@ -46,6 +48,7 @@
4648
isa = PBXFrameworksBuildPhase;
4749
buildActionMask = 2147483647;
4850
files = (
51+
EF43E72D2D9FE2C300809F76 /* URLPattern in Frameworks */,
4952
EF43E6482D9ED87500809F76 /* URLPattern in Frameworks */,
5053
EF43E64D2D9ED8A800809F76 /* URLPatternClient in Frameworks */,
5154
EF43E64B2D9ED8A800809F76 /* URLPattern in Frameworks */,
@@ -57,6 +60,7 @@
5760
isa = PBXFrameworksBuildPhase;
5861
buildActionMask = 2147483647;
5962
files = (
63+
EF43E7302D9FE2CC00809F76 /* URLPattern in Frameworks */,
6064
);
6165
runOnlyForDeploymentPostprocessing = 0;
6266
};
@@ -68,6 +72,7 @@
6872
children = (
6973
EF43E61B2D9ED86000809F76 /* URLPatternExample */,
7074
EF43E62C2D9ED86100809F76 /* URLPatternExampleTests */,
75+
EF43E72E2D9FE2CC00809F76 /* Frameworks */,
7176
EF43E61A2D9ED86000809F76 /* Products */,
7277
);
7378
sourceTree = "<group>";
@@ -81,6 +86,13 @@
8186
name = Products;
8287
sourceTree = "<group>";
8388
};
89+
EF43E72E2D9FE2CC00809F76 /* Frameworks */ = {
90+
isa = PBXGroup;
91+
children = (
92+
);
93+
name = Frameworks;
94+
sourceTree = "<group>";
95+
};
8496
/* End PBXGroup section */
8597

8698
/* Begin PBXNativeTarget section */
@@ -105,6 +117,7 @@
105117
EF43E64A2D9ED8A800809F76 /* URLPattern */,
106118
EF43E64C2D9ED8A800809F76 /* URLPatternClient */,
107119
EF43E64F2D9ED93E00809F76 /* URLPattern */,
120+
EF43E72C2D9FE2C300809F76 /* URLPattern */,
108121
);
109122
productName = URLPatternExample;
110123
productReference = EF43E6192D9ED86000809F76 /* URLPatternExample.app */;
@@ -128,6 +141,7 @@
128141
);
129142
name = URLPatternExampleTests;
130143
packageProductDependencies = (
144+
EF43E72F2D9FE2CC00809F76 /* URLPattern */,
131145
);
132146
productName = URLPatternExampleTests;
133147
productReference = EF43E6292D9ED86100809F76 /* URLPatternExampleTests.xctest */;
@@ -148,7 +162,6 @@
148162
};
149163
EF43E6282D9ED86100809F76 = {
150164
CreatedOnToolsVersion = 16.2;
151-
TestTargetID = EF43E6182D9ED86000809F76;
152165
};
153166
};
154167
};
@@ -162,7 +175,7 @@
162175
mainGroup = EF43E6102D9ED86000809F76;
163176
minimizedProjectReferenceProxies = 1;
164177
packageReferences = (
165-
EF43E64E2D9ED93E00809F76 /* XCLocalSwiftPackageReference "../../URLPattern" */,
178+
EF43E72B2D9FE2C300809F76 /* XCLocalSwiftPackageReference "../../URLPattern" */,
166179
);
167180
preferredProjectObjectVersion = 77;
168181
productRefGroup = EF43E61A2D9ED86000809F76 /* Products */;
@@ -400,7 +413,6 @@
400413
EF43E6412D9ED86100809F76 /* Debug */ = {
401414
isa = XCBuildConfiguration;
402415
buildSettings = {
403-
BUNDLE_LOADER = "$(TEST_HOST)";
404416
CODE_SIGN_STYLE = Automatic;
405417
CURRENT_PROJECT_VERSION = 1;
406418
DEVELOPMENT_TEAM = HK54HM2TC6;
@@ -412,14 +424,12 @@
412424
SWIFT_EMIT_LOC_STRINGS = NO;
413425
SWIFT_VERSION = 5.0;
414426
TARGETED_DEVICE_FAMILY = "1,2";
415-
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/URLPatternExample.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/URLPatternExample";
416427
};
417428
name = Debug;
418429
};
419430
EF43E6422D9ED86100809F76 /* Release */ = {
420431
isa = XCBuildConfiguration;
421432
buildSettings = {
422-
BUNDLE_LOADER = "$(TEST_HOST)";
423433
CODE_SIGN_STYLE = Automatic;
424434
CURRENT_PROJECT_VERSION = 1;
425435
DEVELOPMENT_TEAM = HK54HM2TC6;
@@ -431,7 +441,6 @@
431441
SWIFT_EMIT_LOC_STRINGS = NO;
432442
SWIFT_VERSION = 5.0;
433443
TARGETED_DEVICE_FAMILY = "1,2";
434-
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/URLPatternExample.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/URLPatternExample";
435444
};
436445
name = Release;
437446
};
@@ -468,7 +477,7 @@
468477
/* End XCConfigurationList section */
469478

470479
/* Begin XCLocalSwiftPackageReference section */
471-
EF43E64E2D9ED93E00809F76 /* XCLocalSwiftPackageReference "../../URLPattern" */ = {
480+
EF43E72B2D9FE2C300809F76 /* XCLocalSwiftPackageReference "../../URLPattern" */ = {
472481
isa = XCLocalSwiftPackageReference;
473482
relativePath = ../../URLPattern;
474483
};
@@ -491,6 +500,15 @@
491500
isa = XCSwiftPackageProductDependency;
492501
productName = URLPattern;
493502
};
503+
EF43E72C2D9FE2C300809F76 /* URLPattern */ = {
504+
isa = XCSwiftPackageProductDependency;
505+
productName = URLPattern;
506+
};
507+
EF43E72F2D9FE2CC00809F76 /* URLPattern */ = {
508+
isa = XCSwiftPackageProductDependency;
509+
package = EF43E72B2D9FE2C300809F76 /* XCLocalSwiftPackageReference "../../URLPattern" */;
510+
productName = URLPattern;
511+
};
494512
/* End XCSwiftPackageProductDependency section */
495513
};
496514
rootObject = EF43E6112D9ED86000809F76 /* Project object */;

URLPatternExample/URLPatternExample/Mock/DeepLinkMock.swift

Lines changed: 0 additions & 35 deletions
This file was deleted.

URLPatternExample/URLPatternExampleTests/URLPatternExampleTests.swift

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,34 @@
66
//
77

88
import Testing
9-
import Foundation
10-
@testable import URLPatternExample
9+
import URLPattern
10+
11+
@URLPattern
12+
enum DeepLinkMock: Equatable {
13+
@URLPath("/home")
14+
case home
15+
16+
@URLPath("/posts/{postId}")
17+
case post(postId: String)
18+
19+
@URLPath("/posts/{postId}/comments/{commentId}")
20+
case postComment(postId: String, commentId: String)
21+
22+
@URLPath("/setting/{number}")
23+
case setting(number: Int)
24+
25+
@URLPath("/int/{int}")
26+
case int(int: Int)
27+
28+
@URLPath("/float/{float}")
29+
case float(float: Float)
30+
31+
@URLPath("/string/{string}")
32+
case string(string: String)
33+
34+
@URLPath("/c/{cNum}/b/{bNum}/a/{aNum}")
35+
case complex(aNum: Int, bNum: Int, cNum: Int)
36+
}
1137

1238
struct URLPatternExampleTests {
1339
// MARK: - Home Tests

0 commit comments

Comments
 (0)