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 | 69381 | use parent 'Time::Piece'; | |||
79 | 446 | ||||||
79 | 534 | ||||||
3 | 79 | 79 | 764288 | use feature ':5.10'; | |||
79 | 181 | ||||||
79 | 6016 | ||||||
4 | 79 | 79 | 504 | use strict; | |||
79 | 528 | ||||||
79 | 1396 | ||||||
5 | 79 | 79 | 349 | use warnings; | |||
79 | 176 | ||||||
79 | 5540 | ||||||
6 | |||||||
7 | sub TO_JSON { | ||||||
8 | # Instance method for JSON::encode() | ||||||
9 | # @return [Integer] Machine time | ||||||
10 | 580 | 580 | 0 | 14908 | my $self = shift; | ||
11 | 580 | 1220 | return $self->epoch; | ||||
12 | } | ||||||
13 | |||||||
14 | 1; | ||||||
15 | __END__ |