Retrieving line numbers

Developers
Nikstvp
2012-03-03
2013-05-09
  • Nikstvp

    Nikstvp - 2012-03-03

    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

     
  • Nikstvp

    Nikstvp - 2012-03-03

    Edit:

    cd : ClassDescriptor object

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks