Invoker

object Invoker
class Object
trait Matchable
class Any
Invoker.type

Value members

Concrete methods

def invoked(id: Int, dataDir: String): 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.

Value parameters:
dataDir

the directory where the measurement data is held

id

the id of the statement that was invoked

Source:
Invoker.scala