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. 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.

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

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

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

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 nljoin(xs: String*): String
  18. def now: String
  19. def oempty(xs: String*): collection.Seq[String]
  20. def ojoin(xs: String*): String
  21. def onull(s: String): String
  22. def pathSeparator: String
  23. def pathToTestIdent(path: Path): String
  24. implicit lazy val postfixOps: postfixOps
  25. 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.

  26. def setUncaughtHandler(): Unit
  27. val space: String
  28. implicit def stringPathToJavaFile(path: String): File
  29. implicit def temporaryPath2File(x: Path): File
  30. def timed[T](body: ⇒ T): (T, Long)
  31. def vmArgString: String
  32. def words(s: String): List[String]
  33. object PartestDefaults
  34. object TestKinds
  35. object TestState
  36. object TestUtil extends TestUtil

Inherited from AnyRef

Inherited from Any

Ungrouped