MaTirelire/Modes.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 87.5% 21 / 24 CC 1 SCAR 1.5
CC
1
Cov
94%
meta_infos
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« MaTirelire/ExternalCurrencies.pm ↑ Summary
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::Modes;
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use Palm::BlockPack;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 ▶use Palm::MaTirelire::DBItemId;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 ▶use base qw(Palm::MaTirelire::DBItemId);
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 our $VERSION = '1.0';
22  
23  
24 # Each record
25 1 my $RECORD_BLOCK = Palm::BlockPack->new
26 (UInt32 => [
27 [ 'mode_id:5' => 0 ],
28 [ 'value_date:3' => 0 ],
29 [ 'first_val:6' => 0 ],
30 [ 'debit_date:5' => 0 ],
31 [ 'cheque_auto:1' => 0 ],
32 [ 'reserved:*' => 0 ],
33 ],
34  
35 'Z24' => [ 'only_in_account' => '' ],
36 'Z*' => [ 'name' => '' ],
37 );
38  
39  
40 sub import
41 1 ▶{
Subroutine import: called CC=1 SCAR=0.0
42 1 &Palm::PDB::RegisterPDBHandlers(__PACKAGE__, [ "MaT2", 'Mode' ]);
43 }
44  
45  
46 sub meta_infos ($)
47 0 ▶{
Subroutine meta_infos: not called CC=1 SCAR=6.9
Pod undocumented
48 0 return { name => "MaTi-Modes",
49 type => "Mode",
50 record_block => $RECORD_BLOCK,
51 id_field => 'mode_id',
52 unfiled_name => 'Unknown',
53 num => (1 << 5),
54 };
55 }
56  
57 1 1;
58 __END__
« MaTirelire/ExternalCurrencies.pm ↑ Summary