| lib/XML/Compile/Schema.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 43 | 72 | 59.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 125 | 14 | 4 | 58 | $this->isa("XML::LibXML::Element") and $this->localName eq "schema" |
| 290 | 342 | 4 | 433 | $block_default and not grep(($_->{'prefix'} eq ""), values %$table) |
| 360 | 17 | 2 | 0 | $to_xml and defined $args{'typemap'} |
| 19 | 0 | 0 | $to_xml and defined $args{'typemap'} and keys %{$args{"typemap"};} | |
| 371 | 17 | 1 | 1 | $to_xml && $show{'show_type'} |
| 461 | 0 | 0 | 53 | ref $thing and $thing->{'_use_cache'} |
| 481 | 0 | 0 | 0 | ref $thing and $thing->{'_use_cache'} |
| line | l | !l | condition |
|---|---|---|---|
| 58 | 0 | 52 | $args->{'typemap'} || {} |
| 211 | 94 | 666 | $args{'sloppy_integers'} ||= 0 |
| 217 | 43 | 717 | $args{'sloppy_floats'} ||= 0 |
| 222 | 0 | 760 | $args{'json_friendly'} ||= 0 |
| 247 | 0 | 760 | $args{'abstract_types'} ||= "ERROR" |
| 248 | 6 | 754 | $args{'mixed_elements'} ||= "ATTRIBUTES" |
| 349 | 1 | 18 | $args{'indent'} || ' ' |
| 351 | 0 | 19 | $args{'mixed_elements'} ||= "ATTRIBUTES" |
| 352 | 0 | 19 | $args{'default_values'} ||= "EXTEND" |
| 353 | 2 | 17 | $args{'abstract_types'} ||= "ERROR" |
| 372 | 0 | 19 | $$table{&SCHEMA2001} ||= {"prefix", "xs", "uri", "http://www.w3.org/2001/XMLSchema", "used", $used} |
| 374 | 19 | 0 | $$table{&SCHEMA2001i} ||= {"prefix", "xsi", "uri", "http://www.w3.org/2001/XMLSchema-instance", "used", $used} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 84 | 8 | 0 | 0 | !$_->{'action'} || $_->{'action'} eq $dir |
| 143 | 0 | 0 | 0 | ref $schema || $schema |
| 232 | 43 | 0 | 717 | $args{'prefixes'} || $args{'output_namespaces'} |
| 340 | 0 | 420 | $args{'use_default_namespace'} || $args{'use_default_prefix'} | |
| 249 | 13 | 747 | 0 | $args{'default_values'} ||= $action eq "READER" ? "EXTEND" : "IGNORE" |
| 252 | 7 | 0 | 753 | $args{'any_element'} ||= delete $args{'anyElement'} |
| 253 | 7 | 0 | 753 | $args{'any_attribute'} ||= delete $args{'anyAttribute'} |
| 303 | 0 | 0 | 0 | delete $args{'element'} || $type |
| 369 | 2 | 0 | 17 | $args{'prefixes'} || $args{'output_namespaces'} |