Branch Coverage

blib/lib/Test/PerlTidy.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
28 0 2 if (my $perltidy_options = delete $args{'perltidy_options'})
33 0 2 if $args{'skip_all'}
35 0 2 if exists $args{'mute'}
60 0 16 unless my $stderr_fh = 'IO::File'->new_tmpfile
75 0 16 unless binmode $stderr_fh, ':encoding(UTF-8)'
80 0 16 if ($stderr)
81 0 0 unless ($MUTE)
93 15 1 if ($code_to_tidy eq $tidied_code) { }
97 0 1 unless ($MUTE)
119 4 0 if (@args > 1) { }
130 0 4 unless -d $path
136 0 4 unless ref $excludes eq 'ARRAY'
141 68 213 if $_->is_file and /[.](?:pl|pm|PL|t)\z/u
151 85 81 ref $exclude ? :
154 38 128 if ($exclude_me)
156 0 38 if $args{'debug'}
165 0 4 if ($args{'debug'})
177 0 16 unless -f $filename