Class/Repos.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 76.6% 23 / 30 CC 2 SCAR 8.9
CC
2
Cov
77%
init
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Class/Info.pm ↑ Summary
1 package SVN::Class::Repos;
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 Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Data::Dump;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use base qw( Rose::URI SVN::Class );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our $VERSION = '0.18';
9  
10 =head1 NAME
11  
12 SVN::Class::Repos - represents the repository of a Subversion workspace
13  
14 =head1 SYNOPSIS
15  
16 use SVN::Class;
17
18 my $file = svn_file( 'path/to/file' );
19 my $info = $file->info;
20 my $url = $info->url;
21 print "repository URL is $url\n";
22
23 =head1 DESCRIPTION
24  
25 SVN::Class::URL represents the source repository for a workspace.
26  
27 =head1 METHODS
28  
29 SVN::Class::URL inherits from Rose::URI and SVN::Class.
30  
31 =cut
32  
33 =head2 init
34  
35 Override the base Rose::URI method to set some default values in object.
36  
37 =cut
38  
39 0 ▶sub init {
Subroutine init: not called CC=2 SCAR=17.9
Pod documented
40 0 my $self = shift;
41 0 $self->SUPER::init(@_);
42 0 ▶ $self->{svn} ||= 'svn';
Condition0%0/2
$self->{"svn"} ||= "svn"
l!l
00
MC/DC0%0/1
$self->{"svn"} ||= "svn"
$self->{"svn"}
Truth table0%0/2
A
A= $self->{"svn"}
Aresult
11
00
43 }
44  
45 3 1;
46  
47 __END__
« Class/Info.pm ↑ Summary