summaryrefslogtreecommitdiff
path: root/scalaplugin/src/test
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-12-04 22:28:31 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2017-12-04 22:28:31 -0800
commit9aed4601a04a48b3192d1871ff0ebb98fa352726 (patch)
tree2d5c01a5fc935a177da4087550d140e54d3ac14d /scalaplugin/src/test
parent52f5a07a2b2b3f1885e83d09414aa3da385f4419 (diff)
downloadmill-9aed4601a04a48b3192d1871ff0ebb98fa352726.tar.gz
mill-9aed4601a04a48b3192d1871ff0ebb98fa352726.tar.bz2
mill-9aed4601a04a48b3192d1871ff0ebb98fa352726.zip
Standardize on a `mill.util.Logger` class
Diffstat (limited to 'scalaplugin/src/test')
-rw-r--r--scalaplugin/src/test/scala/mill/scalaplugin/TestEvaluator.scala7
1 files changed, 3 insertions, 4 deletions
diff --git a/scalaplugin/src/test/scala/mill/scalaplugin/TestEvaluator.scala b/scalaplugin/src/test/scala/mill/scalaplugin/TestEvaluator.scala
index e54480c9..49c245e4 100644
--- a/scalaplugin/src/test/scala/mill/scalaplugin/TestEvaluator.scala
+++ b/scalaplugin/src/test/scala/mill/scalaplugin/TestEvaluator.scala
@@ -4,20 +4,19 @@ import ammonite.ops.Path
import mill.define.{Target, Task}
import mill.discover.Mirror
import mill.eval.{Evaluator, Result}
-import mill.util.OSet
+import mill.util.{DummyLogger, OSet}
object TestEvaluator {
- private val noopLogger: String => Unit = _ => ()
def resolveDestPaths(workspacePath: Path)(t: Mirror.LabelledTarget[_]): (Path, Path) = {
- new Evaluator(workspacePath, Map.empty, noopLogger).resolveDestPaths(t)
+ new Evaluator(workspacePath, Map.empty, DummyLogger).resolveDestPaths(t)
}
def eval[T](
mapping: Map[Target[_], Mirror.LabelledTarget[_]],
workspacePath: Path)(t: Task[T]): Either[Result.Failing, (T, Int)] = {
- val evaluator = new Evaluator(workspacePath, mapping, noopLogger)
+ val evaluator = new Evaluator(workspacePath, mapping, DummyLogger)
val evaluated = evaluator.evaluate(OSet(t))
if (evaluated.failing.keyCount == 0) {