Condition Coverage

blib/lib/URI/tel.pm
Criterion Covered Total %
condition 37 71 52.1


and 3 conditions

line !l l&&!r l&&r condition
162 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 '+'
178 5 22 263 not length $temp->{'context'} and length $temp->{'intl_code'}
180 28 0 262 $temp->{'type'} eq 'global' and $temp->{'intl_code'}
257 22 6 19 length $self->{'intl_code'} and not $self->{'_intl_code_from_context'}
282 19 0 2 $str =~ /[a-zA-Z]+/ and $self->is_vanity
363 8 3 3 not length $self->{'intl_code'} and my $code = $self->_extract_intl_code($str)
431 0 0 0 $err and length $err
455 0 11 0 length $val and not $val =~ /^[$PHONEDIGIT]+$/
472 0 10 0 length $val and not $val =~ /^[$PHONEDIGIT]+$/
514 0 0 0 length $val and not $val =~ /^$URIC$/
585 0 0 0 length $val and not $val =~ /^$TEL_SUBSCRIBER$/
671 0 0 0 ref $other and $other->isa('URI::tel')

or 2 conditions

line l !l condition
604 271 0 shift @_ || (return '')

or 3 conditions

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