Skip to content

[Incremental] Reorder IncrementalCompilationTests and extract OutputFileMapCreator #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 2, 2021

Conversation

davidungar
Copy link
Contributor

In preparation for adding new incremental import tests, pull out OutputFileMapCreator. Also some reordering of IncrementalCompilationTests.

@davidungar davidungar requested a review from CodaFi March 2, 2021 21:21
]
.mapValues {"\(derivedData.appending(component: s.basenameWithoutExt))\($0)"}
}
return Dictionary( uniqueKeysWithValues:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: No extra spaces.

@@ -887,7 +857,7 @@ class CrossModuleIncrementalBuildTests: XCTestCase {
let main = path.appending(component: "main.swift")
try localFileSystem.writeFileContents(main) {
$0 <<< "import MagicKit\n"
$0 <<< "castASpell()"
$0 <<< "castASpell()"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

private let inputPaths: [AbsolutePath]
private let derivedData: AbsolutePath

static func write(module: String,
Copy link
Contributor

@CodaFi CodaFi Mar 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is going to be a convenience method we ought to hide the member wise initializer

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved modulo whitespace changes.

@davidungar
Copy link
Contributor Author

@swift-ci please test and merge

@davidungar
Copy link
Contributor Author

Approved modulo whitespace changes.

Thank you.

@davidungar
Copy link
Contributor Author

@swift-ci please test

@davidungar davidungar merged commit 0edc9d3 into swiftlang:main Mar 2, 2021
@davidungar davidungar deleted the just-reorg-2 branch June 18, 2021 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants