Branch Coverage

blib/lib/Dist/Zilla/Plugin/PkgVersion/Block.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
22 0 1 unless (StrictVersionStr()->check($self->zilla->version))
32 0 5 if ($file->is_bytes)
46 0 5 unless ($package_statements)
51 0 5 if ($self->document_assigns_to_variable($document, '$VERSION'))
61 0 6 if ($seen{$package}++)
65 1 5 if ($stmt->content =~ / package \s* (?:\#.*)? \n \s* \Q$package\E/ux)
69 0 5 if ($package =~ /\P{ASCII}/u)
80 0 24 if $count == 1 and $token ne 'package'
81 0 24 if $count == 2 and not $token =~ /\s+/u
82 0 24 if $count == 3 and not $token =~ /\w+(::\w+)*/u
83 5 19 if $count == 3
84 1 23 if $count == 4 and not $token =~ /\s+/u
85 1 22 if $count == 5 and $token ne '{'
87 3 19 if ($count == 5)
96 2 3 if $munged