Minilla/Release/CheckOrigin.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 68.0% 17 / 25 CC 2 SCAR 9.8
CC
2
Cov
68%
run
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Minilla/CLI/Help.pm ↑ Summary Minilla/Release/CheckUntrackedFiles.pm »
1 package Minilla::Release::CheckOrigin;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Minilla::Logger;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub run {
Subroutine run: not called CC=2 SCAR=17.9
Pod undocumented
8 0 my ($self, $project, $opts) = @_;
9  
10 0 my $remotes = `git remote`;
11 0 ▶ if ($remotes !~ /^origin$/m) {
Branch: 1 branch
BranchTrueFalseTotal
if (not $remotes =~ /^origin$/m) 0 0 0
12 0 errorf("No git remote named origin.\n");
13 }
14 }
15  
16 1 1;
17  
« Minilla/CLI/Help.pm ↑ Summary Minilla/Release/CheckUntrackedFiles.pm »