Branch Coverage

blib/lib/WWW/Offline/Toolkit.pm
Criterion Covered Total %
branch 0 100 0.0


line true false branch
35 0 0 if exists $$self{$_}
54 0 0 if $File::Find::name =~ /\.txt$/
166 0 0 unless (-d $PostsDirectory)
167 0 0 unless mkdir $PostsDirectory
191 0 0 unless (-d $CategoriesDirectory)
192 0 0 unless mkdir $CategoriesDirectory
205 0 0 if $$post{'category'}{'_id_'} eq $$cat{'_id_'} or $self->is_in_category($cat, $$post{'category'})
221 0 0 scalar @posts ? :
0 0 length $albums ? :
247 0 0 if ref $value eq 'HASH' and exists $$value{'_ref_'}
262 0 0 if (ref $value eq 'ARRAY') { }
0 0 elsif (ref $value eq 'HASH' and exists $$value{'_ref_'}) { }
265 0 0 if (ref $$value[$num] eq 'HASH' and exists $$value[$num]{'_ref_'})
282 0 0 defined $num ? :
284 0 0 if (defined $num) { }
285 0 0 unless exists $$self{'Objects'}{$$value{'_ref_'}}
289 0 0 unless exists $$self{'Objects'}{$$value{'_ref_'}}
304 0 0 if ($$album{'category'}{'_id_'} eq $$cat{'_id_'} or $self->is_in_category($cat, $$album{'category'}))
310 0 0 length $s ? :
325 0 0 if ($first) { }
351 0 0 defined $order_by && defined $$a{$order_by} && defined $$b{$order_by} ? :
357 0 0 if ($$object{'_type_'} eq $type)
370 0 0 defined $post ? :
371 0 0 $home_link ne $last_link ? :
0 0 defined $post && $post_link ne $last_link ? :
391 0 0 if (exists $$top_category{'subcategories'})
394 0 0 if ($self->is_in_category($item, $current_category) or $$item{'_id_'} eq $$current_category{'_id_'})
397 0 0 exists $$item{'targetpost'} ? :
420 0 0 if (exists $$top_category{'subcategories'})
422 0 0 scalar @subs ? :
429 0 0 $current ? :
0 0 exists $$item{'targetpost'} ? :
441 0 0 scalar @subs ? :
451 0 0 if (exists $$cat{'subcategories'}) { }
456 0 0 if ($$cat{'_id_'} eq $$current_cat{'_id_'}) { }
485 0 0 length $$sound{'artist'} ? :
511 0 0 unless (ref $value)
520 0 0 if (exists $$self{'Objects'}{$id})
523 0 0 if ($$object{'_type_'} eq 'album') { }
0 0 elsif ($$object{'_type_'} eq 'category') { }
0 0 elsif ($$object{'_type_'} eq 'post') { }
0 0 elsif ($$object{'_type_'} eq 'image') { }
0 0 elsif ($$object{'_type_'} eq 'sound') { }
551 0 0 if (ref $$astobj[0] eq 'ARRAY') { }
559 0 0 if ($asttype eq 'object') { }
0 0 elsif ($asttype eq 'string') { }
0 0 elsif ($asttype eq 'ref') { }
564 0 0 if exists $$objects{$id}
584 0 0 unless open FILE, "<$filename"
594 0 0 unless open FILE, ">$filename"