Condition Coverage

blib/lib/Perl/Tidy.pm
Criterion Covered Total %
condition 80 235 34.0


and 2 conditions

line l !l condition
3909 552 0 not $ok and 0
4154 552 0 not $ok and 0
4739 0 0 not $ok and 0
4985 0 0 not $ok and 0
5093 546 0 not $ok and 0

and 3 conditions

line !l l&&!r l&&r condition
294 0 0 0 $buf and $buf =~ /([\012\015]+)/
693 0 0 0 $dump_options_type ne "perltidyrc" and $dump_options_type ne "full"
857 554 0 0 $rOpts->{'dump-block-summary'} and $numf != 1
913 554 0 0 $in_place_modify and $backup_extension
966 554 0 0 @Arg_files > 1 and $rOpts->{'file-size-order'}
1074 552 0 2 $rOpts->{'backup-and-modify-in-place'} && $rOpts->{'format'} eq 'tidy'
1125 0 554 0 defined $backup_method and $backup_method ne "copy"
554 0 0 defined $backup_method and $backup_method ne "copy" and $backup_method ne "move"
1237 0 0 0 not $self->[22] and defined $write_time
1248 0 0 0 $delete_backup and -f $backup_file
1252 0 0 0 $delete_backup > 1 and $self->[12]->get_warning_count
1264 0 0 0 not -s $input_file and -s $backup_file
0 0 0 not -s $input_file and -s $backup_file and $delete_backup == 1
1389 0 0 0 not $self->[22] and defined $write_time
1400 0 0 0 $delete_backup and -f $backup_name
1404 0 0 0 $delete_backup > 1 and $self->[12]->get_warning_count
1416 0 0 0 not -s $input_file and -s $backup_name
0 0 0 not -s $input_file and -s $backup_name and $delete_backup == 1
1453 2 0 0 $in_place_modify and chown $uid_i, $gid_i, $output_file
1575 0 0 539 $encoding_in ne "UTF-8" and $encoding_in ne "utf8"
1843 3 0 0 $in_place_modify and not -w $input_file
1845 0 0 0 defined $backup_method and $backup_method eq "copy"
1887 551 3 0 not $source_stream and $input_file =~ /$forbidden_file_extensions/ || $input_file eq 'DIAGNOSTICS'
1955 0 0 0 @input_file_stat and $output_file eq $input_file
2077 0 550 4 $output_file and -f $output_file
550 0 4 $output_file and -f $output_file and not -l $output_file
2087 0 0 0 defined $backup_method and $backup_method eq "copy"
2243 0 542 6 $rOpts->{'encode-output-strings'} && $decoded_input_as
2376 2 0 4 $is_encoded_data and $rOpts->{'format'} eq "tidy"
2603 551 0 5 $max_iterations > 1 and not defined $iteration_of_formatter_convergence
551 0 5 $max_iterations > 1 and not defined $iteration_of_formatter_convergence and $formatter->can("get_convergence_check")
2673 1 0 0 $diagnostics_object and $iterm > 2
2833 0 0 0 defined $s1 and defined $s2
2861 0 0 0 $leni and $leno
2865 0 0 0 $fho and $fhi
2889 0 0 0 defined $linei and defined $lineo
4015 552 0 0 $saw_dump_profile and $saw_ignore_profile
4242 549 0 559 defined $input_string and length $input_string
4344 553 0 1 defined $rOpts->{'logfile-gap'} and $rOpts->{'logfile-gap'} >= 0
4430 549 0 5 defined $rOpts->{'sub-alias-list'} and length $rOpts->{'sub-alias-list'}
4782 0 0 0 $os eq '2000' && $major != 5
5028 0 0 0 $body and $body =~ s/\}$//

or 3 conditions

line l !l&&r !l&&!r condition
272 2758 8 0 $ref || $filename
283 0 0 0 ref $input_file or $input_file eq "-"
1084 0 2 0 $rOpts->{'standard-output'} or $destination_stream
2 0 0 $rOpts->{'standard-output'} or $destination_stream or ref $source_stream
2 0 0 $rOpts->{'standard-output'} or $destination_stream or ref $source_stream or $rOpts->{'outfile'}
0 0 0 $rOpts->{'standard-output'} or $destination_stream or ref $source_stream or $rOpts->{'outfile'} or defined $rOpts->{'output-path'}
1448 2 0 0 $uid_i != $uid_o or $gid_i != $gid_o
1544 0 0 552 not $rOpts_character_encoding or $rOpts_character_encoding eq "none"
1834 3 0 0 -T $input_file or $rOpts->{'force-read-binary'}
1887 0 0 3 $input_file =~ /$forbidden_file_extensions/ || $input_file eq 'DIAGNOSTICS'
2172 554 0 0 $rOpts->{'add-terminal-newline'} || substr($buf, -1, 1) =~ /\n/
2197 0 0 553 $rOpts->{'assert-tidy'} or $rOpts->{'assert-untidy'}
0 2 551 $rOpts->{'assert-tidy'} or $rOpts->{'assert-untidy'} or $rOpts->{'backup-and-modify-in-place'}
2219 0 2 550 $postfilter || $remove_terminal_newline || $rOpts->{'assert-tidy'} || $rOpts->{'assert-untidy'} || $rOpts->{'backup-and-modify-in-place'}
2239 545 3 0 $ref_destination_stream eq "SCALAR" or $ref_destination_stream eq "ARRAY"
2430 2 0 0 $self->[1] || $fileroot . $self->make_file_extension('DEBUG')
2438 1 0 553 $rOpts->{'tee-pod'} or $rOpts->{'tee-block-comments'}
0 0 553 $rOpts->{'tee-pod'} or $rOpts->{'tee-block-comments'} or $rOpts->{'tee-side-comments'}
2442 1 0 0 $self->[19] || $fileroot . $self->make_file_extension('TEE')
2465 0 0 553 not defined $max_iterations or $max_iterations <= 0
2625 0 0 4 $stop_now ||= $tokenizer->get_unexpected_error_count
2635 0 2 2 $stop_now ||= defined $iteration_of_formatter_convergence
2658 0 0 0 $stopping_on_error ||= $convergence_log_message
2990 2 0 552 $rOpts->{'DEBUG'} or $rOpts->{'show-options'}
3872 547 0 7 defined $perltidyrc_stream || $dump_options_type
4212 14 0 3880 $seen{$word} or $is_excluded_word{$word}
4258 0 0 1674 $word =~ /^\d/ or not $word =~ /^\w[\w\d]*$/
4351 539 12 3 $rOpts->{'add-whitespace'} or $rOpts->{'delete-old-whitespace'}
12 0 3 $rOpts->{'add-whitespace'} or $rOpts->{'delete-old-whitespace'} or $rOpts->{'add-newlines'}
0 0 3 $rOpts->{'add-whitespace'} or $rOpts->{'delete-old-whitespace'} or $rOpts->{'add-newlines'} or $rOpts->{'delete-old-newlines'}
4430 5 549 0 defined $rOpts->{'sub-alias-list'} and length $rOpts->{'sub-alias-list'} or $saw_use_feature_class
4455 0 0 6 $rOpts->{'maximum-line-length'} != 1 or $rOpts->{'continuation-indentation'} != 0
4470 539 12 3 $rOpts->{'add-whitespace'} || $rOpts->{'delete-old-whitespace'}