Branch Coverage

blib/lib/Type/Tiny/Union.pm
Criterion Covered Total %
branch 42 50 84.0


line true false branch
27 0 109 @_ == 1 ? :
30 109 0 if (my(@makers) = map(scalar(&blessed($_) and $_->can("new_union")), @types))
32 2 107 if (ref $first_maker)
34 2 0 if ($all_same)
46 107 98 @_ == 1 ? :
49 1 204 if exists $opts{'parent'}
52 1 203 if exists $opts{'constraint'}
55 1 202 if exists $opts{'inlined'}
57 1 201 unless exists $opts{'type_constraints'}
60 14 401 $_->isa('Type::Tiny::Union') ? :
65 201 0 ref $opts{'type_constraints'} eq 'ARRAY' ? :
73 274 161 defined $known ? :
76 88 113 if (@known == @constraints)
81 88 0 if $xsub
86 71 130 if grep $_->has_coercion, @$self
128 135 224 unless (exists $self->{'xs_sub'})
134 183 108 defined $known ? :
137 51 84 if (@known == @constraints)
147 43 316 if $Type::Tiny::AvoidCallbacks
150 86 230 if $self->{'xs_sub'}
181 65 153 unless grep((!$_->is_a_type_of($parent)), @rest)
190 3 4 if $type->check(@_)
198 0 1 unless defined $varname
200 0 1 if $self->check($value)
211 0 2 unless $_->validate_explain($value)