Branch Coverage

blib/lib/Tie/Cycle/Sinewave.pm
Criterion Covered Total %
branch 47 48 97.9


line true false branch
96 6 1 ref $_[0] eq 'HASH' ? :
98 5 2 exists $param{'min'} ? :
99 5 2 exists $param{'max'} ? :
100 6 1 exists $param{'period'} ? :
102 1 6 if $period == 0
104 1 6 if exists $param{'startmax'}
105 1 6 if exists $param{'startmin'}
107 1 6 if exists $param{'atmax'}
108 1 6 if exists $param{'atmin'}
110 2 3 exists $param{'start_min'} ? :
2 5 exists $param{'start_max'} ? :
124 2 5 if exists $param{'at_max'} and ref $param{'at_max'} eq 'CODE'
125 2 5 if exists $param{'at_min'} and ref $param{'at_min'} eq 'CODE'
146 4 72 if (-1 == $prev_vs_curr and 1 == $curr_vs_next) { }
3 104 elsif (1 == $prev_vs_curr and -1 == $curr_vs_next) { }
150 2 2 if exists $$self{'at_max'}
154 3 1 if ($$self{'prev'} > 6.2831853071795862)
161 2 1 if exists $$self{'at_min'}
194 1 4 if (@_)
219 2 4 if (@_)
237 2 4 if (@_)
239 1 1 if $$self{'period'} == 0
245 2 8 if $_[0]{'max'} < $_[0]{'min'}
259 0 2 if ($$self{'prev'} > 6.2831853071795862)