MaTirelire/ExternalCurrencies.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/Descriptions.pm ↑ Summary MaTirelire/Modes.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::ExternalCurrencies;
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::DBItem;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 ▶use base qw(Palm::MaTirelire::DBItem);
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 ('N' => [ 'integer_part' => 1 ],
27 'N' => [ 'decimal_part' => 0 ],
28 'N' => [ 'decimal_factor' => 1 ],
29 'N' => [ 'euros' => 1 ],
30 'Z4' => [ 'iso4217' => '???' ],
31 );
32  
33  
34 sub import
35 1 ▶{
Subroutine import: called CC=1 SCAR=0.0
36 1 &Palm::PDB::RegisterPDBHandlers(__PACKAGE__, [ "MaT2", 'CurX' ]);
37 }
38  
39  
40 sub meta_infos ($)
41 0 ▶{
Subroutine meta_infos: not called CC=1 SCAR=6.9
Pod undocumented
42 0 return { name => "MaTi-ExternalCurrencies",
43 type => "CurX",
44 record_block => $RECORD_BLOCK,
45 };
46 }
47  
48 1 1;
49 __END__
« MaTirelire/Descriptions.pm ↑ Summary MaTirelire/Modes.pm »