Branch Coverage

blib/lib/Sort/Key/Top/PP.pm
Criterion Covered Total %
branch 36 38 94.7


line true false branch
45 19 25 if @top == $top_n and $$i[0] < $top[0][0]
46 5 20 unless @top
49 19 13 $$i[0] - $top[$cur][0] > 0 ? :
55 12 8 if @top > $top_n
65 11 14 if @top == $top_n and $$i[0] > $top[0][0]
66 3 11 unless @top
69 8 14 $top[$cur][0] - $$i[0] > 0 ? :
75 7 4 if @top > $top_n
85 4 72 if @top == $top_n and $$i[0] gt $top[0][0]
86 8 64 unless @top
89 44 106 ($top[$cur][0] cmp $$i[0]) > 0 ? :
95 22 42 if @top > $top_n
105 3 5 if @top == $top_n and $$i[0] lt $top[0][0]
106 1 4 unless @top
109 4 0 ($top[$cur][0] cmp $$i[0]) < 0 ? :
115 4 0 if @top > $top_n
123 7 10 $code ? :
131 9 1 @_ >= $n ? :
7 10 wantarray ? :