Branch Coverage

blib/lib/Test/WriteVariants.pm
Criterion Covered Total %
branch 18 56 32.1


line true false branch
133 2 0 unless exists $args{$attribute}
136 0 1 if %args
156 0 0 if @_
174 0 0 if @_
209 0 1 unless my $input_tests = delete $args{'input_tests'}
211 0 1 unless my $variant_providers = delete $args{'variant_providers'}
213 0 1 unless my $output_dir = delete $args{'output_dir'}
215 0 1 if keys %args
218 0 1 if -d $output_dir and not $self->allow_dir_overwrite
240 0 0 unless -d $output_dir or $self->allow_dir_overwrite
262 0 0 unless my $namespaces = delete $args{'search_path'}
267 0 0 if keys %args
271 0 0 if (defined $test_prefix)
323 0 0 if $$input_tests{$test_name}
346 0 0 if $edit_test_name
399 2 0 if ref $provider eq 'CODE'
410 0 0 unless @test_variant_modules
425 0 0 unless $test_variant_module->can($method)
465 8 0 unless $testname =~ /\.t$/
496 0 8 if -e $filepath and not $self->allow_file_overwrite
500 4 4 unless -d $full_dir_path
503 0 8 unless open my $fh, '>', $filepath
506 0 8 unless close $fh
532 0 8 if $$test_spec{'lib'}
535 0 8 if $$test_spec{'require'}
538 0 8 if (my $class = $$test_spec{'class'})
541 0 0 if $method
544 0 8 if $$test_spec{'code'}