how to interpret html report of multi-line statements?

View: New views
2 Messages — Rating Filter:   Alert me  

how to interpret html report of multi-line statements?

by abli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I am running Cobertura from maven and generating html reports.
The report output contains the following:

 714 1804                  Edge edge = (Edge) Cytoscape.getRootGraph()
 715 2703                                       .getEdge(Cytoscape.getRootGraph()
 716 902                                                   .createEdge(source, target, directed));

With line number 715 highlighted in red, the rest being green.

What does this mean? As far as I see, these three lines should have
the same number in the second column (number of times the lines was
run.) How can the number of runs differ? And why is line 715
highlighted, if it was run >0 times and lines 714 and 716 are green?

What would happen if I would reindent the sourcecode to put these
three lines on one line, as

Edge edge = (Edge) Cytoscape.getRootGraph().getEdge(Cytoscape.getRootGraph().createEdge(source, target, directed));

?

Thanks in advance,
Daniel Abel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel

Re: how to interpret html report of multi-line statements?

by jatanp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi abli,

I too facing same problem. Can you please let me know if you have got any clue !

Regards,
Jatan

abli wrote:
Hi!

I am running Cobertura from maven and generating html reports.
The report output contains the following:

 714 1804                  Edge edge = (Edge) Cytoscape.getRootGraph()
 715 2703                                       .getEdge(Cytoscape.getRootGraph()
 716 902                                                   .createEdge(source, target, directed));

With line number 715 highlighted in red, the rest being green.

What does this mean? As far as I see, these three lines should have
the same number in the second column (number of times the lines was
run.) How can the number of runs differ? And why is line 715
highlighted, if it was run >0 times and lines 714 and 716 are green?

What would happen if I would reindent the sourcecode to put these
three lines on one line, as

Edge edge = (Edge) Cytoscape.getRootGraph().getEdge(Cytoscape.getRootGraph().createEdge(source, target, directed));

?

Thanks in advance,
Daniel Abel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cobertura-devel
LightInTheBox - Buy quality products at wholesale price