Branch Coverage

blib/lib/Brickyard.pm
Criterion Covered Total %
branch 46 58 79.3


line true false branch
37 0 0 unless @plugins
41 0 0 unless &$code()
59 13 34 if /^\s*(?:\#|\;|$)/
63 10 24 if (/^\s*\[\s*(.+?)\s*\]\s*$/)
69 24 0 if (/^\s*([^=]+?)\s*=\s*(.*?)\s*$/)
75 6 18 if (exists $$section{$key}) { }
76 4 2 unless ref $$section{$key} eq 'ARRAY'
97 11 17 if (/^(0|[1-9]\d*)$/) { }
98 4 7 unless defined $$box_ref
99 1 10 unless ref $$box_ref eq 'ARRAY'
103 10 7 unless defined $$box_ref
104 0 17 unless ref $$box_ref eq 'HASH'
109 0 31 if defined $$box_ref
119 3 28 s/^\*// ? :
120 7 24 if s/^@(?=\w)/${base}::PluginBundle::/
121 5 19 if s/^-(?=\w)/${base}::Role::/
122 1 18 if s/^=(?=\w)//
126 3 8 if $_ ne $before
127 0 8 if $@
134 0 4 unless open my $fh, '<', $file
136 0 4 unless close $fh
142 3 1 unless ref $merged_config eq 'ARRAY'
145 1 1 if ($local_name eq '_') { }
160 1 3 if (ref $config eq 'SCALAR') { }
182 4 17 if ($local_name eq '_') { }
186 2 4 if ($key eq 'expand') { }
187 0 2 ref $value eq 'ARRAY' ? :
196 0 17 if $@
197 4 13 if ($package->DOES('Brickyard::Role::PluginBundle')) { }