VCS/File.pm

filter: Statementstmt 33.3% 8 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 2 / 8 Podpod 100% 6 / 6 totaltotal 42.1% 16 / 38 CC 1 SCAR 4.1
CC
1
Cov
33%
new
2.0
init
2.0
url
2.0
CRAP 1.5
« VCS/Cvs.pm ↑ Summary VCS/Version.pm »
1 package VCS::File;
2  
3 1 my $PREFIX = 'VCS';
4  
5 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use File::Basename;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
9 0 my $container_classtype = shift;
10 0 $container_classtype =~ s#^$PREFIX##;
11 0 my ($hostname, $impl_class, $path, $query) = VCS->parse_url(@_);
12 0 VCS->class_load($impl_class);
13 0 my $this_class = "$impl_class$container_classtype";
14 0 return $this_class->new(@_);
15 }
16  
17 0 ▶sub init {
Subroutine init: not called CC=1 SCAR=6.9
Pod documented
18 0 my ($class, $url) = @_;
19 0 my ($hostname, $impl_class, $path, $query) = VCS->parse_url($url);
20 0 my $self = {};
21 0 $self->{URL} = $url;
22 0 $self->{PATH} = $path;
23 0 bless $self, $class;
24 }
25  
26 0 ▶sub url {
Subroutine url: not called CC=1 SCAR=6.9
Pod documented
27 0 my $self = shift;
28 0 $self->{URL};
29 }
30  
31 0 ▶sub tags {
Subroutine tags: not called CC=1 SCAR=0.0
Pod documented
32 }
33  
34 0 ▶sub versions {
Subroutine versions: not called CC=1 SCAR=0.0
Pod documented
35 }
36  
37 0 ▶sub path {
Subroutine path: not called CC=1 SCAR=6.9
Pod documented
38 0 my $self = shift;
39 0 $self->{PATH};
40 }
41  
42 1 1;
43  
44 __END__
« VCS/Cvs.pm ↑ Summary VCS/Version.pm »