File Coverage

blib/lib/SVG/VCD/Taxon.pm
Criterion Covered Total %
statement 6 12 50.0
branch n/a
condition n/a
subroutine 2 4 50.0
pod 0 2 0.0
total 8 18 44.4


line stmt bran cond sub pod time code
1             package SVG::VCD::Taxon;
2              
3 1     1   4 use strict;
  1         1  
  1         26  
4 1     1   4 use warnings;
  1         2  
  1         93  
5              
6              
7             sub new {
8 0     0 0   my $class = shift();
9 0           my(%fields) = @_;
10              
11 0           return bless {
12             %fields
13             }, $class;
14             }
15              
16              
17             sub field {
18 0     0 0   my $this = shift();
19 0           my($key) = @_;
20              
21 0           return $this->{$key};
22             }
23              
24              
25             1;