Skip to content

Commit

Permalink
Change assert arg
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed May 4, 2022
1 parent acd9ba6 commit 667d3eb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tools/generator/test/CreateXCSchemesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@ class CreateXCSchemesTests: XCTestCase {

func assertScheme(
schemesDict: [String: XCScheme],
targetName: String,
targetID: TargetID,
shouldExpectBuildActionEntries: Bool,
shouldExpectTestables: Bool,
shouldExpectBuildableProductRunnable: Bool,
file: StaticString = #filePath,
line: UInt = #line
) throws {
let targetID = TargetID(targetName)
guard let target = pbxTargetsDict[targetID] else {
XCTFail(
"Did not find the target '\(targetName)'",
"Did not find the target '\(targetID)'",
file: file,
line: line
)
Expand Down Expand Up @@ -215,7 +214,7 @@ class CreateXCSchemesTests: XCTestCase {
// Library
try assertScheme(
schemesDict: schemesDict,
targetName: "A 1",
targetID: "A 1",
shouldExpectBuildActionEntries: true,
shouldExpectTestables: false,
shouldExpectBuildableProductRunnable: false
Expand All @@ -224,7 +223,7 @@ class CreateXCSchemesTests: XCTestCase {
// Testable and launchable
try assertScheme(
schemesDict: schemesDict,
targetName: "B 2",
targetID: "B 2",
shouldExpectBuildActionEntries: false,
shouldExpectTestables: true,
shouldExpectBuildableProductRunnable: true
Expand All @@ -233,7 +232,7 @@ class CreateXCSchemesTests: XCTestCase {
// Launchable, not testable
try assertScheme(
schemesDict: schemesDict,
targetName: "A 2",
targetID: "A 2",
shouldExpectBuildActionEntries: true,
shouldExpectTestables: false,
shouldExpectBuildableProductRunnable: true
Expand Down

0 comments on commit 667d3eb

Please sign in to comment.