blib/lib/App/git/ship.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 36 | 30.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
91 | 0 | 0 | 0 | -e $file and not $args->{'force'} |
98 | 0 | 0 | 0 | $file and -r $file |
129 | 0 | 0 | 0 | @_ and ref $self eq 'App::git::ship' |
133 | 0 | 0 | 0 | -d '.git' and @_ |
line | l | !l | condition |
---|---|---|---|
12 | 0 | 11 | $ENV{'GIT_SHIP_DEBUG'} || 0 |
13 | 9 | 2 | $ENV{'GIT_SHIP_SILENT'} || 0 |
44 | 1 | 2 | $ENV{$env_key} // '' |
172 | 1 | 2 | $ENV{'GIT_SHIP_CONFIG'} || '.ship.conf' |
195 | 0 | 0 | shift() || '%an <%ae>' |
230 | 0 | 1 | $self->config('username') || $ENV{'GITHUB_USERNAME'} || scalar getpwuid $< |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
31 | 14 | 3 | 0 | $self->{'config'} ||= $self->_build_config |
208 | 0 | 0 | 0 | $ENV{'GIT_SHIP_BUGTRACKER'} || join('/', (shift())->config('homepage'), 'issues') =~ s[(\w)//][$1/]ru |
212 | 0 | 0 | 0 | $ENV{'GIT_SHIP_HOMEPAGE'} || (shift())->config('repository') =~ s/\.git$//ru |
230 | 0 | 1 | 0 | $repository ||= lc sprintf('https://github.com/%s/%s', $self->config('username') || $ENV{'GITHUB_USERNAME'} || scalar getpwuid $<, $self->config('project_name') =~ s/::/-/gru) |