Branch Coverage

/root/.cpan/build/Riji-v1.1.4-0/lib/Riji/CLI/Publish.pm
Criterion Covered Total %
branch 16 24 66.6


line true false branch
29 6 1 unless ($force)
31 0 6 if ($publish_branch ne $current_branch)
35 1 5 if (my $untracked = $repo->run(("ls-files", "--others", "--exclude-standard", "--"), $blog->entry_dir))
39 0 5 if (my $uncommited = $repo->run(("diff", "HEAD", "--name-only", "--"), $blog->entry_dir))
46 0 6 unless (mkdir $dir or $! == 17)
54 6 0 if $mount_path eq "/"
67 181 60 if $seen{$url->path}++
68 54 0 if $url->host
24 36 if $url->scheme and not eval { do { $url->host =~ /(?:localhost|$host_reg)/ if $url->host } }
78 36 0 if ($status eq 200)
82 36 0 if ($file and $file =~ /\.(?:js|css|html|xml)$/)
90 0 6 if ($mount_path)