Condition Coverage

blib/lib/Treex/PML/Backend/PML.pm
Criterion Covered Total %
condition 12 47 25.5


and 3 conditions

line !l l&&!r l&&r condition
47 0 0 6 defined $schema_dir and length $schema_dir
0 6 0 defined $schema_dir and length $schema_dir and -f 'File::Spec'->catfile($schema_dir, 'pmlbackend_conf_schema.xml')
50 0 0 6 defined $schema_dir and length $schema_dir
52 6 0 0 $file and -f $file
78 0 0 0 ref $copy->value and $copy->value->{'id'}
107 22 0 0 $status and not $Treex::PML::Backend::PML::allow_no_trees || defined $ctxt->get_trees
126 22 0 0 $Treex::PML::Backend::PML::TRANSFORM and $Treex::PML::Backend::PML::config
127 0 0 0 $_ = $f->getline and not /\S/
129 0 0 0 defined $_ and /^\s*
173 0 0 22 defined $_ and s/^\s*
174 0 0 22 defined $_ and m[^[^>]*xmlns(?::[[:alnum:]]+)?=([\'\"])http://ufal.mff.cuni.cz/pdt/pml/\1]
179 0 0 22 $fh && test($fh, $encoding)

or 2 conditions

line l !l condition
95 32 0 Treex::PML::IO::open_backend($filename, $mode) || die("Cannot open $filename for " . ($mode eq 'w' ? 'writing' : 'reading') . ": $!")

or 3 conditions

line l !l&&r !l&&!r condition
67 0 6 0 $cfg->get_root->{'transform_map'} ||= 'Treex::PML::Factory'->createSeq
107 0 0 0 $Treex::PML::Backend::PML::allow_no_trees || defined $ctxt->get_trees
173 0 22 0 $in_first_tag or defined $_ and s/^\s*