DOM2/Element/Definition.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package SVG::DOM2::Element::Definition;
2  
3 use base "XML::DOM2::Element";
4  
5 use strict;
6 use warnings;
7  
8 sub new
9 {
10 my ($proto, $def, %args) = @_;
11 my $self = $proto->SUPER::new($def, %args);
12 $self->document->addDefinition($self);
13 return $self;
14 }
15  
16 return 1;