line |
true |
false |
branch |
43
|
0 |
59 |
unless defined $obj |
46
|
57 |
2 |
if (my $ref = ref $obj) { } |
47
|
55 |
2 |
if ('CODE' eq $ref) { } |
|
1 |
1 |
elsif ('ARRAY' eq $ref) { } |
|
1 |
0 |
elsif ('SCALAR' eq $ref) { } |
|
0 |
0 |
elsif ('GLOB' eq $ref or 'IO::Handle' eq $ref) { } |
59
|
0 |
0 |
if defined $line |
88
|
3 |
51 |
unless $dots =~ /$IS_END_YAML/ |
100
|
38 |
0 |
if (defined(my $capture = $$self{'capture'})) |
109
|
112 |
375 |
unless wantarray |
117
|
0 |
370 |
unless $$self{'reader'} |
130
|
56 |
2 |
if ($line =~ /^ --- (?: \s* (.+?) \s* )? $/x) { } |
133
|
16 |
40 |
if defined $1 |
137
|
18 |
22 |
if ($next =~ /^ - /x) { } |
|
21 |
1 |
elsif ($next =~ /$IS_HASH_KEY/) { } |
|
1 |
0 |
elsif ($next =~ /$IS_END_YAML/) { } |
160
|
0 |
31 |
unless ($str =~ s/^ " (.*?) " $/$1/x) |
166
|
26 |
28 |
length $1 > 1 ? : |
175
|
13 |
386 |
if $string eq '~' |
177
|
4 |
382 |
if ($string eq '>' or $string eq '|') |
180
|
0 |
4 |
unless defined $line |
187
|
4 |
4 |
if $ind < $indent |
191
|
3 |
1 |
$string eq '>' ? : |
194
|
14 |
368 |
if ($string =~ /^ ' (.*) ' $/x) |
199
|
31 |
337 |
if ($string =~ /$IS_QQ_STRING/) |
203
|
0 |
337 |
if ($string =~ /^['"]/) |
218
|
10 |
32 |
if ($line =~ /^ -/x) { } |
|
32 |
0 |
elsif ($line =~ /$IS_HASH_KEY/) { } |
237
|
17 |
77 |
if $indent < $limit or not defined $line or $line =~ /$IS_END_YAML/ |
239
|
0 |
77 |
if ($indent > $limit) |
243
|
5 |
72 |
if ($line =~ /^ (- \s+) \S+ \s* : (?: \s+ | $ ) /x) { } |
|
57 |
15 |
elsif ($line =~ /^ - \s* (.+?) \s* $/x) { } |
|
15 |
0 |
elsif ($line =~ /^ - \s* $/x) { } |
|
0 |
0 |
elsif ($line =~ /$IS_HASH_KEY/) { } |
249
|
1 |
56 |
if $line =~ /^---/ |
276
|
0 |
177 |
unless $line =~ /$HASH_LINE/ |
282
|
150 |
27 |
if (defined $value) { } |
290
|
20 |
119 |
if $indent < $limit or not defined $line or $line =~ /$IS_END_YAML/ |