File Coverage

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


line stmt bran cond sub pod time code
1             package Sisimai::Time;
2 87     87   82749 use parent 'Time::Piece';
  87         336  
  87         568  
3 87     87   17415 use v5.26;
  87         243  
4 87     87   296 use strict;
  87         126  
  87         1685  
5 87     87   288 use warnings;
  87         127  
  87         7643  
6              
7             sub TO_JSON {
8             # Instance method for JSON::encode()
9             # @return [Integer] Machine time
10 693     693 0 233714 my $self = shift;
11 693         1216 return $self->epoch;
12             }
13              
14             1;
15             __END__