public final class Clover extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_SLICE |
static String |
SECURITY_EXCEPTION_MSG |
| Modifier and Type | Method and Description |
|---|---|
static void |
allRecordersFlush() |
static void |
allRecordersSliceEnd(String type,
String method,
String runtimeTestName,
int slice,
int p,
ErrorInfo ei)
Remebmer to update
RpcMessage.METHODS if you change method signature. |
static void |
allRecordersSliceStart(String type,
int slice,
long startTime)
Remebmer to update
RpcMessage.METHODS if you change method's signature. |
static CoverageRecorder |
createRecorder(String dbName,
long dbVersion,
long cfgbits,
int maxNumElements,
CloverProfile profile,
CloverProperties properties)
This is only public for CompilationCombinationTest#recordExecution
|
static int |
getCurrentSlice() |
static long |
getCurrentSliceStart() |
static int |
getCurrentTestRunID() |
static String |
getCurrentType() |
static ErrorInfo |
getErrorInfo(Throwable t) |
static CoverageRecorder |
getNullRecorder() |
static CoverageRecorder |
getRecorder(String initChars,
long dbVersion,
long cfgbits,
int maxNumElements,
CloverProfile[] profiles,
String[] nvpProperties) |
static String |
getRecordingName(int hash,
String dbname,
long timestamp)
Generate a unique file name for recording snapshot.
|
static String |
getSliceRecordingName(int typeid,
int methodID,
int runID,
int hash,
String dbname,
long timestamp)
Generate a unique file name for test slice recording snapshot.
|
static int |
getTypeID(String runtimeType) |
static void |
globalFlush()
tell all reachable Clover recorders to flush
|
static boolean |
hasRecorded() |
static boolean |
isInitialised() |
static void |
l(String m) |
static void |
l(String m,
Throwable t) |
static void |
resetRecorders()
For testing purposes only
|
static String |
stackTraceFor(Throwable throwable) |
public static final int NO_SLICE
public static final String SECURITY_EXCEPTION_MSG
public static boolean isInitialised()
public static void globalFlush()
public static int getCurrentSlice()
public static String getCurrentType()
public static long getCurrentSliceStart()
public static int getCurrentTestRunID()
public static CoverageRecorder getRecorder(String initChars, long dbVersion, long cfgbits, int maxNumElements, CloverProfile[] profiles, String[] nvpProperties)
public static int getTypeID(String runtimeType)
public static void resetRecorders()
public static boolean hasRecorded()
public static void allRecordersFlush()
public static void allRecordersSliceStart(String type, int slice, long startTime)
RpcMessage.METHODS if you change method's signature.public static void allRecordersSliceEnd(String type, String method, String runtimeTestName, int slice, int p, ErrorInfo ei)
RpcMessage.METHODS if you change method signature.public static CoverageRecorder createRecorder(String dbName, long dbVersion, long cfgbits, int maxNumElements, CloverProfile profile, CloverProperties properties)
public static String getRecordingName(int hash, String dbname, long timestamp)
com.atlassian.clover.recorder.RecordingTranscripts#STD_REC_SUFFIX - regexp for recording namehash - unique hash identifying the coverage recorderdbname - base name of the clover database (used as prefix)timestamp - snapshot timestamppublic static String getSliceRecordingName(int typeid, int methodID, int runID, int hash, String dbname, long timestamp)
com.atlassian.clover.recorder.RecordingTranscripts#SLICE_SUFFIX - regexp for slice recording nametypeid - the runtime type id of the slicemethodID - test method identifiedrunID - number of test run of the methodhash - unique hash identifying the coverage recorderdbname - base name of the clover database (used as prefix)timestamp - snapshot timestamppublic static void l(String m)
public static ErrorInfo getErrorInfo(Throwable t)
public static CoverageRecorder getNullRecorder()
Copyright © 2023 OpenClover.org. All rights reserved.