Branch Coverage

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


line true false branch
27 0 82 @_ == 1 ? :
30 82 0 if (my(@makers) = map(scalar(&blessed($_) and $_->can("new_union")), @types))
32 1 81 if (ref $first_maker)
34 1 0 if ($all_same)
46 81 84 @_ == 1 ? :
49 1 164 if exists $opts{'parent'}
52 1 163 if exists $opts{'constraint'}
55 1 162 if exists $opts{'inlined'}
57 1 161 unless exists $opts{'type_constraints'}
60 13 321 $_->isa('Type::Tiny::Union') ? :
65 161 0 ref $opts{'type_constraints'} eq 'ARRAY' ? :
73 207 146 defined $known ? :
76 58 103 if (@known == @constraints)
81 58 0 if $xsub
86 62 99 if grep $_->has_coercion, @$self
128 101 171 unless (exists $self->{'xs_sub'})
134 126 95 defined $known ? :
137 25 76 if (@known == @constraints)
147 34 238 if $Type::Tiny::AvoidCallbacks
150 36 202 if $self->{'xs_sub'}
181 38 111 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)