-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch all manifests before running package dump
- Loading branch information
1 parent
969af98
commit cb6c84b
Showing
6 changed files
with
34 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,11 +86,11 @@ final class ValidatorTests: XCTestCase { | |
let repo = Github.Repository(defaultBranch: "main", owner: "SwiftPackageIndex", name: "SemanticVersion") | ||
|
||
// MUT | ||
let url = try await Package.getManifestURL(client: client, repository: repo) | ||
let url = try await Package.getManifestURLs(client: client, repository: repo) | ||
|
||
// validate | ||
XCTAssertEqual(url, | ||
.init("https://raw.githubusercontent.com/SwiftPackageIndex/SemanticVersion/main/Package.swift")) | ||
[.init("https://raw.githubusercontent.com/SwiftPackageIndex/SemanticVersion/main/Package.swift")]) | ||
} | ||
|
||
func test_getManifestURL_multiple() async throws { | ||
|
@@ -105,11 +105,14 @@ final class ValidatorTests: XCTestCase { | |
let repo = Github.Repository(defaultBranch: "master", owner: "IBM-Swift", name: "SwiftyJSON") | ||
|
||
// MUT | ||
let url = try await Package.getManifestURL(client: client, repository: repo) | ||
let url = try await Package.getManifestURLs(client: client, repository: repo) | ||
|
||
// validate | ||
XCTAssertEqual(url, | ||
.init("https://raw.githubusercontent.com/IBM-Swift/SwiftyJSON/master/[email protected]")) | ||
[.init("https://raw.githubusercontent.com/IBM-Swift/SwiftyJSON/master/Package.swift"), | ||
.init("https://raw.githubusercontent.com/IBM-Swift/SwiftyJSON/master/[email protected]"), | ||
.init("https://raw.githubusercontent.com/IBM-Swift/SwiftyJSON/master/[email protected]"), | ||
.init("https://raw.githubusercontent.com/IBM-Swift/SwiftyJSON/master/[email protected]")]) | ||
} | ||
|
||
func test_ArraySlice_chunk() throws { | ||
|