Branch Coverage

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


line true false branch
88 16 1 if &Scalar::Util::blessed($_[0]) and $_[0]->can("DOES")
99 6 0 if &Scalar::Util::blessed($_[0]) and $_[0]->can("check")
110 2 1 if &Scalar::Util::blessed($_[0]) and $_[0]->can("DOES")
164 0 4 unless @_ == 2 and __IS_RESULT__($res)
167 2 2 if $self->is_err
210 0 3 unless @_ == 2 and __IS_CODE__($op)
213 1 2 if $self->is_err
217 0 2 unless __IS_RESULT__($res)
234 0 2 unless @_ == 1
239 1 1 if $self->is_err
258 0 2 unless @_ == 2
261 1 1 if $self->is_ok
285 0 2 unless @_ == 2
288 1 1 if $self->is_err
313 0 4 unless @_ == 1
316 3 1 if ($self->is_ok)
318 1 2 unless __IS_RESULT__($inner)
344 0 2 unless @_ == 2 and __IS_CODE__($f)
347 1 1 if ($self->is_ok)
375 0 2 unless @_ == 2 and __IS_CODE__($f)
378 1 1 if ($self->is_err)
453 0 2 unless @_ == 2 and __IS_CODE__($op)
456 1 1 if ($self->is_err)
481 0 2 unless @_ == 2 and __IS_CODE__($op)
484 1 1 if ($self->is_ok)
531 0 2 unless @_ >= 1 and __IS_CODE__($f)
534 1 1 if ($self->is_err)
556 0 2 unless @_ == 3 and __IS_CODE__($default) and __IS_CODE__($f)
559 1 1 if ($self->is_err)
609 0 4 unless exists $d{'ok'} and exists $d{'err'}
611 1 3 if ($self->is_ok)
613 0 1 unless __IS_CODE__($d)
621 2 1 if (__IS_FRIENDLY_EXCEPTION__($peek))
625 0 3 unless __IS_CODE__($d)
643 0 2 unless @_ == 1
648 1 1 if $self->is_ok
682 0 4 unless @_ == 2 and __IS_RESULT__($res)
685 2 2 if ($self->is_err)
724 0 8 unless @_ == 2 and __IS_CODE__($op)
727 3 5 if ($self->is_err)
730 0 3 unless __IS_RESULT__($res)
764 0 2 unless @_ == 2 and __IS_TYPE__($type)
767 0 2 if $self->is_err
770 1 1 if $type->check($peek)
802 0 2 unless @_ >= 1 and __IS_TYPE__($type)
805 0 2 if $self->is_err
808 1 1 if $type->check($peek)
832 0 2 unless @_ == 3 and __IS_TYPE__($type) and __IS_CODE__($op)
835 0 2 if $self->is_err
838 1 1 if $type->check($peek)
842 0 1 unless __IS_RESULT__($res)
860 0 0 unless @_ == 1
863 0 0 if ($self->is_ok) { }
885 0 0 unless @_ == 1
888 0 0 if ($self->is_ok) { }
910 1 1 if ($self->is_err)
933 0 2 unless @_ == 2 and __IS_CODE__($op)
936 1 1 if ($self->is_err)
960 0 127 if __IN_GLOBAL_DESTRUCTION__()
961 124 3 if $self->_handled