p

scala.tools

testkit

package testkit

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package async

Type Members

  1. case class AllocationExecution(executionCount: Int = 1000, warmupCount: Int = 1000) extends Product with Serializable
  2. case class AllocationInfo[T](result: T, allocations: Array[Long]) extends Product with Serializable
  3. trait AllocationTest extends AnyRef
  4. trait BytecodeTesting extends ClearAfterClass
  5. class ClearAfterClass extends AnyRef

    Extend this class to use JUnit's @ClassRule.

    Extend this class to use JUnit's @ClassRule. This annotation only works on static methods, which cannot be written in Scala.

    Example: scala.tools.nsc.backend.jvm.opt.InlinerTest

  6. class Compiler extends AnyRef
  7. case class ForDeletion(path: Path) extends Product with Serializable
  8. final class InMemorySourcefile extends SimpleJavaFileObject
  9. class NoTrace[A] extends Runnable

    Run a thunk, collecting uncaught exceptions from any spawned threads.

  10. trait Resource extends Annotation
    Annotations
    @Retention()
  11. trait RunTesting extends ClearAfterClass
  12. class Runner extends AnyRef
  13. class VirtualCompiler extends AnyRef

    Utilities for testing with javac/scalac without using the actual filesystem, presumably because one doesn't wish to deal with platform idiosyncrasies.

  14. final class VirtualFileManager extends ForwardingJavaFileManager[StandardJavaFileManager]

Value Members

  1. object ASMConverters

    Makes using ASM from ByteCodeTests more convenient.

    Makes using ASM from ByteCodeTests more convenient.

    Wraps ASM instructions in case classes so that equals and toString work for the purpose of bytecode diffing and pretty printing.

  2. object AllocationTest
  3. object AssertUtil

    This module contains additional higher-level assert statements that are ultimately based on junit.Assert primitives.

    This module contains additional higher-level assert statements that are ultimately based on junit.Assert primitives.

    Avoid adding methods, and above all *fields* (including lazy vals), that require JVM-specific features such as run-time reflection. Otherwise, all tests using this object stop working in Scala.js. Put such methods in ReflectUtil instead. (ClassTags are fine; they are supported in Scala.js and Scala Native.)

  4. object BytecodeTesting
  5. object CompileTime
  6. object ForDeletion extends java.io.Serializable
  7. object NoTrace
  8. object ReflectUtil

    This module contains reflection-related utilities.

    This module contains reflection-related utilities.

    This object contains methods that will not work on Scala.js nor Scala Native, making any test using ReflectUtil JVM-only.

  9. object ReleasablePath
  10. object Releasables
  11. object Runner
  12. object TempDir
  13. object TestDuration

Ungrouped