From d7154a5343228f0d8ab2d17bf441161613a96bc6 Mon Sep 17 00:00:00 2001 From: Albert Meltzer <7529386+kitbellew@users.noreply.github.com> Date: Sat, 5 Oct 2024 13:39:35 -0700 Subject: [PATCH] FormatTests: assert on the total number of visits --- .../shared/src/test/scala/org/scalafmt/FormatTests.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scalafmt-tests/shared/src/test/scala/org/scalafmt/FormatTests.scala b/scalafmt-tests/shared/src/test/scala/org/scalafmt/FormatTests.scala index 9e1715ed75..7acd2276b5 100644 --- a/scalafmt-tests/shared/src/test/scala/org/scalafmt/FormatTests.scala +++ b/scalafmt-tests/shared/src/test/scala/org/scalafmt/FormatTests.scala @@ -136,6 +136,8 @@ class FormatTests extends FunSuite with CanRunTests with FormatAssertions { override def afterAll(): Unit = { logger.debug(s"Total explored: ${Debug.explored}") + if (!onlyUnit && !onlyManual) + assertEquals(Debug.explored, 1343034, "total explored") val results = debugResults.result() // TODO(olafur) don't block printing out test results. // I don't want to deal with scalaz's Tasks :'(