Branch Coverage

blib/lib/Test/WriteVariants.pm
Criterion Covered Total %
branch 32 68 47.0


line true false branch
129 0 2 unless open my $fh, '<', $fn
133 0 2 unless close $fh
158 6 0 unless exists $args{$attribute}
161 0 3 if %args
181 0 0 if @_
199 0 0 if @_
235 0 3 unless my $input_tests = delete $args{'input_tests'}
237 0 3 unless my $variant_providers = delete $args{'variant_providers'}
239 0 3 unless my $output_dir = delete $args{'output_dir'}
240 0 3 if keys %args
243 0 3 if -d $output_dir and not $self->allow_dir_overwrite
265 0 0 unless -d $output_dir or $self->allow_dir_overwrite
291 0 1 unless my $namespaces = delete $args{'search_path'}
295 0 1 if keys %args
299 1 0 if (defined $test_prefix)
343 0 1 if keys %args
349 0 1 unless ref $search_patterns and 'ARRAY' eq ref $search_patterns
350 0 1 unless ref $search_dirs and 'ARRAY' eq ref $search_dirs
397 0 4 if $input_tests->{$test_name}
419 2 0 if $edit_test_name
451 2 0 if $edit_test_name
506 4 0 if ref $provider eq 'CODE'
517 0 0 unless @test_variant_modules
539 0 0 unless $test_variant_module->can($method)
580 16 0 unless $testname =~ /\.t$/
611 0 16 if -e $filepath and not $self->allow_file_overwrite
615 8 8 unless -d $full_dir_path
618 0 16 unless open my $fh, '>', $filepath
621 0 16 unless close $fh
648 0 16 if $test_spec->{'lib'}
651 0 16 if $test_spec->{'require'}
653 4 12 if (my $class = $test_spec->{'class'})
657 4 0 if $method
661 4 12 if $test_spec->{'code'}