lib/JMAP/Validation/Tests/Object.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 15 | 16 | 93.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package JMAP::Validation::Tests::Object; | ||||||
2 | |||||||
3 | 9 | 9 | 29 | use strict; | |||
9 | 12 | ||||||
9 | 183 | ||||||
4 | 9 | 9 | 26 | use warnings; | |||
9 | 9 | ||||||
9 | 169 | ||||||
5 | |||||||
6 | 9 | 9 | 398 | use Test2::Bundle::Extended; | |||
9 | 89531 | ||||||
9 | 46 | ||||||
7 | |||||||
8 | sub is_object { | ||||||
9 | 20875444 | 20875444 | 0 | 12785250 | my ($value) = @_; | ||
10 | |||||||
11 | 20875444 | 40993763 | return ref($value) eq 'HASH'; | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |