Branch Coverage

blib/lib/Text/FrontMatter/YAML.pm
Criterion Covered Total %
branch 27 40 67.5


line true false branch
140 0 20 unless (exists $args{'document_string'} xor (exists $args{'frontmatter_hashref'} or exists $args{'data_text'}))
150 13 7 if (exists $args{'document_string'}) { }
7 0 elsif (exists $args{'frontmatter_hashref'} or exists $args{'data_text'}) { }
173 5 2 if (defined $hashref)
176 3 2 if defined $data
179 5 2 if (defined $data)
188 0 13 unless $fh
194 10 23 if ($. == 1) { }
196 9 1 if ($line =~ /$yaml_marker_re/) { }
210 8 15 if ($line =~ /$yaml_marker_re/)
233 0 13 unless open my $fh, '<:encoding(UTF-8)', \$byte_string
253 0 3 if @_
255 0 3 unless (defined $self->{'yaml'})
259 3 0 unless ($self->{'yaml_hashref'})
278 0 10 if @_
296 0 4 if @_
298 0 4 unless (defined $self->{'data'})
303 0 4 unless open my $fh, '<', \$data
320 0 12 if @_
334 0 9 if @_