Branch Coverage

lib/Types/Standard/StrMatch.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
29 1 1 exists $values->{'of'} ? :
36 0 2 $type->has_coercion ? :
0 2 exists $values->{'where'} ? :
42 0 2 $INC{'Type/Registry.pm'} ? :
2 0 unless ref $caller or $caller eq "-lexical" or $globals->{'lexical'}
76 0 36 unless @_
81 1 35 unless &Types::Standard::is_RegexpRef($regexp)
85 5 30 if (@_ > 1)
87 1 4 unless Types::TypeTiny::is_TypeTiny($checker)
96 0 24 unless defined $value
97 0 24 if ref $value
103 30 0 if defined $value and not ref $value
104 4 30 $checker ? :
110 0 34 unless my $serialized_re = $regexp->$serialize_regexp
112 4 30 if ($checker) { }
113 1 3 unless $checker->can_be_inlined
117 1 23 if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/)
133 1 29 if ($regexp_string =~ /\A\(\?\^u?:\\A(\.+)\)\z/)
138 1 28 if ($regexp_string =~ /\A\(\?\^u?:\\A(\.+)\\z\)\z/)
145 6 171 if ($Type::Tiny::AvoidCallbacks and $serialized_re =~ /Types::Standard::StrMatch::expressions/)