Branch Coverage

blib/lib/Sakai/Nakamura/Content.pm
Criterion Covered Total %
branch 22 68 32.3


line true false branch
56 0 0 defined $remote_dest ? :
68 0 0 $success ? :
85 0 1 unless GetOptions $content_config, 'auth=s', 'help|?', 'log|L=s', 'man|M', 'pass|p=s', 'threads|t=s', 'url|U=s', 'user|u=s', 'verbose|v+', 'add|a', 'additions|A=s', 'copy|c', 'delete|d', 'exists|e', 'filename|n=s', 'local|l=s', 'move|m', 'property|P=s', 'remote|r=s', 'remote-source|S=s', 'replace|R', 'view|V', 'view-copyright=s', 'view-description=s', 'view-tags=s', 'view-title=s', 'view-visibility=s'
177 1 1 unless (defined $config)
187 1 0 defined $$nakamura{'Authn'} ? :
192 0 1 if ($$nakamura{'Help'}) { }
0 1 elsif ($$nakamura{'Man'}) { }
0 1 elsif (defined ${$$config{'additions'};}) { }
201 0 0 if ($pid) { }
0 0 elsif ($pid == 0) { }
221 0 1 if (defined ${$$config{'local'};}) { }
0 1 elsif (defined ${$$config{'view-copyright'};}) { }
0 1 elsif (defined ${$$config{'view-description'};}) { }
0 1 elsif (defined ${$$config{'view-tags'};}) { }
0 1 elsif (defined ${$$config{'view-title'};}) { }
0 1 elsif (defined ${$$config{'view-visibility'};}) { }
295 0 0 unless ($success)
302 0 0 unless (defined $content_path)
308 0 0 if (!$content_filename =~ /.*\..*/x)
324 0 0 unless ($success)
338 0 0 unless ($success)
353 0 5 defined $fork_id ? :
354 0 5 defined $number_of_forks ? :
356 2 3 unless (defined $file)
359 2 1 if (open my $input, '<', $file) { }
361 1 0 if ($fork_id == $count++ % $number_of_forks)
363 1 0 unless $_ =~ /^\s*(\S.*?)\s*$/msx
370 0 1 unless close $input
384 0 0 defined $remote_dest ? :
390 0 0 defined $missing_ok ? :
392 0 0 unless ($json_success)
399 0 0 if (ref $attribute eq 'ARRAY')
405 0 0 if (not defined $attribute and $missing_ok)
409 0 0 $success ? :