Branch Coverage

blib/lib/YAML/Tidy/Config.pm
Criterion Covered Total %
branch 34 42 80.9


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)
118 1365 678 if $header eq "keep"
119 339 339 $header ? :
124 2138 1062 if $footer eq "keep"
125 531 531 $footer ? :
130 749 0 if $adjacency eq "keep"
131 0 0 $adjacency ? :
136 637 318 if $header eq "keep"
137 159 159 $header ? :
142 93 54 if $footer eq "keep"
143 27 27 $footer ? :