p

scala.tools

partest

package partest

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. partest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ClassPath[T] = nsc.util.ClassPath[T]
  2. 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.

  3. implicit final class Copier extends AnyVal
  4. 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.

  5. type Directory = reflect.io.Directory
  6. implicit class ExecutorOps extends AnyRef
  7. type File = java.io.File
  8. implicit class FileOps extends AnyRef
  9. 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.

  10. implicit final class LoaderOps extends AnyVal
  11. abstract class MemoryTest extends AnyRef
  12. 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
  13. type Path = reflect.io.Path
  14. implicit class PathOps extends FileOps
  15. type PathResolver = util.PathResolver
  16. type SFile = reflect.io.File
  17. abstract class SecurityTest extends App
  18. trait StoreReporterDirectTest extends DirectTest
  19. type StringWriter = java.io.StringWriter
  20. sealed abstract class TestState extends AnyRef
  21. trait TestUtil extends AnyRef

Value Members

  1. val ClassPath: nsc.util.ClassPath.type
  2. val Directory: reflect.io.Directory.type
  3. val EOL: String
  4. val Path: reflect.io.Path.type
  5. val PathResolver: util.PathResolver.type
  6. val SFile: File.type
  7. def allPropertiesString: String
  8. def basename(name: String): String
  9. def callable[T](body: ⇒ T): Callable[T]
  10. def canonicalizeSlashes(line: String): String
  11. implicit val codec: Codec
  12. def elapsedString(millis: Long): String
  13. def file2String(f: File): String
  14. def fileSeparator: String
  15. def findProgram(name: String): Option[File]
  16. implicit lazy val implicitConversions: implicitConversions
  17. def isPartestDebug: Boolean
  18. def isPartestTerse: Boolean
  19. def isPartestVerbose: Boolean
  20. def nljoin(xs: String*): String
  21. def now: String
  22. def oempty(xs: String*): collection.Seq[String]
  23. def ojoin(xs: String*): String
  24. def onull(s: String): String
  25. def pathSeparator: String
  26. def pathToTestIdent(path: Path): String
  27. implicit lazy val postfixOps: postfixOps
  28. 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.

  29. def setUncaughtHandler(): Unit
  30. def showAllJVMInfo(): Unit
  31. val space: String
  32. implicit def stringPathToJavaFile(path: String): File
  33. implicit def temporaryPath2File(x: Path): File
  34. def timed[T](body: ⇒ T): (T, Long)
  35. def vlog(msg: ⇒ String): Unit
  36. def vmArgString: String
  37. def words(s: String): List[String]
  38. object PartestDefaults
  39. object TestKinds
  40. object TestState
  41. object TestUtil extends TestUtil

Inherited from AnyRef

Inherited from Any

Ungrouped