Skip to content

Commit a6f4274

Browse files
[autofix.ci] apply automated fixes
1 parent 50df23a commit a6f4274

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

integration/feature/testquick-javamodule/src/TestQuickJavaModuleTests.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import utest._
66

77
object TestQuickJavaModuleTests extends UtestIntegrationTestSuite {
88
val tests: Tests = Tests {
9-
def filterLines(out: String) = {
10-
out.linesIterator.filter(!_.contains("[info]")).toSet
11-
}
9+
1210

1311
test("testQuick-runs-all-on-first-run") - integrationTest { tester =>
1412
import tester._
@@ -76,7 +74,7 @@ object TestQuickJavaModuleTests extends UtestIntegrationTestSuite {
7674
)
7775

7876
// This run should fail
79-
val failing = eval("foo.test.testQuick", check = false)
77+
eval("foo.test.testQuick", check = false)
8078

8179
// Fix the implementation
8280
modifyFile(

libs/javalib/codesig-worker/src/mill/javalib/codesig/CodeSigWorker.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package mill.javalib.codesig
22

33
import mill.codesig.{CodeSig, Logger}
4-
import mill.codesig.JvmModel.{Desc, MethodSig}
4+
import mill.codesig.JvmModel.MethodSig
55

66
/**
77
* Worker implementation that computes method code hash signatures using Mill's codesig module.
@@ -69,7 +69,10 @@ class CodeSigWorker extends CodeSigWorkerApi {
6969
* This is simpler than the build.mill version since we're analyzing
7070
* user code, not Mill task definitions.
7171
*/
72-
private def defaultIgnoreCall(callSiteOpt: Option[mill.codesig.JvmModel.MethodDef], calledSig: MethodSig): Boolean = {
72+
private def defaultIgnoreCall(
73+
callSiteOpt: Option[mill.codesig.JvmModel.MethodDef],
74+
calledSig: MethodSig
75+
): Boolean = {
7376
// Don't ignore any calls by default for test code analysis
7477
// User code dependencies should all be tracked
7578
false

libs/javalib/src/mill/javalib/TestModule.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,14 @@ trait TestModule
192192
} else {
193193
// Run failed tests + tests in changed classes
194194
val affectedTests = allTests.filter { test =>
195-
changedClasses.exists(cls => test.startsWith(cls) || cls.startsWith(test.takeWhile(_ != '$')))
195+
changedClasses.exists(cls =>
196+
test.startsWith(cls) || cls.startsWith(test.takeWhile(_ != '$'))
197+
)
196198
}
197199
val toRun = (affectedTests ++ previousState.failedTests.intersect(allTests.toSet)).distinct
198-
Task.log.info(s"testQuick: Running ${toRun.size} tests (${affectedTests.size} affected by changes, ${previousState.failedTests.size} previously failed)")
200+
Task.log.info(
201+
s"testQuick: Running ${toRun.size} tests (${affectedTests.size} affected by changes, ${previousState.failedTests.size} previously failed)"
202+
)
199203
toRun
200204
}
201205

0 commit comments

Comments
 (0)