Branch Coverage

blib/lib/YAML/Active.pm
Criterion Covered Total %
branch 23 54 42.5


line true false branch
23 0 17 if (defined $phase) { }
24 0 0 unless exists $$node{'_phase'} and $phase eq $$node{'_phase'}
27 0 17 if exists $$node{'_phase'}
50 0 17 unless should_process_node_in_phase($node, $phase)
54 1 34 ref $val eq 'YAML::Active::NULL' ? :
61 6 95 if ref $node eq 'ARRAY'
62 15 80 if ref $node eq 'HASH'
97 22 58 if (my $class = ref $node)
98 2 20 if (not $class->can('yaml_activate') and index($class, 'YAML::Active') != -1)
101 0 2 if $@
103 22 0 if ($node->can('yaml_activate')) { }
109 0 0 UNIVERSAL::isa($node, 'HASH') ? :
0 0 UNIVERSAL::isa($node, 'ARRAY') ? :
171 6 1 if UNIVERSAL::isa($_[0], 'ARRAY')
176 3 0 if UNIVERSAL::isa($_[0], 'HASH')
185 0 0 exists $args{'ForceBlock'} ? :
195 0 0 if ref $node eq 'ARRAY'
196 0 0 if ref $node eq 'HASH'
197 0 0 if (my $class = ref $node)
198 0 0 unless ($node->can('yaml_dump'))
200 0 0 if $@
202 0 0 if ($node->can('prepare_dump'))
206 0 0 $node->can('yaml_dump') ? :
223 0 0 ref $val eq 'YAML::Active::NULL' ? :
290 2 2 if (UNIVERSAL::isa($self, 'ARRAY')) { }
2 0 elsif (UNIVERSAL::isa($self, 'HASH')) { }
291 1 7 ref $_ ? :