MaTirelire.pm

filter: Statementstmt 47.0% 8 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 52.3% 11 / 21 CC 1 SCAR 2.9
CC
1
Cov
47%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« MaTirelire/DBItem.pm ↑ Summary MaTirelire/Descriptions.pm »
1 =encoding iso-8859-1
2  
3 =cut
4  
5 #
6 # Copyright (C) 2005, Maxime Soulé
7 # You may distribute this file under the terms of the Artistic
8 # License, as specified in the README file.
9 #
10  
11 package Palm::MaTirelire;
12 1 ▶use Palm::Raw();
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use base qw(Palm::Raw);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 our $VERSION = '1.14';
17  
18 sub new
19 0 ▶{
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
20 0 my $classname = shift;
21 0 my $self = $classname->SUPER::new(@_);
22 # Create a generic PDB. No need to rebless it,
23 # though.
24  
25 0 $self->{creator} = "MaT2";
26 0 $self->{attributes}{resource} = 0;
27 # The PDB is not a resource database by
28 # default, but it's worth emphasizing,
29 # since MemoDB is explicitly not a PRC.
30 0 $self->{attributes}{Backup} = 1; # Always set the backup bit...
31  
32 # Have to define type and name in subclasses...
33  
34 # Give the PDB a blank AppInfo block
35 0 $self->{appinfo} = {};
36  
37 # Give the PDB a blank sort block
38 0 $self->{sort} = undef;
39  
40 # Give the PDB an empty list of records
41 0 $self->{records} = [];
42  
43 0 return $self;
44 }
45  
46 1 1;
47 __END__
« MaTirelire/DBItem.pm ↑ Summary MaTirelire/Descriptions.pm »