package testkit
- Alphabetic
- Public
- Protected
Type Members
- case class AllocationExecution(executionCount: Int = 1000, warmupCount: Int = 1000) extends Product with Serializable
- case class AllocationInfo[T](result: T, allocations: Array[Long]) extends Product with Serializable
- trait AllocationTest extends AnyRef
- trait BytecodeTesting extends ClearAfterClass
- 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 - class Compiler extends AnyRef
- case class ForDeletion(path: Path) extends Product with Serializable
- final class InMemorySourcefile extends SimpleJavaFileObject
- class NoTrace[A] extends Runnable
Run a thunk, collecting uncaught exceptions from any spawned threads.
- trait Resource extends Annotation
- Annotations
- @Retention()
- trait RunTesting extends ClearAfterClass
- class Runner extends AnyRef
- 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.
- final class VirtualFileManager extends ForwardingJavaFileManager[StandardJavaFileManager]
Value Members
- 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.
- object AllocationTest
- 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 inReflectUtilinstead. (ClassTags are fine; they are supported in Scala.js and Scala Native.) - object BytecodeTesting
- object CompileTime
- object ForDeletion extends java.io.Serializable
- object NoTrace
- 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
ReflectUtilJVM-only. - object ReleasablePath
- object Releasables
- object Runner
- object TempDir
- object TestDuration