Branch Coverage

blib/lib/Test/Requires/Env.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
19 2 4 if (@_ > 0)
30 2 2 if (not defined $builder->has_plan) { }
1 1 elsif ($builder->has_plan eq 'no_plan') { }
35 0 1 if ($builder->can('parent') and $builder->parent)
44 0 1 if ($builder->can('parent') and $builder->parent)
52 2 7 if (ref $entry eq 'HASH') { }
54 0 4 unless (exists $ENV{$env_name})
58 3 1 if (ref $$entry{$env_name} eq 'Regexp') { }
60 1 2 unless $ENV{$env_name} =~ /$regex/
64 0 1 unless $ENV{$env_name} eq $$entry{$env_name}
70 3 4 unless (exists $ENV{$entry})