diff options
Diffstat (limited to 'core/src/test/scala/mill/eval/EvaluationTests.scala')
-rw-r--r-- | core/src/test/scala/mill/eval/EvaluationTests.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/test/scala/mill/eval/EvaluationTests.scala b/core/src/test/scala/mill/eval/EvaluationTests.scala index 9a177b58..388f9f38 100644 --- a/core/src/test/scala/mill/eval/EvaluationTests.scala +++ b/core/src/test/scala/mill/eval/EvaluationTests.scala @@ -2,7 +2,7 @@ package mill.eval import mill.util.TestUtil.{Test, test} -import mill.define.{Target, Task} +import mill.define.{Graph, Target, Task} import mill.{Module, T} import mill.discover.Discovered import mill.util.{OSet, TestUtil} @@ -49,10 +49,10 @@ object EvaluationTests extends TestSuite{ } def countGroups[T: Discovered](t: T, goals: Task[_]*) = { val labeling = Discovered.mapping(t) - val topoSorted = Evaluator.topoSorted( - Evaluator.transitiveTargets(OSet.from(goals)) + val topoSorted = Graph.topoSorted( + Graph.transitiveTargets(OSet.from(goals)) ) - val grouped = Evaluator.groupAroundImportantTargets(topoSorted) { + val grouped = Graph.groupAroundImportantTargets(topoSorted) { case t: Target[_] if labeling.contains(t) || goals.contains(t) => t case t if goals.contains(t) => t } |