blib/lib/Test/NewVersion.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 21 | 52.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
50 | 4 | 0 | 0 | not $no_plan || _builder()->expected_tests and _builder()->current_test > 0 |
70 | 0 | 12 | 8 | -r $File::Find::name and $File::Find::name =~ /\.pm$/ |
140 | 0 | 2 | 0 | $dist_provides and $current_version |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
42 | 0 | 4 | 0 | $tb ||= 'Test::Builder'->new |
50 | 0 | 4 | 0 | $no_plan || _builder()->expected_tests |
70 | 8 | 2 | 10 | -r $File::Find::name and $File::Find::name =~ /\.pm$/ or $File::Find::name =~ /\.pod$/ |
133 | 1 | 1 | 0 | $dist_provides ||= do { my $metafile = &first(sub { -e $_; } , 'MYMETA.json', 'MYMETA.yml', 'META.json', 'META.yml'); my $dist_metadata = $metafile ? 'CPAN::Meta'->load_file($metafile) : undef; $dist_metadata->provides if $dist_metadata } |