org.kiama.example.oberon0.base

TestDriver

trait TestDriver extends TestCompiler[ModuleDecl]

A driver for testing.

Self Type
TestDriver with Driver
Linear Supertypes
TestCompiler[ModuleDecl], FunSuite, Suite, Serializable, AbstractSuite, Assertions, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TestDriver
  2. TestCompiler
  3. FunSuite
  4. Suite
  5. Serializable
  6. AbstractSuite
  7. Assertions
  8. AnyRef
  9. 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

Abstract Value Members

  1. abstract def langlevel: Int

    The language level of this program.

    The language level of this program. The levels are: base: basic module structure; empty statements L0: const, var, type decls; basic types; expressions; assignment stmts L1: if and while statements L2: for and case statements L3: procedures, only local access to variables L4: arrays and records L5: L4 with unrestricted access to variables (FIXME: not implemented)

  2. abstract def tasklevel: Int

    The highest task level of this program.

    The highest task level of this program. The levels are: 1 - parsing and pretty printing (LDTA 1) 2 - name analysis (LDTA 2) 3 - type analysis (LDTA 3) 4 - desugar (LDTA 4a) 5 - optimisation (LDTA 4b) (FIXME: not implemented) 6 - C code gen (LDTA 5a)

Concrete 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. final def asInstanceOf[T0]: T0

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

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

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

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

    Definition Classes
    Assertions
  11. def clone(): AnyRef

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

    Definition Classes
    Assertions
  13. def dosanitisation: Boolean

    Flag to decide whether to sanitise the output before comparison of test results with expected results (see sanitise method).

    Flag to decide whether to sanitise the output before comparison of test results with expected results (see sanitise method). Default is true; override with false if you want actual results compared.

    Definition Classes
    TestCompiler
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Suite
  17. def expect(expected: Any)(actual: Any): Unit

    Definition Classes
    Assertions
  18. def expect(expected: Any, clue: Any)(actual: Any): Unit

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

    Definition Classes
    Suite → AbstractSuite
  20. def fail(cause: Throwable): Nothing

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

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

    Definition Classes
    Assertions
  23. def fail(): Nothing

    Definition Classes
    Assertions
  24. def filetests(name: String, path: String, srcext: String, resext: String, optinext: Option[String] = None, indefault: String = "", argslist: List[Array[String]] = List (Array ())): Unit

    Make tests that process the files in path.

    Make tests that process the files in path. name is an identifying name for this set of tests. All files whose names end in srcext are processed. Processing is done by the function compile which must return either Some (s) where s is the output or None if processing failed. If srcext is .x and resext is .y, then the expected result for foo.x is found in file foo.y. If optinext is Some (z), then foo.z is used for standard input, if it exists, otherwise the string indefault is used. A test fails if either the processing fails or it succeeds with the wrong result. argslist is used to specify the sets of command-line arguments that you want to use. Each test is run with each set of arguments. The default is an empty argument list.

    Definition Classes
    TestCompiler
  25. def finalize(): Unit

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

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

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

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

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

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

    Definition Classes
    Any
  32. val maxlanglevel: Int

    The maximum language level we support.

  33. def mktests(proglang: String): Unit

    Make the tests for a given language subset.

    Make the tests for a given language subset. proglang denotes the language subset whose tests are used.

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

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

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

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

    Definition Classes
    AnyRef
  38. def pending: PendingNothing

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

    Definition Classes
    Suite
  40. val pprintastFlagDefault: Boolean

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

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

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

    Attributes
    protected
    Definition Classes
    FunSuite → Suite → AbstractSuite
  44. 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
  45. def sanitise(s: String): String

    Sanitise the output from a test.

    Sanitise the output from a test. Remove any output that doesn't make sense to this program. I.e., if we are running a program that performs tasks 1-m, then any lines marked with [p], where p > m should be removed before comparison. Also, there can be three numbers, a'la [p,q,r] where p is as before and q (r) are lower (upper) inclusive bounds on the language level to which this output should apply. If p is omitted, the output applies to all task levels. If p is given, but q and r are omitted, the output also applies to all language levels.

    Definition Classes
    TestDriverTestCompiler
  46. final val styleName: String

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  57. def withClue(clue: Any)(fun: ⇒ Unit): Unit

    Definition Classes
    Assertions
  58. def withFixture(test: (TestDriver.this)#NoArgTest): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite

Inherited from TestCompiler[ModuleDecl]

Inherited from FunSuite

Inherited from Suite

Inherited from Serializable

Inherited from AbstractSuite

Inherited from Assertions

Inherited from AnyRef

Inherited from Any

No Group