Condition Coverage

blib/lib/Treex/PML/Schema/XMLNode.pm
Criterion Covered Total %
condition 0 46 0.0


and 3 conditions

line !l l&&!r l&&r condition
32 0 0 0 ref $$val{-'parent'} and not &isweak($$val{-'parent'})
33 0 0 0 ref $$val{-'schema'} and not &isweak($$val{-'schema'})
50 0 0 0 not defined $value and $attr eq 'name'
142 0 0 0 not defined $opts->{'fh'} || defined $opts->{'string'} and defined $filename

or 2 conditions

line l !l condition
45 0 0 $$self{-'attributes'} || []
84 0 0 $children ||= [$self->serialize_get_children($opts)]
117 0 0 $self->serialize_attributes($opts) || []
118 0 0 $$self{-'xml_prefix'} || ''
148 0 0 Treex::PML::IO::open_backend($filename, 'w') || die("Cannot open $filename for writing: $!")

or 3 conditions

line l !l&&r !l&&!r condition
72 0 0 0 UNIVERSAL::DOES::does($val, 'Treex::PML::Schema::XMLNode') || !ref($val)
74 0 0 0 /^[-\@]/ || exists $exclude{$_}
82 0 0 0 $opts->{'writer'} || croak("Treex::PML::Schema::XMLNode->serialize: missing required option 'writer'!\n")
99 0 0 0 $opts->{'writer'} || croak("Treex::PML::Schema::XMLNode->serialize: missing required option 'writer'!\n")
101 0 0 0 $xml_name =~ /^{(.*)}(.*)$/ or $xml_name =~ /^()([^#].*)$/
119 0 0 0 $ns ||= $opts->{'DefaultNs'}
142 0 0 0 defined $opts->{'fh'} || defined $opts->{'string'}
156 0 0 0 $opts->{'fh'} || $opts->{'string'} || $fh