Lock/Simple.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 3 totaltotal 88.0% 22 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
make
1.0
CRAP 1.0
« Lock.pm ↑ Summary
1 ;# $Id
2 ;#
3 ;# @COPYRIGHT@
4 ;#
5 ;# $Log: Simple.pm,v $
6 ;# Revision 0.3 2007/09/28 19:18:27 jv
7 ;# Track where lock was issued in the code.
8 ;#
9 ;# Revision 0.2.1.1 2000/01/04 21:16:35 ram
10 ;# patch1: track where lock was issued in the code
11 ;#
12 ;# Revision 0.2 1999/12/07 20:51:04 ram
13 ;# Baseline for 0.2 release.
14 ;#
15  
16 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 ########################################################################
19 package LockFile::Lock::Simple;
20  
21 4 require LockFile::Lock;
22  
23 4 ▶use vars qw(@ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 4 @ISA = qw(LockFile::Lock);
26  
27 #
28 # ->make
29 #
30 # Creation routine
31 #
32 # Attributes:
33 #
34 # scheme the LockFile::* object that created the lock
35 # file the locked file
36 # format the format used to create the lockfile
37 # filename where lock was taken
38 # line line in filename where lock was taken
39 #
40 4 ▶sub make {
Subroutine make: called CC=1 SCAR=0.0
Pod undocumented
41 4 my $self = bless {}, shift;
42 4 my ($scheme, $file, $format, $filename, $line) = @_;
43 4 $self->{'file'} = $file;
44 4 $self->{'format'} = $format;
45 4 $self->_lock_init($scheme, $filename, $line);
46 4 return $self;
47 }
48  
49 #
50 # Attribute access
51 #
52  
53 4 ▶sub file { $_[0]->{'file'} }
Subroutine file: called CC=1 SCAR=0.0
Pod undocumented
54 4 ▶sub format { $_[0]->{'format'} }
Subroutine format: called CC=1 SCAR=0.0
Pod undocumented
55  
56 4 1;
57  
« Lock.pm ↑ Summary