|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.codecoverage.v2.logger.DirectoryChannelLogger
Logs coverage reports to a directory of logs. The directories are split by the channel index, and the directory contains one log per class file analyzed.
As of 2004-Jun-3, the output format has changed to:
method index mark index EOLwhere both indices are output in hexidecimal format. This is for performance reasons.
Field Summary | |
protected java.io.File |
baseDir
|
static java.lang.String |
CLASS_LOG_EXTENTION
|
Constructor Summary | |
DirectoryChannelLogger(java.io.File baseDir)
|
Method Summary | |
void |
cover(java.lang.String classSignature,
short methodIndex,
short markIndex)
Records a coverage of a marked bytecode instruction. |
protected static char[] |
createCoverString(short methodIndex,
short markIndex)
Make static final so that the invocation time is minimized. |
protected static java.io.File |
getClassFile(java.io.File basedir,
java.lang.String classSignature)
Make static final so that the invocation time is minimized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CLASS_LOG_EXTENTION
protected java.io.File baseDir
Constructor Detail |
public DirectoryChannelLogger(java.io.File baseDir)
Method Detail |
public void cover(java.lang.String classSignature, short methodIndex, short markIndex)
cover
in interface IChannelLogger
classSignature
- a signature of the class file being covered.
this signature includes the fully-qualified name of the class,
along with a checksum to uniquely identify it.methodIndex
- index for a method within the class. The meta-data
store will know how to translate the index to a method signature.markIndex
- the index of the bytecode instruction mark for this
particular channel.protected static final char[] createCoverString(short methodIndex, short markIndex)
This now returns a character array, for performance reasons. The array's format is in hexidecimal.
protected static final java.io.File getClassFile(java.io.File basedir, java.lang.String classSignature)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |