Branch Coverage

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


line true false branch
27 0 83 @_ == 1 ? :
30 83 0 if (my(@makers) = map(scalar(builtin::blessed($_) and $_->can("new_union")), @types))
32 1 82 if (ref $first_maker)
34 1 0 if ($all_same)
46 82 88 @_ == 1 ? :
49 1 169 if exists $opts{'parent'}
52 1 168 if exists $opts{'constraint'}
55 1 167 if exists $opts{'inlined'}
57 1 166 unless exists $opts{'type_constraints'}
60 13 330 if ($_->isa(__PACKAGE__)) { }
65 166 0 ref $opts{'type_constraints'} eq 'ARRAY' ? :
73 216 146 defined $known ? :
76 63 103 if (@known == @constraints)
81 63 0 if $xsub
86 62 104 if grep $_->has_coercion, @$self
128 104 191 unless (exists $self->{'xs_sub'})
134 132 95 defined $known ? :
137 28 76 if (@known == @constraints)
147 40 255 if $Type::Tiny::AvoidCallbacks
150 53 202 if $self->{'xs_sub'}
181 43 117 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)