Branch Coverage

blib/lib/YAML/Tidy/Config.pm
Criterion Covered Total %
branch 40 46 86.9


line true false branch
28 0 36 if (defined $args{'configdata'}) { }
33 5 31 unless (defined $file)
42 0 15 if (-f $c)
48 31 5 if (defined $file)
49 0 31 unless open my $fh, "<", $file
54 5 31 unless (defined $yaml)
65 0 36 if defined $overridespaces
69 33 3 if ($trimtrailing eq 'fix') { }
76 34 2 if (my $scalar = delete $cfg->{'scalar-style'})
78 17 17 $default ? :
81 1 35 if (my $aliases = $cfg->{'aliases'})
82 1 0 if ($aliases->{'serialize'})
88 1 35 if (my(@unknown) = keys %args)
125 1255 685 if $header eq "keep"
126 346 339 $header ? :
131 1971 1062 if $footer eq "keep"
132 531 531 $footer ? :
137 714 13 if $adjacency eq "keep"
138 0 13 $adjacency ? :
143 584 318 if $header eq "keep"
144 159 159 $header ? :
149 84 54 if $footer eq "keep"
150 27 27 $footer ? :