Skip to content

Commit 1a71772

Browse files
committed
Tests: remove @testable import CoreCommands
Use the newly extended APIs for testing and use a non-testable import of the package, avoiding a recompilation.
1 parent 4538ef1 commit 1a71772

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Tests/BuildTests/PrepareForIndexTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import Build
1414
import Foundation
1515
@testable import Commands
16-
@testable import CoreCommands
16+
import CoreCommands
1717
import LLBuildManifest
1818
import _InternalTestSupport
1919
import TSCBasic

Tests/CommandsTests/BuildCommandTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import Foundation
1414
import Basics
1515
@testable import Commands
16-
@testable import CoreCommands
16+
import CoreCommands
1717
import PackageGraph
1818
import PackageLoading
1919
import PackageModel

Tests/CommandsTests/PackageCommandTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Basics
14-
@testable import CoreCommands
14+
import CoreCommands
1515
@testable import Commands
1616
import Foundation
1717

Tests/CommandsTests/SwiftCommandStateTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import Basics
1414
import Build
1515
@testable import Commands
16-
@testable import CoreCommands
16+
import CoreCommands
1717

1818
@_spi(DontAdoptOutsideOfSwiftPMExposedForBenchmarksAndTestsOnly)
1919
import func PackageGraph.loadModulesGraph

0 commit comments

Comments
 (0)