| 1 | package Net::FSP::File; | ||||||||||||
| 2 | |||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 2 | ▶ | use Net::FSP::Entry; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 2 | ▶ | use base 'Net::FSP::Entry'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 2 | our $VERSION = $Net::FSP::VERSION; | |||||||||||
| 8 | |||||||||||||
| 9 | 0 | ▶ | sub download { | ||||||||||
|
Subroutine
download: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 10 | 0 | my ($self, $sink) = @_; | |||||||||||
| 11 | 0 | ▶ | $sink = $self->{name} if not defined $sink; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 12 | 0 | $self->{fsp}->download_file($self->{name}, $sink); | |||||||||||
| 13 | 0 | return; | |||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 0 | ▶ | sub grab { | ||||||||||
|
Subroutine
grab: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 17 | 0 | my ($self, $sink) = @_; | |||||||||||
| 18 | 0 | ▶ | $sink = $self->{name} if not defined $sink; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 19 | 0 | $self->{fsp}->grab_file($self->{name}, $sink); | |||||||||||
| 20 | 0 | return; | |||||||||||
| 21 | } | ||||||||||||
| 22 | |||||||||||||
| 23 | 0 | ▶ | sub upload { | ||||||||||
|
Subroutine
upload: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 24 | 0 | my ($self, $source) = @_; | |||||||||||
| 25 | 0 | $self->{fsp}->grab_file($self->{name}, $source); | |||||||||||
| 26 | 0 | return; | |||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 0 | ▶ | sub remove { | ||||||||||
|
Subroutine
remove: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 30 | 0 | my ($self) = @_; | |||||||||||
| 31 | 0 | $self->{fsp}->delete_file($self->{name}); | |||||||||||
| 32 | 0 | return; | |||||||||||
| 33 | } | ||||||||||||
| 34 | |||||||||||||
| 35 | 0 | ▶ | sub accept { | ||||||||||
|
Subroutine
accept: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 36 | 0 | my ($self, $visitor) = @_; | |||||||||||
| 37 | 0 | $visitor->($self); | |||||||||||
| 38 | 0 | return; | |||||||||||
| 39 | } | ||||||||||||
| 40 | |||||||||||||
| 41 | 0 | ▶ | sub open { | ||||||||||
|
Subroutine
open: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 42 | 0 | my ($self, $mode) = @_; | |||||||||||
| 43 | 0 | ▶ | $mode ||= '<'; | ||||||||||
|
Condition0%0/2
$mode ||= "<"
MC/DC0%0/1
$mode ||= "<"
$mode
Truth table0%0/2
A
A= $mode
| |||||||||||||
| 44 | 0 | return $self->{fsp}->open_file($self->name, $mode); | |||||||||||
| 45 | } | ||||||||||||
| 46 | |||||||||||||
| 47 | 2 | 1; | |||||||||||
| 48 | |||||||||||||
| 49 | __END__ | ||||||||||||