Condition Coverage

blib/lib/Switch/Perlish/Smatch.pm
Criterion Covered Total %
condition 23 29 79.3


and 2 conditions

line l !l condition
59 354 12 $_ eq 'REF' and $_ = 'SCALAR'

and 3 conditions

line !l l&&!r l&&r condition
42 2 2 25 _is_num($a) and _is_num($b)
53 152 16 15 blessed $t and not $self->is_registered($t_type)
55 154 13 16 blessed $m and not $self->is_registered($t_type, $m_type)
90 708 0 1 $self->is_registered($t_type, $m_type) and warnings::enabled()
95 0 708 1 exists $comp{'reversible'} and $comp{'reversible'}
126 15 0 20 exists $Switch::Perlish::Smatch::REGISTER{$t_type} && defined $Switch::Perlish::Smatch::REGISTER{$t_type}
128 631 0 210 exists $Switch::Perlish::Smatch::REGISTER{$t_type} && defined $Switch::Perlish::Smatch::REGISTER{$t_type} && exists $Switch::Perlish::Smatch::REGISTER{$t_type}{$m_type} && defined $Switch::Perlish::Smatch::REGISTER{$t_type}{$m_type}

or 3 conditions

line l !l&&r !l&&!r condition
41 27 0 56 _is_num($a) or _is_num($b)
72 188 0 178 blessed $foo || ref $foo || (defined $foo ? 'VALUE' : 'UNDEF')