public abstract class CoverageRecorder extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DISABLE_SHUTDOWNHOOK_MASK |
static int |
DISABLE_SLICE_FLUSHING_MASK |
static long |
FLUSH_INTERVAL_MASK
Config information is packed into a single long which is added to instrumentation.
|
static int |
FLUSHPOLICY_DIRECTED |
static int |
FLUSHPOLICY_INTERVAL |
static int |
FLUSHPOLICY_MASK |
static int |
FLUSHPOLICY_THREADED |
static int |
USE_CURRENT_THREADGROUP_MASK |
| Constructor and Description |
|---|
CoverageRecorder() |
| Modifier and Type | Method and Description |
|---|---|
abstract CloverBitSet |
compareCoverageWith(CoverageSnapshot before) |
abstract CloverBitSet |
createEmptyHitsMask() |
abstract void |
flush() |
abstract void |
flushNeeded() |
abstract void |
forceFlush() |
static long |
getConfigBits(long flushPolicy,
int flushInterval,
boolean useCurrentThreadGroup,
boolean disableShutdownHook,
boolean disableSlicedFlushing) |
abstract CoverageSnapshot |
getCoverageSnapshot() |
abstract String |
getDbName() |
abstract long |
getDbVersion() |
abstract String |
getRecordingName() |
abstract void |
globalSliceEnd(String runtimeType,
String method,
String runtimeTestName,
int id) |
abstract void |
globalSliceEnd(String runtimeType,
String method,
String runtimeTestName,
int id,
int exitStatus,
Throwable throwable) |
abstract void |
globalSliceStart(String runtimeType,
int id) |
abstract void |
globalSliceStart(String runtimeType,
int id,
long startTime) |
abstract int |
iget(int index) |
abstract void |
inc(int index)
Increment slot at index
|
abstract void |
maybeFlush() |
void |
rethrow(Throwable t) |
abstract void |
sliceEnd(String runtimeType,
String method,
String runtimeTestName,
long ts,
int id,
int rid,
int exitStatus,
ErrorInfo errorInfo) |
abstract void |
sliceStart(String runtimeType,
long ts,
int id,
int rid) |
abstract void |
startRun() |
abstract CoverageRecorder |
withCapacityFor(int maxNumElements)
Returns an instance that *may* support recording the number of elements requested (throw growth)
else accepts (but harmlessly) discards recording for elements that can't be accepted.
|
public static final int FLUSHPOLICY_DIRECTED
public static final int FLUSHPOLICY_INTERVAL
public static final int FLUSHPOLICY_THREADED
public static final long FLUSH_INTERVAL_MASK
public static final int FLUSHPOLICY_MASK
public static final int DISABLE_SHUTDOWNHOOK_MASK
public static final int USE_CURRENT_THREADGROUP_MASK
public static final int DISABLE_SLICE_FLUSHING_MASK
public abstract String getDbName()
public abstract String getRecordingName()
public abstract long getDbVersion()
public abstract CloverBitSet compareCoverageWith(CoverageSnapshot before)
public abstract CloverBitSet createEmptyHitsMask()
public abstract void startRun()
public abstract void flushNeeded()
public abstract void maybeFlush()
public abstract void forceFlush()
public abstract void flush()
public abstract void sliceStart(String runtimeType, long ts, int id, int rid)
public abstract void sliceEnd(String runtimeType, String method, String runtimeTestName, long ts, int id, int rid, int exitStatus, ErrorInfo errorInfo)
public abstract void inc(int index)
public abstract int iget(int index)
public abstract CoverageRecorder withCapacityFor(int maxNumElements)
public final void rethrow(Throwable t)
public abstract void globalSliceStart(String runtimeType, int id)
public abstract void globalSliceStart(String runtimeType, int id, long startTime)
public abstract void globalSliceEnd(String runtimeType, String method, String runtimeTestName, int id)
public abstract void globalSliceEnd(String runtimeType, String method, String runtimeTestName, int id, int exitStatus, Throwable throwable)
public static long getConfigBits(long flushPolicy,
int flushInterval,
boolean useCurrentThreadGroup,
boolean disableShutdownHook,
boolean disableSlicedFlushing)
public abstract CoverageSnapshot getCoverageSnapshot()
Copyright © 2023 OpenClover.org. All rights reserved.