File Coverage

blib/lib/P4/C4.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             # VHier.pm -- Test running utilities
2             # $Revision: 709 $$Date: 2005-05-03 17:32:07 -0400 (Tue, 03 May 2005) $$Author: wsnyder $
3             ######################################################################
4             #
5             # Copyright 2002-2005 by Wilson Snyder. This program is free software;
6             # you can redistribute it and/or modify it under the terms of either the GNU
7             # General Public License or the Perl Artistic License.
8             #
9             # This program is distributed in the hope that it will be useful,
10             # but WITHOUT ANY WARRANTY; without even the implied warranty of
11             # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12             # GNU General Public License for more details.
13             #
14             ######################################################################
15              
16             package P4::C4;
17             require 5.006_001;
18 3     3   96484 use File::Find;
  3         7  
  3         228  
19              
20 3     3   15 use Carp;
  3         6  
  3         160  
21 3     3   4767 use P4::Client;
  0            
  0            
22             # Our stuff
23             use P4::Getopt;
24             use P4::C4::Cache;
25             use P4::C4::ChangeMax;
26             use P4::C4::Client;
27             use P4::C4::Diff;
28             use P4::C4::File;
29             use P4::C4::Fstat;
30             use P4::C4::Ignore;
31             use P4::C4::Info;
32             use P4::C4::Path;
33             use P4::C4::Submit;
34             use P4::C4::Sync;
35             use P4::C4::UI;
36             use P4::C4::Unknown;
37             use P4::C4::Update;
38             use P4::C4::User;
39              
40             use strict;
41             use vars qw($Debug);
42              
43             our @ISA = qw (P4::Client);
44              
45             ######################################################################
46             #### Configuration Section
47              
48             our $VERSION = '2.041';
49              
50             ######################################################################
51             #### Creators
52              
53             sub new {
54             my $class = shift;
55             my %params = (_files=>{},
56             @_);
57             my $self = new P4::Client;
58             bless ($self, $class);
59              
60             while ((my $key,my $val) = each %params) {
61             $self->{$key} = $val;
62             }
63             if ($self->{opt}) {
64             $self->{opt}->setClientOpt($self);
65             }
66             return $self;
67             }
68              
69             ######################################################################
70             #### Accessors
71              
72             sub files {
73             return $_[0]->{_files};
74             }
75              
76             ######################################################################
77             #### Package return
78             1;
79             =pod
80              
81             =head1 NAME
82              
83             P4::C4 - CVS Like wrapper for Perforce
84              
85             =head1 SYNOPSIS
86              
87             use P4::C4;
88              
89             =head1 DESCRIPTION
90              
91             P4::C4 is a derived class of C4::Client. The various P4::C4::... classes
92             add member functions to this class to perform various functions.
93              
94             =head1 FUNCTIONS
95              
96             =over 4
97              
98             =item $self->files
99              
100             Return a hash of file structures, where the key is the name of the
101             file. Used by P4::C4::Files and other functions.
102              
103             =back
104              
105             =head1 DISTRIBUTION
106              
107             The latest version is available from CPAN and from L.
108              
109             Copyright 2002-2005 by Wilson Snyder. This package is free software; you
110             can redistribute it and/or modify it under the terms of either the GNU
111             Lesser General Public License or the Perl Artistic License.
112              
113             =head1 AUTHORS
114              
115             Wilson Snyder
116              
117             =head1 SEE ALSO
118              
119             L, L, L
120              
121             L,
122             L,
123              
124             L,
125             L,
126             L,
127             L,
128             L,
129             L,
130             L,
131             L,
132             L,
133             L,
134             L,
135             L,
136             L
137              
138             =cut
139             ######################################################################