Skip to content

Commit bdb90fd

Browse files
committed
Fix merge conflicts
1 parent 1b3f976 commit bdb90fd

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

Sources/Commands/PackageCommands/Init.swift

-5
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,8 @@ extension SwiftPackageCommand {
5959
// Which testing libraries should be used? XCTest is on by default,
6060
// but Swift Testing must remain off by default until it is present
6161
// in the Swift toolchain.
62-
<<<<<<< Updated upstream
6362
var supportedTestingLibraries = Set<BuildParameters.Testing.Library>()
64-
if testLibraryOptions.isEnabled(.xctest) {
65-
=======
66-
var supportedTestingLibraries = Set<TestingLibrary>()
6763
if testLibraryOptions.isEnabled(.xctest, swiftCommandState: swiftCommandState) {
68-
>>>>>>> Stashed changes
6964
supportedTestingLibraries.insert(.xctest)
7065
}
7166
if testLibraryOptions.isExplicitlyEnabled(.swiftTesting, swiftCommandState: swiftCommandState) {

Sources/CoreCommands/Options.swift

+3-23
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,7 @@ public struct TestLibraryOptions: ParsableArguments {
598598
help: .private)
599599
public var explicitlyEnableExperimentalSwiftTestingLibrarySupport: Bool?
600600

601-
<<<<<<< Updated upstream
602-
private func isEnabled(_ library: BuildParameters.Testing.Library, `default`: Bool) -> Bool {
603-
=======
604-
private func isEnabled(_ library: TestingLibrary, `default`: Bool, swiftCommandState: SwiftCommandState) -> Bool {
605-
>>>>>>> Stashed changes
601+
private func isEnabled(_ library: BuildParameters.Testing.Library, `default`: Bool, swiftCommandState: SwiftCommandState) -> Bool {
606602
switch library {
607603
case .xctest:
608604
if let explicitlyEnableXCTestSupport {
@@ -618,29 +614,13 @@ public struct TestLibraryOptions: ParsableArguments {
618614
}
619615
}
620616

621-
/// Test whether or not a given library is enabled.
622-
<<<<<<< Updated upstream
623-
public func isEnabled(_ library: BuildParameters.Testing.Library) -> Bool {
624-
isEnabled(library, default: true)
625-
}
626-
627-
/// Test whether or not a given library was explicitly enabled by the developer.
628-
public func isExplicitlyEnabled(_ library: BuildParameters.Testing.Library) -> Bool {
629-
isEnabled(library, default: false)
630-
}
631-
632-
/// The list of enabled testing libraries.
633-
public var enabledTestingLibraries: [BuildParameters.Testing.Library] {
634-
[.xctest, .swiftTesting].filter(isEnabled)
635-
=======
636-
public func isEnabled(_ library: TestingLibrary, swiftCommandState: SwiftCommandState) -> Bool {
617+
public func isEnabled(_ library: BuildParameters.Testing.Library, swiftCommandState: SwiftCommandState) -> Bool {
637618
isEnabled(library, default: true, swiftCommandState: swiftCommandState)
638619
}
639620

640621
/// Test whether or not a given library was explicitly enabled by the developer.
641-
public func isExplicitlyEnabled(_ library: TestingLibrary, swiftCommandState: SwiftCommandState) -> Bool {
622+
public func isExplicitlyEnabled(_ library: BuildParameters.Testing.Library, swiftCommandState: SwiftCommandState) -> Bool {
642623
isEnabled(library, default: false, swiftCommandState: swiftCommandState)
643-
>>>>>>> Stashed changes
644624
}
645625
}
646626

0 commit comments

Comments
 (0)