Branch Coverage

blib/lib/WebService/Fake.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
21 0 1 if ($custom and not &blessed($custom))
22 0 0 unless ref $custom
28 0 1 if defined $custom
38 0 0 if (ref $_)
62 5 2 exists $spec->{'method'} ? :
1 7 exists $spec->{'methods'} ? :
63 6 2 if @methods
93 2 10 unless (length $body)
94 0 2 if ($spec->{'on_empty'})
103 0 2 if $spec->{'not_found_on_empty'}
105 5 7 if $body_wrapper
187 0 8 if $trim eq 'lines'
192 0 8 if $trim eq 'ends'
203 3 0 exists $defaults->{'body_wrapper'} ? :
5 3 exists $spec->{'body_wrapper'} ? :
204 4 4 unless defined $wrapper