org.kiama.util

TransformerTests

trait TransformerTests extends RegexParserTests

Useful test routines for transformers.

Self Type
TransformerTests with RegexParsers
Linear Supertypes
RegexParserTests, Tests, BeforeAndAfter, FunSuite, Suite, Serializable, AbstractSuite, Assertions, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TransformerTests
  2. RegexParserTests
  3. Tests
  4. BeforeAndAfter
  5. FunSuite
  6. Suite
  7. Serializable
  8. AbstractSuite
  9. Assertions
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class Equalizer extends AnyRef

    Definition Classes
    Assertions
  2. trait NoArgTest extends () ⇒ Unit

    Attributes
    protected
    Definition Classes
    Suite

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 FocusTest extends Tag

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

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

    Attributes
    protected
    Definition Classes
    BeforeAndAfter
  8. final def asInstanceOf[T0]: T0

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

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

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

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

    Definition Classes
    Assertions
  13. 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
  14. def assertParseError[T](str: String, p: (TransformerTests.this)#Parser[T], line: Int, column: Int, msg: String, iserr: Boolean = false): Unit

    Assert that a parsing operation should not result in success.

    Assert that a parsing operation should not result in success. Try to parse str as a T using the parser p, which is expected to not succeed, giving either a fatal error or failure (as specified by the iserr parameter, which defaults to failure). Fail the test if the parsing operation succeeds. Furthermore, fail the test if it fails, but the error or failure is not indicated at the given line and column location or doesn't contain the given message msg.

    Definition Classes
    RegexParserTests
  15. def assertParseOk[T](str: String, p: (TransformerTests.this)#Parser[T], result: T): Unit

    Assert that a parsing operation should be performed correctly.

    Assert that a parsing operation should be performed correctly. Try to parse str as a T using the parser p, which is expected to succeed and to produce the given result. Fail if p doesn't produce the given result or if p doesn't consume all of the input.

    Definition Classes
    RegexParserTests
  16. def assertTransformOk[T](str: String, p: (TransformerTests.this)#Parser[T], t: (T) ⇒ T, result: T): Unit

    Assert that a transformation should be performed correctly.

    Assert that a transformation should be performed correctly. Try to parse str as a T using the parser p, which is expected to succeed while consuming all of the input. Then pass the resulting T to the t transformation function. Fail the test if the value produced by the transformation is not result.

  17. def before(fun: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    BeforeAndAfter
  18. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    Suite → AbstractSuite
  26. 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
  27. 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
  28. def fail(cause: Throwable): Nothing

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

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

    Definition Classes
    Assertions
  31. def fail(): Nothing

    Definition Classes
    Assertions
  32. 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
  33. def failInputEnd(in: (TransformerTests.this)#Input): Unit

    Fail a test with a message about reaching the end of the input.

    Fail a test with a message about reaching the end of the input.

    Definition Classes
    RegexParserTests
  34. def failParseError(f: (TransformerTests.this)#Error): Unit

    Fail a test with a message detailing a parse error.

    Fail a test with a message detailing a parse error.

    Definition Classes
    RegexParserTests
  35. def failParseFailure(f: (TransformerTests.this)#Failure): Unit

    Fail a test with a message detailing a parse failure.

    Fail a test with a message detailing a parse failure.

    Definition Classes
    RegexParserTests
  36. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def getClass(): Class[_]

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

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

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

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

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

    Definition Classes
    Any
  43. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  47. def pending: PendingNothing

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

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

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

    Attributes
    protected
    Definition Classes
    BeforeAndAfter → AbstractSuite
  52. 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
  53. 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
  54. final val styleName: String

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

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

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  62. final def wait(): Unit

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

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

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

    Definition Classes
    Assertions
  66. def withFixture(test: (TransformerTests.this)#NoArgTest): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite

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 RegexParserTests

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