Condition Coverage

blib/lib/Treex/PML/Instance.pm
Criterion Covered Total %
condition 22 191 11.5


and 3 conditions

line !l l&&!r l&&r condition
131 0 0 0 &blessed($filename) and $filename->isa('URI')
0 0 0 &blessed($filename) and $filename->isa('URI') and $filename->scheme eq 'file'
139 0 0 0 &blessed($filename) && $filename->isa('URI')
0 0 0 $filename and not &blessed($filename) && $filename->isa('URI')
295 0 0 26 $ref_data and $ref_data->can('setBaseURI')
302 2 14 10 $href ne $local_file and $remove_file
307 0 0 0 $href ne $local_file and $remove_file
323 36 0 0 ref $opts and $parser->can('set_options')
361 0 0 0 defined $id and length $id
367 0 0 0 defined $current and $current != $object
433 0 0 0 defined $2 and length $2
490 0 0 0 defined $2 && length $2
498 0 0 0 defined $i and length $i
558 0 0 0 defined $el and defined $2
0 0 0 defined $el and defined $2 and length $2
0 0 0 defined $el and defined $2 and length $2 and $el->[0] ne $2
638 0 0 0 defined $m_step and length $m_step == 0
656 0 0 0 @p > 0 and length $p[0] == 0
715 0 0 0 (defined $type || undef) && $type->get_decl_type
716 0 0 0 defined $type and $dt == 7
0 0 0 defined $type and $dt == 7 and not UNIVERSAL::DOES::does($val, 'Treex::PML::Alt')
720 0 0 0 UNIVERSAL::DOES::does($val, 'Treex::PML::List') || UNIVERSAL::DOES::does($val, 'Treex::PML::Alt') and !defined($dt) || $dt == 6 || $dt == 7
0 0 0 UNIVERSAL::DOES::does($val, 'Treex::PML::Seq') and !defined($dt) || $dt == 5
0 0 0 UNIVERSAL::isa($val, 'HASH') and !defined($dt) || $dt == 3 || $dt == 4
725 0 0 0 (defined $type || undef) && $type->get_content_decl
736 0 0 0 (defined $type || undef) && $type->get_element_by_name($name)
748 0 0 0 (defined $type || undef) && $type->get_member_by_name($name)
792 0 0 0 &blessed($value) and $decl->isa('Treex::PML::Schema::Decl')
0 0 0 &blessed($value) and $decl->isa('Treex::PML::Schema::Decl') and ref $callback eq 'CODE'
0 0 0 &blessed($value) and $decl->isa('Treex::PML::Schema::Decl') and ref $callback eq 'CODE' and ref $opts eq 'HASH'
839 0 0 0 $v and $e
842 0 0 0 $decl_is == 7 and not UNIVERSAL::DOES::does($value, 'Treex::PML::Alt')
875 0 22 0 $schema->isa('Treex::PML::Schema') and not UNIVERSAL::DOES::does($schema, 'Treex::PML::Schema')
981 10 0 0 defined $hint and length $hint

or 2 conditions

line l !l condition
172 18 0 $_[0]{'_references'} ||= {}
185 0 0 $_[0]{'_refnames'} ||= {}
269 0 6 $ctxt->{'_ref'} ||= {}
271 0 6 $ctxt->{'_ref-index'} ||= {}
298 9 17 $ctxt->{'_ref'} ||= {}
300 2 24 $ctxt->{'_ref-index'} ||= {}
355 0 0 $ctxt->{'_id-hash'} ||= {}
362 0 0 $ctxt->{'_id_prefix'} || ''
364 0 0 $ctxt->{'_id-hash'} ||= {}
662 0 0 $opts ||= {}
791 0 0 $opts ||= {}
866 0 22 $opts ||= {}
891 14 8 $ctxt->{'_ref'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
289 9 17 0 $ctxt->{'_parser'} || $ctxt->_xml_parser
304 10 0 0 $local_file || _warn("couldn't unlink tmp file ${local_file}: $!\n")
309 0 0 0 $local_file || _warn("couldn't unlink tmp file ${local_file}: $!\n")
415 1 0 814 $is_list or UNIVERSAL::DOES::does($val, 'Treex::PML::Alt')
476 0 0 0 $is_list or UNIVERSAL::DOES::does($val, 'Treex::PML::Alt')
514 0 0 0 UNIVERSAL::DOES::does($_, 'Treex::PML::List') || UNIVERSAL::DOES::does($_, 'Treex::PML::Alt')
517 0 0 0 UNIVERSAL::DOES::does($_, 'Treex::PML::List') || UNIVERSAL::DOES::does($_, 'Treex::PML::Alt')
529 0 0 0 UNIVERSAL::DOES::does($val, 'Treex::PML::List') or UNIVERSAL::DOES::does($val, 'Treex::PML::Alt')
609 0 0 0 defined $val->{$step} or $steps[0] =~ /^\[/
638 0 0 0 $m_step eq $step or $m_step eq '*'
691 0 0 0 $dt == 11 or $dt == 12
0 0 0 $dt == 11 or $dt == 12 or $dt == 13
720 0 0 0 UNIVERSAL::DOES::does($val, 'Treex::PML::List') || UNIVERSAL::DOES::does($val, 'Treex::PML::Alt')
0 0 0 !defined($dt) || $dt == 6 || $dt == 7
0 0 0 !defined($dt) || $dt == 5
0 0 0 !defined($dt) || $dt == 3 || $dt == 4
737 0 0 0 not defined $type or defined $content_type
749 0 0 0 not defined $type or defined $content_type
804 0 0 0 $decl_is == 6 or $decl_is == 7
0 0 0 $decl_is == 9 or $decl_is == 10
0 0 0 $decl_is == 9 or $decl_is == 10 or $decl_is == 8