Branch Coverage

blib/lib/HTML/TagCloud/Sortable.pm
Criterion Covered Total %
branch 26 28 92.8


line true false branch
70 0 354 if (ref $args[0]) { }
140 9 1 if (defined $args[0])
141 6 3 if (not ref $args[0]) { }
149 7 3 unless exists $options{'sort_field'}
150 8 2 unless $options{'sort_type'}
151 9 1 unless $options{'sort_order'}
155 9 1 if (defined(my $limit = $options{'limit'})) { }
169 1 9 unless scalar @tags
176 1 8 if ($max - $min == 0) { }
184 8 1 if (scalar @tags < $$self{'levels'})
188 9 0 if (my $sort = $options{'sort_field'})
190 8 1 unless (ref $sort)
195 2 3 unless &$newsort(@_)
197 2 6 $sort ne 'name' ? :