Database/DTD.pm

filter: Statementstmt 79.1% 19 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 2 totaltotal 74.1% 23 / 31 CC 1 SCAR 1.8
CC
1
Cov
79%
attach
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Database/Config.pm ↑ Summary
1 package XML::Database::DTD;
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::DTD ':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
31 # Preloaded methods go here.
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 attach
41 0 ▶{
Subroutine attach: 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 require File::Copy;
47 File::Copy::copy($self->{DTDFile},
48 0 "$self->{Table}->{Database}->{Directory}/$self->{Table}->{Database}->{Name}/$self->{Table}->{TableName}/$self->{Table}->{TableName}.dtd");
49
50 }
51
52 # Autoload methods go after =cut, and are processed by the autosplit program.
53
54 1 1;
55 __END__
« Database/Config.pm ↑ Summary