Branch Coverage

blib/lib/Mojolicious/Plugin/FontAwesomeHelpers.pm
Criterion Covered Total %
branch 62 66 93.9


line true false branch
30 5 0 if (@_ % 2 == 1) { }
32 1 4 $block ? :
39 1 4 if $html_options{'class'}
51 4 5 if (@_ % 2 == 1)
53 2 2 $block ? :
57 1 8 if $html_options{'class'}
62 4 5 if $text
69 1 34 builtin::blessed($icon) ? :
72 5 30 if $options{'-size'}
73 1 34 if $options{'-pull'}
74 1 34 if $options{'-rotate'}
75 1 34 if $options{'-stack'}
78 1 34 if $swap_opacity
81 1 34 if $auto_width
82 1 34 if $options{'-inverse'}
83 1 34 if $options{'-bounce'}
84 1 34 if $options{'-shake'}
87 5 30 if (my $spin = $options{'-spin'})
88 1 4 if ($spin eq 1) { }
1 3 elsif (ref $spin eq 'ARRAY') { }
99 2 33 if (my $flip = $options{'-flip'})
100 1 1 if ($flip eq 1) { }
108 1 34 if ($options{'-beat'} and $options{'-fade'}) { }
112 1 33 if $options{'-beat'}
113 1 33 if $options{'-fade'}
123 0 1 unless builtin::blessed($value)
125 1 0 if (my $method = $value->can("fa_class"))
132 3 6 if ref $arrayref->[-1] eq "CODE"
143 15 29 if ($item =~ /^-/u)
146 12 3 unless @$arrayref
150 9 20 if ($item =~ /^:/u)
154 8 1 unless @$arrayref
159 35 0 wantarray ? :