Branch Coverage

blib/lib/Env/Assert/Functions.pm
Criterion Covered Total %
branch 19 26 73.0


line true false branch
62 0 8 unless $params
63 0 8 if ref $env ne "HASH" or ref $want ne "HASH"
76 3 11 if ($opts->{'exact'} || $required and not defined $env->{$var_name}) { }
1 10 elsif (not $env->{$var_name} =~ /$regexp/msx) { }
82 0 3 if $params->{'break_at_first_error'}
90 0 1 if $params->{'break_at_first_error'}
93 4 4 if ($opts->{'exact'})
95 2 4 unless (exists $vars->{$var_name})
101 0 2 if $params->{'break_at_first_error'}
130 0 17 if (/ ^ [[:space:]]{0,} [#]{2} [[:space:]]{1,} envassert [[:space:]]{1,} [(] opts: [[:space:]]{0,} (? .*) [)] [[:space:]]{0,} $ /msx) { }
5 12 elsif (/ ^ [[:space:]]{0,} [#]{1} .* $ /msx) { }
5 7 elsif (/ ^ [[:space:]]{0,} $ /msx) { }
7 0 elsif (/ ^ (? [^=]{1,}) = (? .*) $ /msx) { }