Branch Coverage

blib/lib/Debian/Copyright.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
112 1 5 if (ref $file)
120 6 0 if (exists $$stanzas[0]{'Format'})
122 5 1 unless ($self->header)
128 0 57 if $$_{'Format'}
129 47 10 if ($$_{'Files'})
134 9 1 if ($$_{'License'})
136 9 0 if ($license =~ /\A([^\n]+)$/msx) { }
171 2 0 if (ref $file and ref $file eq 'SCALAR') { }
0 0 elsif (ref $file and ref $file eq 'GLOB') { }
179 0 0 unless open $fh, '>', $file