Branch Coverage

blib/lib/Elasticsearch/Error.pm
Criterion Covered Total %
branch 17 26 65.3


line true false branch
39 28 84 if ref $type
43 0 84 unless defined $msg
45 0 84 if $type eq 'Internal'
64 97 67 if $self->isa("Elasticsearch::Error::$_")
76 69 96 unless ($$self{'msg'})
83 54 15 if ($$self{'vars'})
88 0 69 if (@$stack > 1)
102 0 0 if $swap
114 25 139 if ($caller[0] eq 'Try::Tiny' or $caller[0] eq 'main')
115 0 25 if $caller[3] eq '(eval)'
116 0 25 if ($caller[3] =~ /^(.+)::__ANON__\[(.+):(\d+)\]$/)
121 82 0 if $caller[0] =~ /^Elasticsearch/ and $DEBUG < 2 || $caller[3] eq 'Try::Tiny::try'
124 82 0 unless $DEBUG > 1