-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
64 additions
and
57 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
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 |
---|---|---|
|
@@ -80,8 +80,7 @@ public void converter() throws Exception { | |
|
||
ImmutableMap<ModuleKey, RepositoryName> moduleKeyToCanonicalNames = | ||
depGraph.keySet().stream() | ||
.collect( | ||
toImmutableMap(k -> k, k -> k.getCanonicalRepoName(/* hasUniqueVersion= */ false))); | ||
.collect(toImmutableMap(k -> k, ModuleKey::getCanonicalRepoNameWithVersion)); | ||
ImmutableBiMap<String, ModuleKey> baseModuleDeps = ImmutableBiMap.of("fred", foo2); | ||
ImmutableBiMap<String, ModuleKey> baseModuleUnusedDeps = ImmutableBiMap.of("fred", foo1); | ||
RepositoryMapping rootMapping = createRepositoryMapping(ModuleKey.ROOT, "fred", "foo~2.0"); | ||
|
@@ -271,7 +270,7 @@ public void resolve_apparentRepoName_notFound() throws Exception { | |
|
||
@Test | ||
public void resolve_canonicalRepoName_good() throws Exception { | ||
var arg = CanonicalRepoName.create(foo2.getCanonicalRepoName(/* hasUniqueVersion= */ false)); | ||
var arg = CanonicalRepoName.create(foo2.getCanonicalRepoNameWithVersion()); | ||
|
||
assertThat( | ||
arg.resolveToModuleKeys( | ||
|
@@ -312,7 +311,7 @@ public void resolve_canonicalRepoName_notFound() throws Exception { | |
|
||
@Test | ||
public void resolve_canonicalRepoName_unused() throws Exception { | ||
var arg = CanonicalRepoName.create(foo1.getCanonicalRepoName(/* hasUniqueVersion= */ false)); | ||
var arg = CanonicalRepoName.create(foo1.getCanonicalRepoNameWithVersion()); | ||
|
||
// Without --include_unused, this doesn't resolve, as [email protected] has been replaced by [email protected]. | ||
assertThat( | ||
|