abstract class DirectTest extends AnyRef
Test with code which is embedded as a string.
DirectTest
allows for more complete control over settings, compiler
configuration, sequence of events, etc. than does partest alone.
Tests must define code
and show()
. Minimally:
def show() = assert(compile())
There are helper methods for creating settings and invoking a (newly constructed) compiler.
- Source
- DirectTest.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- DirectTest
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new DirectTest()
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from DirectTest to any2stringadd[DirectTest] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (DirectTest, B)
- Implicit
- This member is added by an implicit conversion from DirectTest to ArrowAssoc[DirectTest] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def compilationUnits(global: Global)(sourceCodes: String*): List[nsc.Global.CompilationUnit]
- def compile(args: String*): Boolean
- def compileString(global: Global)(sourceCode: String): Boolean
-
def
ensuring(cond: (DirectTest) ⇒ Boolean, msg: ⇒ Any): DirectTest
- Implicit
- This member is added by an implicit conversion from DirectTest to Ensuring[DirectTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (DirectTest) ⇒ Boolean): DirectTest
- Implicit
- This member is added by an implicit conversion from DirectTest to Ensuring[DirectTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): DirectTest
- Implicit
- This member is added by an implicit conversion from DirectTest to Ensuring[DirectTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): DirectTest
- Implicit
- This member is added by an implicit conversion from DirectTest to Ensuring[DirectTest] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def extraSettings: String
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from DirectTest to StringFormat[DirectTest] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javaCompilationUnits(global: Global)(sourceCodes: String*): List[nsc.Global.CompilationUnit]
-
def
main(args: Array[String]): Unit
Constructor/main body *
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newCompiler(settings: Settings): Global
- def newCompiler(args: String*): Global
- def newJavaSources(codes: String*): List[BatchSourceFile]
- def newSettings(args: List[String]): Settings
- def newSources(codes: String*): List[BatchSourceFile]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def reporter(settings: Settings): Reporter
- def settings: Settings
- def sourceFilesToCompiledUnits(global: Global)(files: List[SourceFile]): List[nsc.Global.CompilationUnit]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def testOutput: reflect.io.Directory
- def testPath: reflect.io.File
-
def
testUnderJavaAtLeast[A](version: String)(yesRun: ⇒ A): TestUnderJavaAtLeast[A]
Run a test only if the current java version is at least the version specified.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withRun[T](global: Global)(f: (Run) ⇒ T): T
-
def
→[B](y: B): (DirectTest, B)
- Implicit
- This member is added by an implicit conversion from DirectTest to ArrowAssoc[DirectTest] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc