org.kiama.rewriting

RewriterTests

class RewriterTests extends Tests with Checkers with Generator

Rewriting tests.

Linear Supertypes
Generator, Checkers, Configuration, Tests, BeforeAndAfter, SuiteMixin, FunSuite, Suite, Serializable, AbstractSuite, Assertions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RewriterTests
  2. Generator
  3. Checkers
  4. Configuration
  5. Tests
  6. BeforeAndAfter
  7. SuiteMixin
  8. FunSuite
  9. Suite
  10. Serializable
  11. AbstractSuite
  12. Assertions
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RewriterTests()

Type Members

  1. final class Equalizer extends AnyRef

    Definition Classes
    Assertions
  2. abstract class Expecting extends AnyRef

    The kind of comparison that is expected to be true for a test.

  3. case class MaxDiscarded extends PropertyCheckConfigParam with Product with Serializable

    Definition Classes
    Configuration
  4. case class MaxSize extends PropertyCheckConfigParam with Product with Serializable

    Definition Classes
    Configuration
  5. case class MinSize extends PropertyCheckConfigParam with Product with Serializable

    Definition Classes
    Configuration
  6. case class MinSuccessful extends PropertyCheckConfigParam with Product with Serializable

    Definition Classes
    Configuration
  7. trait NoArgTest extends () ⇒ Unit with TestData

    Attributes
    protected
    Definition Classes
    Suite
  8. case class PropertyCheckConfig extends Product with Serializable

    Definition Classes
    Configuration
  9. sealed abstract class PropertyCheckConfigParam extends AnyRef

    Definition Classes
    Configuration
  10. case class Workers extends PropertyCheckConfigParam with Product with Serializable

    Definition Classes
    Configuration

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object Equal extends Expecting with Product with Serializable

  7. object FocusTest extends Tag

    A ScalaTest tag that enables us to focus attention on particular tests rather than running all of them each time.

  8. object NotSame extends Expecting with Product with Serializable

  9. object Same extends Expecting with Product with Serializable

  10. def after(fun: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfter
  11. implicit def arbAsgn: Arbitrary[Asgn]

    Definition Classes
    Generator
  12. implicit def arbExp: Arbitrary[Exp]

    Definition Classes
    Generator
  13. implicit def arbNum: Arbitrary[Num]

    Definition Classes
    Generator
  14. implicit def arbSeqn: Arbitrary[Seqn]

    Definition Classes
    Generator
  15. implicit def arbStmt: Arbitrary[Stmt]

    Definition Classes
    Generator
  16. implicit def arbWhile: Arbitrary[While]

    Definition Classes
    Generator
  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def assert(o: Option[String]): Unit

    Definition Classes
    Assertions
  19. def assert(o: Option[String], clue: Any): Unit

    Definition Classes
    Assertions
  20. def assert(condition: Boolean, clue: Any): Unit

    Definition Classes
    Assertions
  21. def assert(condition: Boolean): Unit

    Definition Classes
    Assertions
  22. def assertMessage(index: Int, line: Int, column: Int, msg: String): Unit

    Assert that a message was produced at a given position.

    Assert that a message was produced at a given position.

    Definition Classes
    Tests
  23. def assume(o: Option[String]): Unit

    Definition Classes
    Assertions
  24. def assume(o: Option[String], clue: Any): Unit

    Definition Classes
    Assertions
  25. def assume(condition: Boolean, clue: Any): Unit

    Definition Classes
    Assertions
  26. def assume(condition: Boolean): Unit

    Definition Classes
    Assertions
  27. def before(fun: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfter
  28. def cancel(cause: Throwable): Nothing

    Definition Classes
    Assertions
  29. def cancel(message: String, cause: Throwable): Nothing

    Definition Classes
    Assertions
  30. def cancel(message: String): Nothing

    Definition Classes
    Assertions
  31. def cancel(): Nothing

    Definition Classes
    Assertions
  32. def check(p: Prop, configParams: PropertyCheckConfigParam*)(implicit config: PropertyCheckConfig): Unit

    Definition Classes
    Checkers
  33. def check(p: Prop, prms: Params): Unit

    Definition Classes
    Checkers
  34. def check[A1, A2, A3, A4, A5, A6, P](f: (A1, A2, A3, A4, A5, A6) ⇒ P, configParams: PropertyCheckConfigParam*)(implicit config: PropertyCheckConfig, p: (P) ⇒ Prop, a1: Arbitrary[A1], s1: Shrink[A1], pp1: (A1) ⇒ Pretty, a2: Arbitrary[A2], s2: Shrink[A2], pp2: (A2) ⇒ Pretty, a3: Arbitrary[A3], s3: Shrink[A3], pp3: (A3) ⇒ Pretty, a4: Arbitrary[A4], s4: Shrink[A4], pp4: (A4) ⇒ Pretty, a5: Arbitrary[A5], s5: Shrink[A5], pp5: (A5) ⇒ Pretty, a6: Arbitrary[A6], s6: Shrink[A6], pp6: (A6) ⇒ Pretty): Unit

    Definition Classes
    Checkers
  35. def check[A1, A2, A3, A4, A5, P](f: (A1, A2, A3, A4, A5) ⇒ P, configParams: PropertyCheckConfigParam*)(implicit config: PropertyCheckConfig, p: (P) ⇒ Prop, a1: Arbitrary[A1], s1: Shrink[A1], pp1: (A1) ⇒ Pretty, a2: Arbitrary[A2], s2: Shrink[A2], pp2: (A2) ⇒ Pretty, a3: Arbitrary[A3], s3: Shrink[A3], pp3: (A3) ⇒ Pretty, a4: Arbitrary[A4], s4: Shrink[A4], pp4: (A4) ⇒ Pretty, a5: Arbitrary[A5], s5: Shrink[A5], pp5: (A5) ⇒ Pretty): Unit

    Definition Classes
    Checkers
  36. def check[A1, A2, A3, A4, P](f: (A1, A2, A3, A4) ⇒ P, configParams: PropertyCheckConfigParam*)(implicit config: PropertyCheckConfig, p: (P) ⇒ Prop, a1: Arbitrary[A1], s1: Shrink[A1], pp1: (A1) ⇒ Pretty, a2: Arbitrary[A2], s2: Shrink[A2], pp2: (A2) ⇒ Pretty, a3: Arbitrary[A3], s3: Shrink[A3], pp3: (A3) ⇒ Pretty, a4: Arbitrary[A4], s4: Shrink[A4], pp4: (A4) ⇒ Pretty): Unit

    Definition Classes
    Checkers
  37. def check[A1, A2, A3, P](f: (A1, A2, A3) ⇒ P, configParams: PropertyCheckConfigParam*)(implicit config: PropertyCheckConfig, p: (P) ⇒ Prop, a1: Arbitrary[A1], s1: Shrink[A1], pp1: (A1) ⇒ Pretty, a2: Arbitrary[A2], s2: Shrink[A2], pp2: (A2) ⇒ Pretty, a3: Arbitrary[A3], s3: Shrink[A3], pp3: (A3) ⇒ Pretty): Unit

    Definition Classes
    Checkers
  38. def check[A1, A2, P](f: (A1, A2) ⇒ P, configParams: PropertyCheckConfigParam*)(implicit config: PropertyCheckConfig, p: (P) ⇒ Prop, a1: Arbitrary[A1], s1: Shrink[A1], pp1: (A1) ⇒ Pretty, a2: Arbitrary[A2], s2: Shrink[A2], pp2: (A2) ⇒ Pretty): Unit

    Definition Classes
    Checkers
  39. def check[A1, P](f: (A1) ⇒ P, configParams: PropertyCheckConfigParam*)(implicit config: PropertyCheckConfig, p: (P) ⇒ Prop, a1: Arbitrary[A1], s1: Shrink[A1], pp1: (A1) ⇒ Pretty): Unit

    Definition Classes
    Checkers
  40. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. implicit def convertToEqualizer(left: Any): Equalizer

    Definition Classes
    Assertions
  42. def createCatchReporter(reporter: Reporter): WrapperCatchReporter

    Attributes
    protected[org.scalatest]
    Definition Classes
    Suite
  43. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  44. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  45. def everywheretdtest(everys: (⇒ Rewriter.Strategy) ⇒ Rewriter.Strategy): Unit

  46. final def execute: Unit

    Definition Classes
    Suite
  47. final def execute(testName: String, configMap: Map[String, Any], color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit

    Definition Classes
    Suite
  48. def expectResult(expected: Any)(actual: Any): Unit

    Definition Classes
    Assertions
  49. def expectResult(expected: Any, clue: Any)(actual: Any): Unit

    Definition Classes
    Assertions
  50. def expectedTestCount(filter: Filter): Int

    Definition Classes
    Suite → AbstractSuite
  51. def expectnotsame(expected: Any)(actual: Any): Unit

    Analogous to ScalaTest's expect but it uses same to compare the two values instead of equality.

    Analogous to ScalaTest's expect but it uses same to compare the two values instead of equality.

    Definition Classes
    Tests
  52. def expectsame(expected: Any)(actual: Any): Unit

    Analogous to ScalaTest's expect but it uses same to compare the two values instead of equality.

    Analogous to ScalaTest's expect but it uses same to compare the two values instead of equality.

    Definition Classes
    Tests
  53. def fail(cause: Throwable): Nothing

    Definition Classes
    Assertions
  54. def fail(message: String, cause: Throwable): Nothing

    Definition Classes
    Assertions
  55. def fail(message: String): Nothing

    Definition Classes
    Assertions
  56. def fail(): Nothing

    Definition Classes
    Assertions
  57. def failExpectedTest[T](expected: T, found: T, description: String): Unit

    Fail a test with a message about finding something and expecting something else.

    Fail a test with a message about finding something and expecting something else.

    Definition Classes
    Tests
  58. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  59. def genAdd(sz: Int): Gen[Add]

    Definition Classes
    Generator
  60. def genAsgn(sz: Int): Gen[Asgn]

    Definition Classes
    Generator
  61. def genDiv(sz: Int): Gen[Div]

    Definition Classes
    Generator
  62. val genDouble: Gen[Num]

    Definition Classes
    Generator
  63. def genExp(sz: Int): Gen[Exp]

    Definition Classes
    Generator
  64. val genIdn: Gen[String]

    Definition Classes
    Generator
  65. val genInteger: Gen[Num]

    Definition Classes
    Generator
  66. def genInternalExp(sz: Int): Gen[Exp]

    Definition Classes
    Generator
  67. def genInternalStmt(sz: Int): Gen[Stmt]

    Definition Classes
    Generator
  68. val genLeafExp: Gen[Exp with Serializable]

    Definition Classes
    Generator
  69. val genLeafStmt: Gen[Null]

    Definition Classes
    Generator
  70. def genMul(sz: Int): Gen[Mul]

    Definition Classes
    Generator
  71. def genNeg(sz: Int): Gen[Neg]

    Definition Classes
    Generator
  72. val genNum: Gen[Num]

    Definition Classes
    Generator
  73. def genSeqn(sz: Int): Gen[Seqn]

    Definition Classes
    Generator
  74. def genStmt(sz: Int): Gen[Stmt]

    Definition Classes
    Generator
  75. def genSub(sz: Int): Gen[Sub]

    Definition Classes
    Generator
  76. val genVar: Gen[Var]

    Definition Classes
    Generator
  77. def genWhile(sz: Int): Gen[While]

    Definition Classes
    Generator
  78. implicit val generatorDrivenConfig: PropertyCheckConfig

    Definition Classes
    Configuration
  79. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  80. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  81. def ignore(testName: String, testTags: Tag*)(testFun: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    FunSuite
  82. implicit def info: Informer

    Attributes
    protected
    Definition Classes
    FunSuite
  83. def innermosttest(imost: (⇒ Rewriter.Strategy) ⇒ Rewriter.Strategy): Unit

  84. def intercept[T <: AnyRef](f: ⇒ Any)(implicit manifest: Manifest[T]): T

    Definition Classes
    Assertions
  85. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  86. implicit def markup: Documenter

    Attributes
    protected
    Definition Classes
    FunSuite
  87. def maxDiscarded(value: Int): MaxDiscarded

    Definition Classes
    Configuration
  88. def maxSize(value: Int): MaxSize

    Definition Classes
    Configuration
  89. def minSize(value: Int): MinSize

    Definition Classes
    Configuration
  90. def minSuccessful(value: Int): MinSuccessful

    Definition Classes
    Configuration
  91. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  92. def nestedSuites: IndexedSeq[Suite]

    Definition Classes
    Suite → AbstractSuite
  93. final def notify(): Unit

    Definition Classes
    AnyRef
  94. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  95. def pending: PendingNothing

    Definition Classes
    Suite
  96. def pendingUntilFixed(f: ⇒ Unit): Unit

    Definition Classes
    Suite
  97. def rerunner: Option[String]

    Definition Classes
    Suite → AbstractSuite
  98. def run(testName: Option[String], args: Args): Status

    Definition Classes
    BeforeAndAfter → SuiteMixin
  99. final def run(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Status

    Definition Classes
    AbstractSuite
  100. def runNestedSuites(args: Args): Status

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  101. def runTest(testName: String, args: Args): Status

    Attributes
    protected
    Definition Classes
    BeforeAndAfter → SuiteMixin
  102. def runTests(testName: Option[String], args: Args): Status

    Attributes
    protected
    Definition Classes
    FunSuite → Suite → AbstractSuite
  103. def same(v1: Any, v2: Any): Boolean

    Compare two values.

    Compare two values. Use reference equality for references and value equality for non-references. If the values are both Some values, perform the check on the wrapped values.

    Definition Classes
    Tests
  104. final val styleName: String

    Definition Classes
    FunSuite → Suite → AbstractSuite
  105. def suiteId: String

    Definition Classes
    Suite
  106. def suiteName: String

    Definition Classes
    Suite
  107. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  108. def tags: Map[String, Set[String]]

    Definition Classes
    FunSuite → Suite → AbstractSuite
  109. def test(testName: String, testTags: Tag*)(testFun: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    FunSuite
  110. def testDataFor(testName: String, theConfigMap: Map[String, Any]): TestData

    Definition Classes
    FunSuite → Suite
  111. def testNames: Set[String]

    Definition Classes
    FunSuite → Suite → AbstractSuite
  112. def testsFor(unit: Unit): Unit

    Attributes
    protected
    Definition Classes
    FunSuite
  113. def toString(): String

    Definition Classes
    AnyRef → Any
  114. def travtest(basemsg: String, testmsg: String, trav: (⇒ Rewriter.Strategy) ⇒ Rewriter.Strategy, rewl: Rewriter.Strategy, term: Rewriter.Term, result: Option[Rewriter.Term], expecting: Expecting = Equal): Unit

  115. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  116. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  117. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  118. def withClue[T](clue: Any)(fun: ⇒ T): T

    Definition Classes
    Assertions
  119. def withFixture(test: NoArgTest): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  120. def workers(value: Int): Workers

    Definition Classes
    Configuration

Deprecated Value Members

  1. def expect(expected: Any)(actual: Any): Unit

    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of expectResult instead.

  2. def expect(expected: Any, clue: Any)(actual: Any): Unit

    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of expectResult instead.

Inherited from Generator

Inherited from Checkers

Inherited from Configuration

Inherited from Tests

Inherited from BeforeAndAfter

Inherited from SuiteMixin

Inherited from FunSuite

Inherited from Suite

Inherited from Serializable

Inherited from AbstractSuite

Inherited from Assertions

Inherited from AnyRef

Inherited from Any

Ungrouped