org.kiama.rewriting

RewriterTests

class RewriterTests extends Tests with Checkers with Generator

Rewriting tests.

Source
RewriterTests.scala
Linear Supertypes
Generator, Checkers, Configuration, Tests, BeforeAndAfter, FunSuite, Suite, Serializable, AbstractSuite, Assertions, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RewriterTests
  2. Generator
  3. Checkers
  4. Configuration
  5. Tests
  6. BeforeAndAfter
  7. FunSuite
  8. Suite
  9. Serializable
  10. AbstractSuite
  11. Assertions
  12. AnyRef
  13. 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

    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 before(fun: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfter
  24. def check(p: Prop, configParams: PropertyCheckConfigParam*)(implicit config: PropertyCheckConfig): Unit

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

    Definition Classes
    Checkers
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. def clone(): AnyRef

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

    Definition Classes
    Assertions
  34. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Suite → AbstractSuite
  40. 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
  41. 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
  42. def fail(cause: Throwable): Nothing

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

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

    Definition Classes
    Assertions
  45. def fail(): Nothing

    Definition Classes
    Assertions
  46. 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
  47. def finalize(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Generator
  67. implicit val generatorDrivenConfig: PropertyCheckConfig

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

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

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

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

    Attributes
    protected
    Definition Classes
    FunSuite
  72. def intercept[T <: AnyRef](f: ⇒ Any)(implicit manifest: Manifest[T]): T

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

    Definition Classes
    Any
  74. def maxDiscarded(value: Int): MaxDiscarded

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

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

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

    Definition Classes
    Configuration
  78. val myrule1: Strategy

  79. val mystrategy1: Strategy

  80. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  81. def nestedSuites: List[Suite]

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

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

    Definition Classes
    AnyRef
  84. def pending: PendingNothing

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

    Definition Classes
    Suite
  86. val rewriter: Rewriter

    The rewriter which is being tested.

  87. def run(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Definition Classes
    BeforeAndAfter → AbstractSuite
  88. def runNestedSuites(reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  89. def runTest(testName: String, reporter: Reporter, stopper: Stopper, configMap: Map[String, Any], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfter → AbstractSuite
  90. def runTests(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    FunSuite → Suite → AbstractSuite
  91. 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
  92. final val styleName: String

    Definition Classes
    FunSuite → Suite → AbstractSuite
  93. def suiteName: String

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

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

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

    Attributes
    protected
    Definition Classes
    FunSuite
  97. def testNames: Set[String]

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

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

    Definition Classes
    AnyRef → Any
  100. def travtest(basemsg: String, testmsg: String, eval: Option[Any], result: Option[Any], expecting: Expecting = Equal): Unit

  101. final def wait(): Unit

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

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

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

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

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  106. 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 FunSuite

Inherited from Suite

Inherited from Serializable

Inherited from AbstractSuite

Inherited from Assertions

Inherited from AnyRef

Inherited from Any

Ungrouped