Condition Coverage

blib/lib/URI/tel.pm
Criterion Covered Total %
condition 39 77 50.6


and 3 conditions

line !l l&&!r l&&r condition
174 22 3 2 $temp->{'context'} and not $temp->{'context'} =~ /^[a-zA-Z]/
25 0 2 $temp->{'context'} and not $temp->{'context'} =~ /^[a-zA-Z]/ and substr($temp->{'context'}, 0, 1) eq "+"
190 5 22 263 not length $temp->{'context'} and length $temp->{'intl_code'}
192 28 0 262 $temp->{'type'} eq "global" and $temp->{'intl_code'}
269 22 6 19 length $self->{'intl_code'} and not $self->{'_intl_code_from_context'}
294 19 0 2 $str =~ /[a-zA-Z]+/ and $self->is_vanity
375 8 3 3 not length $self->{'intl_code'} and my $code = $self->_extract_intl_code($str)
443 0 0 0 $err and length $err
467 0 11 0 length $val and not $val =~ /^[$PHONEDIGIT]+$/
484 0 10 0 length $val and not $val =~ /^[$PHONEDIGIT]+$/
527 0 0 0 length $val and not $val =~ /^$URIC$/
560 0 0 0 not $ref->{'context'} =~ /^[a-zA-Z]/ and substr($ref->{'context'}, 0, 1) eq "+"
643 0 0 0 length $val and not $val =~ /^$TEL_SUBSCRIBER$/
713 0 263 252 $j <= length $subscriber and not substr($subscriber, $j) =~ /^[()]?\d+($LOCAL_NUMBER|$OTHER|$VANITY_LOCAL)$/
725 0 0 0 ref $other and $other->isa("URI::tel")

or 2 conditions

line l !l condition
662 273 0 shift @_ || (return '')

or 3 conditions

line l !l&&r !l&&!r condition
112 0 0 0 $str =~ /^[a-zA-Z][a-zA-Z0-9.+\-]*:/o or $class->_no_scheme_ok
121 21 269 0 ref $this || $this
210 5 19 266 $temp->{'type'} eq 'local' || $temp->{'type'} eq 'other'
241 10 2 278 length $hash->{'ext'} or $self->{'is_vanity'}
259 15 0 1 $self->{'subscriber'} =~ /^\+\d+/ || $self->{'context'} =~ /[a-zA-Z]+/
271 19 0 0 $self->{'subscriber'} =~ /^\+\d+/ or $uri[0] =~ /^tel\:\+/
291 0 20 1 shift @_ || $self->{'subscriber'}
442 0 0 0 ref $self || $self
456 0 0 0 $self->{'error'} || $ERROR
782 502 2 456 $in or /^\#{2} BEGIN DATA/