I'm trying to generate a report in my own format where the line numbers of the source file are associated with a boolean value to indicate whether it has been covered or not.
IItem item=new AllItem();
ClassItem clsItem=new ClassItem(item,cd,carr);
SrcFileItem sfi= new SrcFileItem(clsItem,cd.getName(),cd.getClassVMName());
IntObjectMap map = sfi.getLineCoverage();
My problem is that the boolean coverage array contains values when accessed using ClassItem object but I'm getting the size of the object map as ZERO.
Please point out where I'm going wrong here.
(I'm still a beginner at this)
cd : ClassDescriptor object
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.