@@ -598,11 +598,7 @@ public struct TestLibraryOptions: ParsableArguments {
598
598
help: . private)
599
599
public var explicitlyEnableExperimentalSwiftTestingLibrarySupport : Bool ?
600
600
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 {
606
602
switch library {
607
603
case . xctest:
608
604
if let explicitlyEnableXCTestSupport {
@@ -618,29 +614,13 @@ public struct TestLibraryOptions: ParsableArguments {
618
614
}
619
615
}
620
616
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 {
637
618
isEnabled ( library, default: true , swiftCommandState: swiftCommandState)
638
619
}
639
620
640
621
/// 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 {
642
623
isEnabled ( library, default: false , swiftCommandState: swiftCommandState)
643
- >>>>>>> Stashed changes
644
624
}
645
625
}
646
626
0 commit comments