Branch Coverage

blib/lib/Syntax/Check.pm
Criterion Covered Total %
branch 30 42 71.4


line true false branch
20 0 3 if ($^O =~ /^(dos|os2)/i) { }
0 3 elsif ($^O =~ /^MacOS/i) { }
32 1 6 unless (exists $p{'file'} and -f $p{'file'})
52 12 22 if ($module eq lc $module)
54 6 6 if $self->{'verbose'}
58 0 22 if $module =~ /^Carp/
62 20 2 if (my($dir, $file) = $module =~ m[^(.*)/(.*)$]) { }
66 5 15 if (module_installed($package)) { }
68 2 3 if $self->{'verbose'}
74 15 0 unless (-d "$self->{'lib'}/$dir")
76 0 15 unless make_path("$self->{'lib'}/$dir")
79 15 0 unless (-f "$self->{'lib'}/$path")
81 0 15 unless open my $wfh, '>', "$self->{'lib'}/$path"
83 0 15 unless close $wfh
92 2 0 unless (-f "$self->{'lib'}/$module_file")
94 0 2 unless open my $wfh, '>', "$self->{'lib'}/$module_file"
96 0 2 unless close $wfh
101 0 6 if (not $self->{'lib'}) { }
110 6 11 if (not exists $self->{'lib'} && -d $self->{'lib'})
111 2 4 exists $self->{'keep'} ? :
113 3 3 if $self->{'verbose'}