Condition Coverage

lib/AI/Prolog/Term.pm
Criterion Covered Total %
condition 43 73 58.9


and 3 conditions

line !l l&&!r l&&r condition
57 0 41 498 not CORE::ref $arg and $arg =~ /^[[:digit:]]+$/
163 26 10 19 $$self{'bound'} and $$self{'deref'}
171 26 11 0 $$self{'bound'} and $$self{'deref'}
223 0 0 50 $$self{'bound'} and not $$self{'deref'}
325 374 578 185 $$_{'bound'} and $$_{'deref'}
328 242 58 176 $$self{'bound'} and $$term{'bound'}
329 12 0 164 $self->functor eq $term->getfunctor and $self->arity == $term->getarity
357 242 0 0 $self->occurcheck and $term->occurs($self->varid)
422 201 0 8 'null' eq $functor and not $arity
423 155 0 46 'cons' eq $functor and 2 == $arity
427 46 0 86 'cons' eq $term->getfunctor and 2 == $term->getarity
437 0 0 46 'null' eq $term->getfunctor and not $term->getarity
482 242 0 4 'null' eq $functor and not $arity
242 0 4 'null' eq $functor and not $arity and $prettyprint
484 213 0 29 'cons' eq $functor and 2 == $arity
213 0 29 'cons' eq $functor and 2 == $arity and $prettyprint
488 29 0 59 'cons' eq $term->getfunctor and 2 == $term->getarity
494 0 0 29 'null' eq $term->getfunctor && !$term->getarity
508 110 15 3 $string =~ /\s/ && !$_->arity
546 0 0 0 defined $$self{'arity'} and 0 == $$self{'arity'}
583 21 0 0 'rnd' eq $functor and 1 == $arity

or 2 conditions

line l !l condition
287 0 0 shift() || ''
290 0 0 $$self{'functor'} || 'null'

or 3 conditions

line l !l&&r !l&&!r condition
49 308 2156 0 CORE::ref $proto || $proto
521 13 8 0 $$self{'varname'} || $varname_for{$self->varid} || $varname++