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 | 28 | use strict; | |||
9 | 9 | ||||||
9 | 180 | ||||||
4 | 9 | 9 | 27 | use warnings; | |||
9 | 7 | ||||||
9 | 144 | ||||||
5 | |||||||
6 | 9 | 9 | 407 | use Test2::Bundle::Extended; | |||
9 | 89406 | ||||||
9 | 41 | ||||||
7 | |||||||
8 | sub is_object { | ||||||
9 | 20875444 | 20875444 | 0 | 12644528 | my ($value) = @_; | ||
10 | |||||||
11 | 20875444 | 39165378 | return ref($value) eq 'HASH'; | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |