Skip to content

Commit

Permalink
Include apache-package and mit-package inside the SourcePackagesLICEN…
Browse files Browse the repository at this point in the history
…CE directory
  • Loading branch information
tochi86 committed Jan 27, 2025
1 parent eb235e0 commit ba6f3d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/LicenseCheckerModuleTests/PackageParserTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ final class PackageParserTests: XCTestCase {
XCTAssertEqual(sut, [expect])
}

func test_extractLicense_apache_licence() throws {
func test_extractLicence_apache() throws {
let jsonPath = "SourcePackagesUnknown/workspace-state"
let jsonURL = try XCTUnwrap(testResources.getJsonUrl(jsonPath))
let packageParser = try XCTUnwrap(PackageParser(url: jsonURL))
let resourceURL = try XCTUnwrap(testResources.resourceURL)
let directoryURL = resourceURL.appendingPathComponent("SourcePackagesApache_LICENCE")
let directoryURL = resourceURL.appendingPathComponent("SourcePackagesLICENCE")
.appendingPathComponent("checkouts")
.appendingPathComponent("apache-package")
let sut = packageParser.extractLicense(directoryURL: directoryURL)
Expand Down Expand Up @@ -96,13 +96,13 @@ final class PackageParserTests: XCTestCase {
XCTAssertEqual(sut, [expect])
}

func test_extractLicense_mit_licence() throws {
func test_extractLicence_mit() throws {
let jsonPath = "SourcePackagesUnknown/workspace-state"
let jsonURL = try XCTUnwrap(testResources.getJsonUrl(jsonPath))
let packageParser = try XCTUnwrap(PackageParser(url: jsonURL))

let resourceURL = try XCTUnwrap(testResources.resourceURL)
let directoryURL = resourceURL.appendingPathComponent("SourcePackagesMIT_LICENCE")
let directoryURL = resourceURL.appendingPathComponent("SourcePackagesLICENCE")
.appendingPathComponent("checkouts")
.appendingPathComponent("mit-package")

Expand Down

0 comments on commit ba6f3d6

Please sign in to comment.