Branch Coverage

blib/lib/Env/Assert.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
33 0 5 unless $params
34 0 5 if ref $env ne "HASH" or ref $want ne "HASH"
47 3 4 if ($opts->{'exact'} || $required and not defined $env->{$var_name}) { }
1 3 elsif (not $env->{$var_name} =~ /$regexp/msx) { }
53 0 3 if $params->{'break_at_first_error'}
61 0 1 if $params->{'break_at_first_error'}
64 4 1 if ($opts->{'exact'})
66 2 4 unless (exists $vars->{$var_name})
72 0 2 if $params->{'break_at_first_error'}
101 0 0 if (/ ^ [[:space:]]{0,} [#]{2} [[:space:]]{1,} envassert [[:space:]]{1,} [(] opts: [[:space:]]{0,} (? .*) [)] [[:space:]]{0,} $ /msx) { }
0 0 elsif (/ ^ [[:space:]]{0,} [#]{1} .* $ /msx) { }
0 0 elsif (/ ^ [[:space:]]{0,} $ /msx) { }
0 0 elsif (/ ^ (? [^=]{1,}) = (? .*) $ /msx) { }