| java.lang.Object net.sourceforge.groboutils.codecoverage.v2.logger.DirectoryChannelLogger
All known Subclasses: net.sourceforge.groboutils.codecoverage.v2.logger.CacheDirChannelLogger, net.sourceforge.groboutils.codecoverage.v2.logger.MinDirChannelLogger,
DirectoryChannelLogger | public class DirectoryChannelLogger implements IChannelLogger(Code) | | 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 EOL
where both indices are output in hexidecimal format. This is for performance
reasons.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/07/07 09:39:10 $ since: December 17, 2002 |
Method Summary | |
public void | cover(String classSignature, short methodIndex, short markIndex) Records a coverage of a marked bytecode instruction. | final protected static char[] | createCoverString(short methodIndex, short markIndex) Make static final so that the invocation time is minimized.
This now returns a character array, for performance reasons. | final protected static File | getClassFile(File basedir, String classSignature) Make static final so that the invocation time is minimized. |
CLASS_LOG_EXTENTION | final public static String CLASS_LOG_EXTENTION(Code) | | |
DirectoryChannelLogger | public DirectoryChannelLogger(File baseDir)(Code) | | |
cover | public void cover(String classSignature, short methodIndex, short markIndex)(Code) | | Records a coverage of a marked bytecode instruction. This method should
never throw an exception.
Parameters: 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. Parameters: methodIndex - index for a method within the class. The meta-datastore will know how to translate the index to a method signature. Parameters: markIndex - the index of the bytecode instruction mark for thisparticular channel. |
createCoverString | final protected static char[] createCoverString(short methodIndex, short markIndex)(Code) | | Make static final so that the invocation time is minimized.
This now returns a character array, for performance reasons. The
array's format is in hexidecimal.
|
getClassFile | final protected static File getClassFile(File basedir, String classSignature)(Code) | | Make static final so that the invocation time is minimized.
|
|
|