Re: [Devel::Cover] return conditions

2004-09-16 Thread Kevin Scaldeferri
On Sep 16, 2004, at 2:47 PM, Tels wrote: -BEGIN PGP SIGNED MESSAGE- Moin, On Thursday 16 September 2004 23:37, Geoffrey Young wrote: hi paul :) I think this has come up before, but I'm not sure what the resolution was. I just came across (production) code that looks like this: return 1 if

Re: [Devel::Cover] return conditions

2004-09-16 Thread Geoffrey Young
>>> return 1 if $one == $two or return 0; > > > Just FYI: > > I always wonder why someone would write such code. IMHO this is > unmaintainable code. I might not be an Perl expert, but I wouldn't consider > myself a beginner either, especially not at boolean logic. And still, my > mind canno

Re: [Devel::Cover] return conditions

2004-09-16 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Thursday 16 September 2004 23:37, Geoffrey Young wrote: > hi paul :) > > I think this has come up before, but I'm not sure what the resolution > was. > > I just came across (production) code that looks like this: > > return 1 if $one == $two or return

[Devel::Cover] return conditions

2004-09-16 Thread Geoffrey Young
hi paul :) I think this has come up before, but I'm not sure what the resolution was. I just came across (production) code that looks like this: return 1 if $one == $two or return 0; in the condition coverage the second return is always false, but I suppose that it could be argued that if the