File Coverage

lib/Sisimai/Time.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 19 20 95.0


line stmt bran cond sub pod time code
1             package Sisimai::Time;
2 79     79   69762 use parent 'Time::Piece';
  79         485  
  79         553  
3 79     79   811692 use feature ':5.10';
  79         212  
  79         5681  
4 79     79   586 use strict;
  79         242  
  79         1499  
5 79     79   377 use warnings;
  79         226  
  79         5808  
6              
7             sub TO_JSON {
8             # Instance method for JSON::encode()
9             # @return [Integer] Machine time
10 580     580 0 14560 my $self = shift;
11 580         1154 return $self->epoch;
12             }
13              
14             1;
15             __END__