blib/lib/WebService/Bitly.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 50 | 64 | 78.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
33 | 0 | 14 | 0 | defined $args{'user_name'} and defined $args{'user_api_key'} |
90 | 0 | 1 | 0 | defined $end_user_name and defined $end_user_api_key |
line | l | !l | condition |
---|---|---|---|
37 | 1 | 13 | $args{'version'} ||= 'v3' |
42 | 0 | 14 | $args{'base_url'} ||= 'http://api.bit.ly/' |
64 | 1 | 1 | $args{'short_urls'} || undef |
65 | 1 | 1 | $args{'hashes'} || undef |
102 | 1 | 1 | $args{'short_urls'} || undef |
103 | 1 | 1 | $args{'hashes'} || undef |
117 | 2 | 1 | $args{'short_url'} || '' |
118 | 1 | 2 | $args{'hash'} || '' |
133 | 1 | 2 | $args{'short_url'} || '' |
134 | 2 | 1 | $args{'hash'} || '' |
149 | 1 | 1 | $args{'short_urls'} || undef |
150 | 0 | 2 | $args{'hashes'} || undef |
164 | 1 | 1 | $args{'short_urls'} || undef |
165 | 1 | 1 | $args{'hashes'} || undef |
203 | 1 | 1 | $args{'short_urls'} || undef |
204 | 1 | 1 | $args{'hashes'} || undef |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
38 | 13 | 1 | 0 | $args{'ua'} ||= 'LWP::UserAgent'->new('env_proxy', 1, 'timeout', 30) |
66 | 1 | 0 | 1 | $short_urls or $hashes |
104 | 1 | 0 | 1 | $short_urls or $hashes |
151 | 1 | 0 | 1 | $short_urls or $hashes |
166 | 1 | 0 | 1 | $short_urls or $hashes |
205 | 1 | 0 | 1 | $short_urls or $hashes |
line | l&&r | l&&!r | !l&&r | !l&&!r | condition |
---|---|---|---|---|---|
120 | 1 | 1 | 0 | 1 | $short_url xor $hash |
136 | 1 | 0 | 1 | 1 | $short_url xor $hash |