Branch Coverage

blib/lib/Alien/Build/Plugin/Probe/CommandLine.pm
Criterion Covered Total %
branch 21 22 95.4


line true false branch
42 2 11 unless (File::Which::which($self->command))
47 4 1 if (defined $self->match or defined $self->match_stderr or defined $self->version or defined $self->version_stderr)
52 0 10 if $ret
53 1 9 if defined $self->match and not $out =~ $self->match
54 1 8 if defined $self->match_stderr and not $err =~ $self->match_stderr
55 2 6 if (defined $self->version)
57 1 1 if ($out =~ $self->version)
62 2 6 if (defined $self->version_stderr)
64 1 1 if ($err =~ $self->version_stderr)
76 7 13 if ($self->secondary) { }
83 2 2 unless $type eq "system"