Branch Coverage

blib/lib/YAML/Tidy/Config.pm
Criterion Covered Total %
branch 33 38 86.8


line true false branch
28 0 24 if (defined $args{'configdata'}) { }
33 3 21 unless (defined $file)
42 0 9 if (-f $c)
48 21 3 if (defined $file)
49 0 21 unless open my $fh, "<", $file
54 3 21 unless (defined $yaml)
65 0 24 if defined $overridespaces
69 23 1 if ($trimtrailing eq 'fix') { }
76 24 0 if (my $scalar = delete $cfg->{'scalar-style'})
78 6 18 $default ? :
82 1 23 if (my(@unknown) = keys %args)
117 1365 678 if $header eq "keep"
118 339 339 $header ? :
123 2138 1062 if $footer eq "keep"
124 531 531 $footer ? :
129 637 318 if $header eq "keep"
130 159 159 $header ? :
135 93 54 if $footer eq "keep"
136 27 27 $footer ? :