object Invoker
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Invoker
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- def findMeasurementFiles(dataDir: File): Array[File]
- def findMeasurementFiles(dataDir: String): Array[File]
- def getCallingScalaTest: String
- def invoked(files: Seq[File]): Set[Int]
-
def
invoked(id: Int, dataDir: String, reportTestName: Boolean = false): Unit
We record that the given id has been invoked by appending its id to the coverage data file.
We record that the given id has been invoked by appending its id to the coverage data file.
This will happen concurrently on as many threads as the application is using, so we use one file per thread, named for the thread id.
This method is not thread-safe if the threads are in different JVMs, because the thread IDs may collide. You may not use
scoverage
on multiple processes in parallel without risking corruption of the measurement file.- id
the id of the statement that was invoked
- dataDir
the directory where the measurement data is held
- def measurementFile(dataDir: String): File
- def measurementFile(dataDir: File): File