| 1 | package SVN::Class::Dir; | ||||||||||||||
| 2 | 3 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3 | 3 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | 3 | ▶ | use base qw( Path::Class::Dir SVN::Class ); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | 3 | ▶ | use SVN::Class::File; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 6 | |||||||||||||||
| 7 | 3 | our $VERSION = '0.18'; | |||||||||||||
| 8 | |||||||||||||||
| 9 | # override some Path::Class stuff to return SVN::Class objects instead | ||||||||||||||
| 10 | 0 | ▶ | sub file { | ||||||||||||
|
Subroutine
file: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||
| 11 | local $Path::Class::Foreign = $_[0]->{file_spec_class} | ||||||||||||||
| 12 | 0 | ▶ | if $_[0]->{file_spec_class}; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 13 | 0 | return SVN::Class::File->new(@_); | |||||||||||||
| 14 | } | ||||||||||||||
| 15 | |||||||||||||||
| 16 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||||
| 17 | 0 | my $self = Path::Class::Entity::new(shift); | |||||||||||||
| 18 | 0 | my $s = $self->_spec; | |||||||||||||
| 19 | |||||||||||||||
| 20 | 0 | ▶ | my $first = ( | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 21 | @_ == 0 ? $s->curdir | ||||||||||||||
| 22 | : $_[0] eq '' ? ( shift, $s->rootdir ) | ||||||||||||||
| 23 | : shift() | ||||||||||||||
| 24 | ); | ||||||||||||||
| 25 | |||||||||||||||
| 26 | 0 | ▶ | ( $self->{volume}, my $dirs ) | ||||||||||||
|
Condition0%0/2
$s->canonpath($first) || ''
MC/DC0%0/1
$s->canonpath($first) || ''
$s->canonpath($first)
Truth table0%0/2
A
A= $s->canonpath($first)
| |||||||||||||||
| 27 | = $s->splitpath( $s->canonpath($first) || '', 1 ); | ||||||||||||||
| 28 | 0 | $self->{dirs} = [ $s->splitdir( $s->catdir( $dirs, @_ ) ) ]; | |||||||||||||
| 29 | 0 | ▶ | $self->{svn} ||= 'svn'; | ||||||||||||
|
Condition0%0/2
$self->{"svn"} ||= "svn"
MC/DC0%0/1
$self->{"svn"} ||= "svn"
$self->{"svn"}
Truth table0%0/2
A
A= $self->{"svn"}
| |||||||||||||||
| 30 | 0 | return $self; | |||||||||||||
| 31 | } | ||||||||||||||
| 32 | |||||||||||||||
| 33 | 3 | 1; | |||||||||||||
| 34 | |||||||||||||||
| 35 | __END__ | ||||||||||||||