Branch Coverage

blib/lib/Class/DBI/ToSax.pm
Criterion Covered Total %
branch 27 32 84.3


line true false branch
19 14 14 if (ref $val and $val->can('to_sax')) { }
32 1 13 if not defined $val or length $val == 0
43 0 23 unless $handler and ref $handler and $handler->can('start_element')
53 24 0 defined $_ ? :
55 0 23 $opt{'notoplevel'} ? :
59 2 21 if $seen{"$table-$id"}
63 9 12 if $toplevel
81 14 7 if ($toplevel or $self->_stop_recursion(%opt))
82 5 9 unless $self->_has_a_methods
95 7 7 unless $self->_has_many_methods
102 9 12 if $toplevel
111 4 8 unless exists $opt{'norecurse'}
114 2 6 if (not ref $norecurse) { }
2 4 elsif (ref $norecurse eq 'HASH') { }
4 0 elsif (ref $norecurse eq 'CODE') { }
124 0 4 unless $opt{'_ancestors'}