org.kiama.rewriting

RewriterTests

class RewriterTests extends Tests with Checkers with Generator

Rewriting tests.

Linear Supertypes
Generator, Checkers, Configuration, Tests, BeforeAndAfter, FunSuite, Suite, Serializable, AbstractSuite, Assertions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RewriterTests()

Type Members

  1. abstract type ?0

    Definition Classes
    Suite
  2. abstract class Expecting extends AnyRef

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

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[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. def everywheretdtest(everys: (⇒ Strategy) ⇒ Strategy): Unit

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

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

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

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

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

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

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

    Definition Classes
    Assertions
  46. def fail(): Nothing

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Generator
  68. implicit val generatorDrivenConfig: PropertyCheckConfig

    Definition Classes
    Configuration
  69. final def getClass(): java.lang.Class[_]

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Configuration
  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. 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
  87. def runNestedSuites(reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

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

    Attributes
    protected
    Definition Classes
    BeforeAndAfter → AbstractSuite
  89. 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
  90. 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
  91. final val styleName: String

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

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

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

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

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

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

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

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

  100. final def wait(): Unit

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

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

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

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

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

    (Since version scala.this.deprecated.init$default$2) 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

    (Since version scala.this.deprecated.init$default$2) 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