From 9f77ff0bb26605952f0027ef281e4946f3ae8a95 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:58:59 +0000 Subject: [PATCH] ci: apply ktfmt formatting --- .../com/bazel_diff/cli/FingerprintCommandTest.kt | 3 ++- .../bazel_diff/cli/FingerprintGathererTest.kt | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/cli/src/test/kotlin/com/bazel_diff/cli/FingerprintCommandTest.kt b/cli/src/test/kotlin/com/bazel_diff/cli/FingerprintCommandTest.kt index 3d0434e..8d376d2 100644 --- a/cli/src/test/kotlin/com/bazel_diff/cli/FingerprintCommandTest.kt +++ b/cli/src/test/kotlin/com/bazel_diff/cli/FingerprintCommandTest.kt @@ -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 } diff --git a/cli/src/test/kotlin/com/bazel_diff/cli/FingerprintGathererTest.kt b/cli/src/test/kotlin/com/bazel_diff/cli/FingerprintGathererTest.kt index 4091e6a..f13aa5e 100644 --- a/cli/src/test/kotlin/com/bazel_diff/cli/FingerprintGathererTest.kt +++ b/cli/src/test/kotlin/com/bazel_diff/cli/FingerprintGathererTest.kt @@ -42,8 +42,17 @@ class FingerprintGathererTest { fun canonicalizeFlagsIsOrderIndependentForSets() { fun build(tt: Set) = 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"))) } @@ -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")