Database/Config.pm

filter: Statementstmt 55.8% 19 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 0.0% 0 / 5 totaltotal 48.9% 23 / 47 CC 1 SCAR 4.1
CC
1
Cov
56%
writeMain
2.0
appendMain
2.0
readMain
2.0
CRAP 1.5
« Database.pm ↑ Summary Database/DTD.pm »
1 package XML::Database::Config;
2
3 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6
7 1 require Exporter;
8 #use AutoLoader qw(AUTOLOAD);
9
10 1 our @ISA = qw(Exporter);
11
12 # Items to export into callers namespace by default. Note: do not export
13 # names by default without a very good reason. Use EXPORT_OK instead.
14 # Do not simply export all your public functions/methods/constants.
15
16 # This allows declaration use XML::Database::Config ':all';
17 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
18 # will save memory.
19 1 our %EXPORT_TAGS = ( 'all' => [ qw(
20
21 ) ] );
22
23 1 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
24
25 1 our @EXPORT = qw(
26
27 );
28 1 our $VERSION = '0.01';
29
30 # Preloaded methods go here.
31
32
33 sub new
34 1 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
35 1 my $self = shift;
36 1 my %args = (@_);
37 1 return bless \%args, $self;
38 }
39
40 sub writeMain
41 0 ▶{
Subroutine writeMain: not called CC=1 SCAR=6.9
Pod undocumented
42 0 my $self = shift;
43 0 my %args = (@_);
44 0 %$self = (%$self, %args);
45
46 0 open MAINCONF, ">$self->{Database}->{Directory}/$self->{Database}->{Name}/.conf";
47 0 print MAINCONF "test";
48 0 close MAINCONF;
49
50 }
51
52 sub appendMain
53 0 ▶{
Subroutine appendMain: not called CC=1 SCAR=6.9
Pod undocumented
54 0 my $self = shift;
55 0 my %args = (@_);
56 0 %$self = (%$self, %args);
57
58
59
60 }
61
62 sub readMain
63 0 ▶{
Subroutine readMain: not called CC=1 SCAR=6.9
Pod undocumented
64 0 my $self = shift;
65 0 my %args = (@_);
66 0 %$self = (%$self, %args);
67
68
69
70 }
71
72 sub updateMain
73 0 ▶{
Subroutine updateMain: not called CC=1 SCAR=6.9
Pod undocumented
74 0 my $self = shift;
75 0 my %args = (@_);
76 0 %$self = (%$self, %args);
77
78
79 }
80
81
82
83 # Autoload methods go after =cut, and are processed by the autosplit program.
84
85 1 1;
86 __END__
« Database.pm ↑ Summary Database/DTD.pm »