Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerd committed Apr 13, 2023
1 parent 1b66afd commit 0a56e0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions Tests/CommandsTests/PackageToolTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ final class PackageToolTests: CommandsTestCase {

let manifestA = Manifest.createRootManifest(
displayName: "PackageA",
path: .init(path: "/PackageA"),
path: "/PackageA",
toolsVersion: .v5_3,
dependencies: [
.fileSystem(path: .init(path: "/PackageB")),
.fileSystem(path: .init(path: "/PackageC")),
.fileSystem(path: "/PackageB"),
.fileSystem(path: "/PackageC"),
],
products: [
try .init(name: "exe", type: .executable, targets: ["TargetA"])
Expand All @@ -562,11 +562,11 @@ final class PackageToolTests: CommandsTestCase {

let manifestB = Manifest.createFileSystemManifest(
displayName: "PackageB",
path: .init(path: "/PackageB"),
path: "/PackageB",
toolsVersion: .v5_3,
dependencies: [
.fileSystem(path: .init(path: "/PackageC")),
.fileSystem(path: .init(path: "/PackageD")),
.fileSystem(path: "/PackageC"),
.fileSystem(path: "/PackageD"),
],
products: [
try .init(name: "PackageB", type: .library(.dynamic), targets: ["TargetB"])
Expand All @@ -578,10 +578,10 @@ final class PackageToolTests: CommandsTestCase {

let manifestC = Manifest.createFileSystemManifest(
displayName: "PackageC",
path: .init(path: "/PackageC"),
path: "/PackageC",
toolsVersion: .v5_3,
dependencies: [
.fileSystem(path: .init(path: "/PackageD")),
.fileSystem(path: "/PackageD"),
],
products: [
try .init(name: "PackageC", type: .library(.dynamic), targets: ["TargetC"])
Expand All @@ -593,7 +593,7 @@ final class PackageToolTests: CommandsTestCase {

let manifestD = Manifest.createFileSystemManifest(
displayName: "PackageD",
path: .init(path: "/PackageD"),
path: "/PackageD",
toolsVersion: .v5_3,
products: [
try .init(name: "PackageD", type: .library(.dynamic), targets: ["TargetD"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class PackageGraphPerfTests: XCTestCasePerf {

let root = Manifest.createRootManifest(
displayName: "PackageA",
path: .init(path: "/PackageA"),
path: "/PackageA",
toolsVersion: .v5_7,
dependencies: try packageNumberSequence.map({ .fileSystem(path: try .init(validating: "/Package\($0)")) }),
targets: [try .init(name: "TargetA", dependencies: ["Target1"]) ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ManifestLoadingPerfTests: XCTestCasePerf {
for _ in 0..<N {
let manifest = try! self.manifestLoader.load(
manifestPath: path,
packageKind: .root(.init(path: "/Trivial")),
packageKind: .root("/Trivial"),
toolsVersion: .v4_2,
fileSystem: localFileSystem,
observabilityScope: ObservabilitySystem.NOOP
Expand Down Expand Up @@ -77,7 +77,7 @@ class ManifestLoadingPerfTests: XCTestCasePerf {
for _ in 0..<N {
let manifest = try! self.manifestLoader.load(
manifestPath: path,
packageKind: .root(.init(path: "/Trivial")),
packageKind: .root("/Trivial"),
toolsVersion: .v4_2,
fileSystem: localFileSystem,
observabilityScope: ObservabilitySystem.NOOP
Expand Down

0 comments on commit 0a56e0c

Please sign in to comment.