File/State/Interface.pm

filter: Statementstmt 51.7% 15 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 4 / 10 Podpod 100% 6 / 6 totaltotal 55.5% 25 / 45 CC 1 SCAR 4.1
CC
1
Cov
52%
new
2.0
initialize
2.0
advance_marker
2.0
CRAP 1.5
« File/State/IPCShareable.pm ↑ Summary File/Source/Interface.pm »
1 package Iterator::File::State::Interface;
2  
3 ## $Id: Interface.pm,v 1.5 2008/06/17 06:00:28 wdr1 Exp $
4  
5 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Iterator::File::Utility;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 our @ISA = qw(Iterator::File::Utility);
12 1 our $VERSION = substr(q$Revision: 1.5 $, 10);
13  
14 1 our %default_config =
15 (
16 'update_frequency' => 1,
17 );
18  
19  
20  
21 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
22 0 my ($class, %config) = @_;
23  
24 0 %config = (%default_config, %config);
25 0 my $self = $class->SUPER::new( %config );
26 0 bless($self, $class);
27  
28 0 return $self;
29 }
30  
31  
32  
33 0 ▶sub initialize {
Subroutine initialize: not called CC=1 SCAR=6.9
Pod documented
34 0 my ($self) = @_;
35  
36 0 $self->{'marker'} = 0;
37 }
38  
39  
40  
41 0 ▶sub advance_marker {
Subroutine advance_marker: not called CC=1 SCAR=6.9
Pod documented
42 0 my ($self) = @_;
43  
44 0 return $self->set_marker( $self->marker() + 1 );
45 }
46  
47  
48  
49 0 ▶sub marker {
Subroutine marker: not called CC=1 SCAR=6.9
Pod documented
50 0 my $self = shift;
51  
52 0 return $self->{'marker'};
53 }
54  
55  
56  
57 0 ▶sub set_marker {
Subroutine set_marker: not called CC=1 SCAR=6.9
Pod documented
58 0 my $self = shift;
59 0 my $num = shift;
60  
61 0 $self->{'marker'} = $num;
62 }
63  
64  
65  
66 0 ▶sub finish {}
Subroutine finish: not called CC=1 SCAR=0.0
Pod documented
67  
68  
69 1 1;
70 __END__
« File/State/IPCShareable.pm ↑ Summary File/Source/Interface.pm »