From: Czechowski, I. <Igo...@sa...> - 2005-06-23 19:05:57
|
The reason I'm asking is that I think that in certain cases I get faulty reports regarding branch coverage. Any help would be appreciated. A simple example would solve my problem: 1: public void branchCoverage(boolean test) { 2: if (test){ 3: return true; 4: else 5: return false; 6: } When can I achieve 100% branch coverage ?=20 1) When lines 2,4,5 are executed 2) When lines 2,3,4,5 are executed Thanks Igor -----Original Message----- From: cob...@li... [mailto:cob...@li...] On Behalf Of Czechowski, Igor Sent: Wednesday, June 22, 2005 3:23 PM To: Cobertura-devel Subject: [Cobertura-devel] Branch coverage question ? Hi, Where can I find detailed description of branch coverage that cobertura measures ? Thanks Igor ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dick _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |