Branch Coverage

blib/lib/Result/Trait.pm
Criterion Covered Total %
branch 82 120 68.3


line true false branch
87 16 1 if &Scalar::Util::blessed($_[0]) and $_[0]->can("DOES")
98 6 0 if &Scalar::Util::blessed($_[0]) and $_[0]->can("check")
109 2 1 if &Scalar::Util::blessed($_[0]) and $_[0]->can("DOES")
163 0 4 unless @_ == 2 and __IS_RESULT__($res)
166 2 2 if $self->is_err
209 0 3 unless @_ == 2 and __IS_CODE__($op)
212 1 2 if $self->is_err
216 0 2 unless __IS_RESULT__($res)
233 0 2 unless @_ == 1
238 1 1 if $self->is_err
257 0 2 unless @_ == 2
260 1 1 if $self->is_ok
284 0 2 unless @_ == 2
287 1 1 if $self->is_err
312 0 4 unless @_ == 1
315 3 1 if ($self->is_ok)
317 1 2 unless __IS_RESULT__($inner)
343 0 2 unless @_ == 2 and __IS_CODE__($f)
346 1 1 if ($self->is_ok)
374 0 2 unless @_ == 2 and __IS_CODE__($f)
377 1 1 if ($self->is_err)
452 0 2 unless @_ == 2 and __IS_CODE__($op)
455 1 1 if ($self->is_err)
480 0 2 unless @_ == 2 and __IS_CODE__($op)
483 1 1 if ($self->is_ok)
530 0 2 unless @_ >= 1 and __IS_CODE__($f)
533 1 1 if ($self->is_err)
555 0 2 unless @_ == 3 and __IS_CODE__($default) and __IS_CODE__($f)
558 1 1 if ($self->is_err)
608 0 4 unless exists $d{'ok'} and exists $d{'err'}
610 1 3 if ($self->is_ok)
612 0 1 unless __IS_CODE__($d)
620 2 1 if (__IS_FRIENDLY_EXCEPTION__($peek))
624 0 3 unless __IS_CODE__($d)
642 0 2 unless @_ == 1
647 1 1 if $self->is_ok
681 0 4 unless @_ == 2 and __IS_RESULT__($res)
684 2 2 if ($self->is_err)
723 0 8 unless @_ == 2 and __IS_CODE__($op)
726 3 5 if ($self->is_err)
729 0 3 unless __IS_RESULT__($res)
763 0 2 unless @_ == 2 and __IS_TYPE__($type)
766 0 2 if $self->is_err
769 1 1 if $type->check($peek)
801 0 2 unless @_ >= 1 and __IS_TYPE__($type)
804 0 2 if $self->is_err
807 1 1 if $type->check($peek)
831 0 2 unless @_ == 3 and __IS_TYPE__($type) and __IS_CODE__($op)
834 0 2 if $self->is_err
837 1 1 if $type->check($peek)
841 0 1 unless __IS_RESULT__($res)
859 0 0 unless @_ == 1
862 0 0 if ($self->is_ok) { }
884 0 0 unless @_ == 1
887 0 0 if ($self->is_ok) { }
909 1 1 if ($self->is_err)
932 0 2 unless @_ == 2 and __IS_CODE__($op)
935 1 1 if ($self->is_err)
959 0 127 if __IN_GLOBAL_DESTRUCTION__()
960 124 3 if $self->_handled