blib/lib/WebService/Fake.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 50 | 46.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
21 | 1 | 0 | 0 | $custom and not &blessed($custom) |
line | l | !l | condition |
---|---|---|---|
17 | 1 | 0 | $ENV{'WEBSERVICE_FAKE'} // 'webservice-fake.yml' |
24 | 0 | 0 | $custom->{'include'} // [] |
31 | 0 | 1 | $config->{'defaults'}{'template_start'} //= '[%' |
32 | 0 | 1 | $config->{'defaults'}{'template_stop'} //= '%]' |
33 | 0 | 1 | $config->{'defaults'}{'code'} //= 200 |
34 | 1 | 0 | $config->{'v'} //= {} |
54 | 0 | 1 | $config->{'secrets'} // ['Fake off!'] |
131 | 8 | 0 | $defaults->{'headers'} // [] |
132 | 4 | 4 | $spec->{'headers'} // [] |
146 | 0 | 20 | $hef{$name} //= [] |
152 | 3 | 5 | $hef{'Content-Type'} //= [sub { return 'application/json'; } ] |
168 | 8 | 0 | $spec->{'body'} // '[%%]' |
182 | 0 | 8 | $spec->{'trim'} //= '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
117 | 3 | 9 | 0 | $spec->{'code'} // $defaults->{'code'} |
126 | 0 | 8 | 0 | $spec->{'template_start'} // $defaults->{'template_start'} |
127 | 0 | 8 | 0 | $spec->{'template_stop'} // $defaults->{'template_stop'} |
169 | 0 | 8 | 0 | $spec->{'template_start'} // $defaults->{'template_start'} |
170 | 0 | 8 | 0 | $spec->{'template_stop'} // $defaults->{'template_stop'} |
206 | 0 | 4 | 0 | $spec->{'template_start'} // $defaults->{'template_start'} |
207 | 0 | 4 | 0 | $spec->{'template_stop'} // $defaults->{'template_stop'} |