File Coverage

blib/lib/Mediawiki/Blame/Line.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::Line;
2 2     2   55 use 5.008;
  2         11  
  2         77  
3 2     2   13 use utf8;
  2         25  
  2         18  
4 2     2   48 use strict;
  2         5  
  2         78  
5 2     2   13 use warnings;
  2         4  
  2         83  
6 2     2   10 use Class::Spiffy qw(-base field);
  2         5  
  2         13  
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__