Branch Coverage

blib/lib/WebService/Bitly.pm
Criterion Covered Total %
branch 36 60 60.0


line true false branch
33 0 14 unless (defined $args{'user_name'} and defined $args{'user_api_key'})
49 1 2 unless (defined $url)
54 2 0 if $self->end_user_name
55 2 0 if $self->end_user_api_key
56 0 2 if $self->domain
66 1 0 unless ($short_urls or $hashes)
71 1 0 if $short_urls
72 1 0 if $hashes
90 0 1 unless (defined $end_user_name and defined $end_user_api_key)
104 1 0 unless ($short_urls or $hashes)
109 1 0 if $short_urls
110 1 0 if $hashes
120 2 1 unless ($short_url xor $hash)
125 1 0 if $short_url
126 0 1 if $hash
136 2 1 unless ($short_url xor $hash)
141 0 1 if $short_url
142 1 0 if $hash
151 1 0 unless ($short_urls or $hashes)
156 1 0 if $short_urls
157 0 1 if $hashes
166 1 0 unless ($short_urls or $hashes)
171 1 0 if $short_urls
172 1 0 if $hashes
179 1 1 unless ($domain)
191 1 1 unless ($urls)
205 1 0 unless ($short_urls or $hashes)
210 1 0 if $short_urls
211 1 0 if $hashes
225 1 11 unless ($response->is_success)