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 85     85   96617 use parent 'Time::Piece';
  85         400  
  85         849  
3 85     85   25541 use v5.26;
  85         522  
4 85     85   454 use strict;
  85         187  
  85         2284  
5 85     85   418 use warnings;
  85         173  
  85         10493  
6              
7             sub TO_JSON {
8             # Instance method for JSON::encode()
9             # @return [Integer] Machine time
10 689     689 0 257987 my $self = shift;
11 689         1872 return $self->epoch;
12             }
13              
14             1;
15             __END__