blib/lib/XML/ED.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
parse
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package XML::ED;
3  
4 our $VERSION = 'v0.0.2';
5  
6 =head1 NAME
7  
8 XML::ED - A process to impliemtent editing of xml files.
9  
10 =head1 VERSION
11  
12 v0.0.2
13  
14 =over 4
15  
16 =item new
17  
18 new
19  
20 =cut
21  
22 sub new
23 {
24 my $class = shift;
25  
26 bless { @_ }, $class;
27 }
28  
29 =item parse
30  
31 my $xml = $ed->parse(text => <<XML);
32  
33 =cut
34  
35 sub parse
36 {
37 require XML::ED::Bare;
38 require XML::ED::Node;
39 require XML::ED::NodeSet;
40 my $self = shift;
41 my %p = @_;
42  
43 my $text = delete $p{text};
44  
45 my ($a, $b) = XML::ED::Bare->new(text => $text);
46 return $b;
47 }
48  
49  
50  
51 1;
52  
53 __END__