<div class="gmail_quote">On Tue, Dec 22, 2009 at 4:34 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br><div class="gmail_quote">On Tue, Dec 22, 2009 at 4:21 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1) I would modify the current test for triangle.<br>
2) When you add the TestPolygon test, check vtkPolygon's coverage to<br>
see if you can exercise some uncovered code. There are 193 uncovered<br>
lines of code:<br>
<a href="http://www.cdash.org/CDash/viewCoverageFile.php?buildid=498540&fileid=10908473" target="_blank">http://www.cdash.org/CDash/viewCoverageFile.php?buildid=498540&fileid=10908473</a><br>
<font color="#888888"><br>
Bill<br>
</font><div><div></div><div></div></div></blockquote></div><br></div><div>Ok, I'll add more polygon tests. I've never looked at these coverage files - I'm assuming that the red 000000 means that line is not tested? Can you figure out where the line is tested by the number? e.g.</div>
<div><span style="font-family:Arial, Helvetica, sans-serif;font-size:14px"><pre>00037579 void vtkPolygon::ComputeNormal(vtkPoints *p, double *n)</pre><pre><font face="arial"><span style="white-space:normal;font-size:small">How would you turn 00037579 into a file name?</span></font></pre>
</span></div></blockquote><div><br></div><div>The number preceding each line is supposed to be the number of times that line was called. To find callers, grep for the function name, once you find a candidate, set a breakpoint on the line and run a test in the debugger to verify that you can stop there...</div>
<div><br></div><div><br></div></div>