File Coverage

MyTest/TopNode.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package MyTest::TopNode;
2              
3 4     4   100204 use strict;
  4         11  
  4         174  
4              
5 4     4   22 use base qw/Class::XML/;
  4         7  
  4         2667  
6              
7             __PACKAGE__->has_child('bar' => 'MyTest::SingleChild');
8             __PACKAGE__->has_children('stalk' => 'MyTest::MultiChild');
9             __PACKAGE__->has_relation(four_beans =>
10             [ './child::*[@beans=4]' => 'MyTest::MultiChild' ]);
11             __PACKAGE__->has_relation(n_beans =>
12             [ './child::*[@beans=%i]' => 'MyTest::MultiChild' ]);
13              
14             1;