Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class FingerprintCommandTest {
val a = File(temp.root, "a.json")
val b = File(temp.root, "b.json")
command(ws).apply { outputPath = a }.call()
command(ws).apply {
command(ws)
.apply {
outputPath = b
useCquery = true
}
Expand Down
16 changes: 12 additions & 4 deletions cli/src/test/kotlin/com/bazel_diff/cli/FingerprintGathererTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,17 @@ class FingerprintGathererTest {
fun canonicalizeFlagsIsOrderIndependentForSets() {
fun build(tt: Set<String>) =
FingerprintGatherer.canonicalizeFlags(
emptyList(), emptyList(), emptyList(), false, null, false, tt,
emptySet(), emptySet(), false, true)
emptyList(),
emptyList(),
emptyList(),
false,
null,
false,
tt,
emptySet(),
emptySet(),
false,
true)
assertThat(build(linkedSetOf("a", "b", "c"))).isEqualTo(build(linkedSetOf("c", "a", "b")))
}

Expand All @@ -63,8 +72,7 @@ class FingerprintGathererTest {
val bazel = fakeBazel("Build label: 8.5.1")

val flags = mapOf("useCquery" to "false")
val inputs =
FingerprintGatherer.gather(ws.toPath(), bazel.toPath(), "26.0.1", flags)
val inputs = FingerprintGatherer.gather(ws.toPath(), bazel.toPath(), "26.0.1", flags)

assertThat(inputs.bazelVersion).isEqualTo("8.5.1")
assertThat(inputs.bazelDiffVersion).isEqualTo("26.0.1")
Expand Down
Loading