Skip to content

Commit

Permalink
[test] Remove ChiselRunners
Browse files Browse the repository at this point in the history
Remove ChiselRunners now that it is empty (other than mixing in
`Assertions`, which is not used).

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
  • Loading branch information
seldridge committed Feb 26, 2025
1 parent 1d31072 commit 1cf9836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/test/scala-2/chiselTests/ChiselSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ import java.text.SimpleDateFormat
import java.util.Calendar
import chisel3.reflect.DataMirror

/** Common utility functions for Chisel unit tests. */
sealed trait ChiselRunners extends Assertions

trait WidthHelpers extends Assertions {

def assertKnownWidth(expected: Int, args: Iterable[String] = Nil)(gen: => Data)(implicit pos: Position): Unit = {
Expand Down Expand Up @@ -136,13 +133,13 @@ trait FileCheck extends BeforeAndAfterEachTestData { this: Suite =>
}

/** Spec base class for BDD-style testers. */
abstract class ChiselFlatSpec extends AnyFlatSpec with ChiselRunners with Matchers
abstract class ChiselFlatSpec extends AnyFlatSpec with Matchers

/** Spec base class for BDD-style testers. */
abstract class ChiselFreeSpec extends AnyFreeSpec with ChiselRunners with Matchers
abstract class ChiselFreeSpec extends AnyFreeSpec with Matchers

/** Spec base class for BDD-style testers. */
abstract class ChiselFunSpec extends AnyFunSpec with ChiselRunners with Matchers
abstract class ChiselFunSpec extends AnyFunSpec with Matchers

/** Utilities for writing property-based checks */
trait PropertyUtils extends ScalaCheckPropertyChecks {
Expand Down Expand Up @@ -212,7 +209,7 @@ trait PropertyUtils extends ScalaCheckPropertyChecks {
}

/** Spec base class for property-based testers. */
abstract class ChiselPropSpec extends AnyPropSpec with ChiselRunners with PropertyUtils with Matchers
abstract class ChiselPropSpec extends AnyPropSpec with PropertyUtils with Matchers

trait Utils {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package chiselTests.experimental.hierarchy

import _root_.firrtl.annotations._
import chiselTests.ChiselRunners
import org.scalatest.matchers.should.Matchers

trait Utils extends chiselTests.Utils with Matchers {
Expand Down

0 comments on commit 1cf9836

Please sign in to comment.