File Coverage

blib/lib/TAP/DOM/DocumentData.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 3 3 100.0
total 23 23 100.0


line stmt bran cond sub pod time code
1             package TAP::DOM::DocumentData;
2             our $AUTHORITY = 'cpan:SCHWIGON';
3             # ABSTRACT: Accessors for key/value document data
4             $TAP::DOM::DocumentData::VERSION = '1.001';
5 26     26   277843 use 5.006;
  26         91  
6 26     26   138 use strict;
  26         93  
  26         718  
7 26     26   120 use warnings;
  26         69  
  26         4886  
8              
9             sub new {
10 77     77 1 196 my $class = shift;
11 77         349 return bless { @_ }, $class;
12             }
13              
14             sub set {
15 2     2 1 9 my ($self, $key, $value) = @_;
16 2         7 $self->{$key} = $value;
17             }
18              
19             sub get {
20 17     17 1 33638 my ($self, $key) = @_;
21 17         86 return $self->{$key};
22             }
23              
24             1;
25              
26             __END__