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);
followed by
SrcFileItem sfi= new SrcFileItem(clsItem,cd.getName(),cd.getClassVMName());
and then..
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)
Thanks, nik
Edit:
cd : ClassDescriptor object
Log in to post a comment.
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.
followed by
and then..
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)
Thanks,
nik
Edit:
cd : ClassDescriptor object