| 1 | package Punk::Upload; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | 350 | ▶ | use 5.010; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | 350 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | 350 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | 350 | ▶ | use Carp (); | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | 350 | ▶ | use Punk (); | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 350 | our $VERSION = '0.70'; | |||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 1 | ▶ | sub fh { | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
fh: called CC=4 SCAR=19.7
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | 0 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
fh: not called CC=4 SCAR=19.7
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | 0 | my $path = $self->path; | |||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | # uncoverable branch true | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | # uncoverable condition left | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | # uncoverable condition right | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | 0 | ▶ | return undef unless defined $path && length $path; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition50%1/6
defined $path and length $path
defined $path and length $path
MC/DC100%0/2
defined $path and length $path
defined $path
length $path
MC/DC0%0/2
defined $path and length $path
defined $path
length $path
Truth table100%1/3
A and B
A= defined $pathB= length $path
Truth table0%0/3
A and B
A= defined $pathB= length $path
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | # uncoverable branch true | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | 0 | ▶ | open my $fh, '<:raw', $path | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | or Carp::croak("Punk::Upload: cannot open '$path': $!"); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | 0 | return $fh; | |||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | 350 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | __END__ | ||||||||||||||||||||||||||||||||||||||||||||||||||