Branch Coverage

blib/lib/YAML/Tidy/Run.pm
Criterion Covered Total %
branch 30 38 78.9


line true false branch
57 1 9 if $opt->help
63 1 8 if ($opt->version)
73 2 6 if ($opt->batch)
75 0 2 unless ($path eq "-")
78 1 1 unless ($opt->inplace)
89 0 6 unless (defined $file)
94 2 4 if ($file eq "-")
106 0 4 unless open my $fh, "<:encoding(UTF-8)", $file
110 1 3 if $opt->debug
114 4 0 if ($out ne $yaml)
117 2 2 if ($opt->inplace) { }
118 2 0 if $changed
121 1 1 unless $opt->debug
123 1 3 if $opt->debug
124 4 0 $changed ? :
128 1 3 if $self->{'opt'}->verbose
132 0 0 unless open my $fh, ">:encoding(UTF-8)", $file
143 1 1 if $opt->debug
147 1 1 if ($opt->debug) { }