package partest
- Alphabetic
- By Inheritance
- partest
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
CompilerTest
extends DirectTest
For testing compiler internals directly.
For testing compiler internals directly. Each source code string in "sources" will be compiled, and the check function will be called with the source code and the resulting CompilationUnit. The check implementation should test for what it wants to test and fail (via assert or other exception) if it is not happy.
- implicit final class Copier extends AnyVal
-
abstract
class
DirectTest
extends App
A class for testing code which is embedded as a string.
A class for testing code which is embedded as a string. It allows for more complete control over settings, compiler configuration, sequence of events, etc. than does partest.
- type Directory = reflect.io.Directory
- implicit class ExecutorOps extends AnyRef
- type File = java.io.File
- implicit class FileOps extends AnyRef
-
abstract
class
IcodeTest
extends DirectTest
A trait for testing icode.
A trait for testing icode. All you need is this in a partest source file:
object Test extends IcodeTest
And then the generated output will be the icode for everything in that file. See source for possible customizations.
- implicit final class LoaderOps extends AnyVal
- abstract class MemoryTest extends AnyRef
-
class
PartestTask
extends Task with CompilationPathProperty with ScalaTask
An Ant task to execute the Scala test suite (NSC).
An Ant task to execute the Scala test suite (NSC).
This task can take the following parameters as attributes:
srcdir
,classpath
,classpathref
,erroronfailed
,javacmd
,javaccmd
,scalacopts
,debug
,junitreportdir
.
It also takes the following parameters as nested elements:
compilationpath
. -- TODO: this parameter is now redundant: it's the same as the classpath used to run the task
- type Path = reflect.io.Path
- implicit class PathOps extends FileOps
- type PathResolver = util.PathResolver
- type SFile = reflect.io.File
- abstract class SecurityTest extends App
- trait StoreReporterDirectTest extends DirectTest
- type StringWriter = java.io.StringWriter
- sealed abstract class TestState extends AnyRef
- trait TestUtil extends AnyRef
- implicit final class special string ops extends AnyVal
Value Members
- val ClassPath: nsc.util.ClassPath.type
- val Directory: reflect.io.Directory.type
- val EOL: String
- val Path: reflect.io.Path.type
- val PathResolver: util.PathResolver.type
- val SFile: File.type
- def allPropertiesString: String
- def basename(name: String): String
- def callable[T](body: ⇒ T): Callable[T]
- def canonicalizeSlashes(line: String): String
- implicit val codec: Codec
- def elapsedString(millis: Long): String
- def file2String(f: File): String
- def fileSeparator: String
- def findProgram(name: String): Option[File]
- implicit lazy val implicitConversions: implicitConversions
- def nljoin(xs: String*): String
- def now: String
- def oempty(xs: String*): collection.Seq[String]
- def ojoin(xs: String*): String
- def onull(s: String): String
- def pathSeparator: String
- def pathToTestIdent(path: Path): String
- implicit lazy val postfixOps: postfixOps
-
def
readOptionsFile(file: File): List[String]
In order to allow for spaces in flags/options, this parses .flags, .javaopts, javacopts etc files as follows: If it is exactly one line, it is split (naively) on spaces.
In order to allow for spaces in flags/options, this parses .flags, .javaopts, javacopts etc files as follows: If it is exactly one line, it is split (naively) on spaces. If it contains more than one line, each line is its own token, spaces and all.
- def setUncaughtHandler(): Unit
- val space: String
- implicit def stringPathToJavaFile(path: String): File
- implicit def temporaryPath2File(x: Path): File
- def timed[T](body: ⇒ T): (T, Long)
- def vmArgString: String
- def words(s: String): List[String]
- object PartestDefaults
- object TestKinds
- object TestState
- object TestUtil extends TestUtil