Branch Coverage

blib/lib/File/Comments.pm
Criterion Covered Total %
branch 23 58 39.6


line true false branch
65 10 8 if (defined $$self{'target'}{'suffix'} and exists $$self{'suffixes'}{$$self{'target'}{'suffix'}})
74 10 0 if ($plugin->applicable($$self{'target'})) { }
84 2 6 if (defined $$self{'target'}{'file_base'} and exists $$self{'bases'}{$$self{'target'}{'file_base'}})
93 2 0 if ($plugin->applicable($$self{'target'})) { }
103 1 5 unless $$self{'cold_calls'}
111 3 36 if ($plugin->applicable($$self{'target'}, 1)) { }
127 0 0 if (ref $target) { }
135 0 0 unless (defined $plugin)
164 0 18 if (ref $target) { }
172 3 15 unless (defined $plugin)
173 1 2 if ($$self{'default_plugin'}) { }
243 54 0 if (not defined *{"${package}::$name";})
244 0 54 unless eval $code
0 0 if (defined $value)
0 0 if (exists $$self{'dir'}) { }
0 0 if (defined $value)
0 0 if (exists $$self{'suffix'}) { }
0 0 if (defined $value)
0 0 if (exists $$self{'path'}) { }
0 0 if (defined $value)
0 0 if (exists $$self{'file_name'}) { }
0 0 if (defined $value)
0 0 if (exists $$self{'content'}) { }
0 0 if (defined $value)
0 0 if (exists $$self{'file_base'}) { }
282 18 0 unless $content
284 18 0 unless defined $$self{'content'}
292 12 6 if (index($$self{'file_name'}, '.') >= 0)
307 84 6 if defined $_[0]