File Coverage

blib/lib/Mediawiki/Blame/Revision.pm
Criterion Covered Total %
statement 15 23 65.2
branch n/a
condition n/a
subroutine 5 6 83.3
pod n/a
total 20 29 68.9


line stmt bran cond sub pod time code
1             package Mediawiki::Blame::Revision;
2 2     2   753 use 5.008;
  2         9  
  2         490  
3 2     2   14 use utf8;
  2         5  
  2         19  
4 2     2   48 use strict;
  2         4  
  2         101  
5 2     2   12 use warnings;
  2         4  
  2         90  
6 2     2   11 use Class::Spiffy qw(-base field);
  2         13  
  2         20  
7             our $VERSION = '0.0.3';
8              
9             my @field_names = qw(r_id timestamp contributor text);
10             for my $field_name (@field_names) {
11             field $field_name;
12             };
13              
14             sub _new {
15 0     0     my $class = shift;
16 0           my $self = {};
17 0           bless $self, $class;
18              
19 0           $self->r_id(shift);
20 0           $self->timestamp(shift);
21 0           $self->contributor(shift);
22 0           $self->text(shift);
23              
24 0           return $self;
25             };
26              
27             1;
28              
29             __END__