object Invoker
- Alphabetic
- By Inheritance
- Invoker
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
copyCoverageFile(targetId: String, dest: String): Unit
Copy instruments file from classpath.
Copy instruments file from classpath.
- targetId
targetId helps in grabbing the "correct" instrument file from cp that corresponds to the measurement file written during this invocation.
- dest
directory path for destination of coverage file
- lazy val dataDir: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def findMeasurementFiles(dataDir: File): Array[File]
- def findMeasurementFiles(dataDir: String): Array[File]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invoked(files: Seq[File]): Set[Int]
-
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.- id
the id of the statement that was invoked
- dataDir
the directory where the measurement data is held
-
def
invokedWriteToClasspath(id: Int, targetId: String): Unit
Invokes above method after adding additional features to make it work with https://github.com/scoverage/scalac-scoverage-plugin/issues/265.
Invokes above method after adding additional features to make it work with https://github.com/scoverage/scalac-scoverage-plugin/issues/265. Typically, we add coverage instrument files [scoverage.coverage] along with the measurement files at runtime rather than compile time. This is needed as the runtime process may be running on a different host than the compile time one. However, since the instrument files are on the classpath, we can retrieve the instruments from different hosts.
- id
the id of the statement that was invoked
- targetId
targetId helps in grabbing the "correct" instrument file from cp that corresponds to the measurement file written during this invocation.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def measurementFile(dataDir: String): File
- def measurementFile(dataDir: File): File
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )