blib/lib/Treex/PML/Schema/XMLNode.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 22 | 46 | 47.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
32 | 45 | 0 | 325 | ref $val->{'-parent'} and not &isweak($val->{'-parent'}) |
33 | 88 | 0 | 282 | ref $val->{'-schema'} and not &isweak($val->{'-schema'}) |
50 | 234 | 0 | 121 | not defined $value and $attr eq 'name' |
142 | 0 | 0 | 11 | not defined $opts->{'fh'} || defined $opts->{'string'} and defined $filename |
line | l | !l | condition |
---|---|---|---|
45 | 270 | 0 | $self->{'-attributes'} || [] |
84 | 170 | 0 | $children ||= [$self->serialize_get_children($opts)] |
117 | 270 | 0 | $self->serialize_attributes($opts) || [] |
118 | 0 | 270 | $self->{'-xml_prefix'} || '' |
148 | 11 | 0 | Treex::PML::IO::open_backend($filename, 'w') || die("Cannot open $filename for writing: $!") |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
72 | 133 | 0 | 0 | UNIVERSAL::DOES::does($val, 'Treex::PML::Schema::XMLNode') || !ref($val) |
74 | 1938 | 270 | 192 | /^[-\@]/ || exists $exclude{$_} |
82 | 170 | 0 | 0 | $opts->{'writer'} || croak("Treex::PML::Schema::XMLNode->serialize: missing required option 'writer'!\n") |
99 | 280 | 0 | 0 | $opts->{'writer'} || croak("Treex::PML::Schema::XMLNode->serialize: missing required option 'writer'!\n") |
101 | 0 | 270 | 0 | $xml_name =~ /^{(.*)}(.*)$/ or $xml_name =~ /^()([^#].*)$/ |
119 | 0 | 270 | 0 | $ns ||= $opts->{'DefaultNs'} |
142 | 0 | 0 | 11 | defined $opts->{'fh'} || defined $opts->{'string'} |
156 | 0 | 11 | 0 | $opts->{'fh'} || $opts->{'string'} || $fh |