File Coverage

inc/Test/Deep/Ref.pm
Criterion Covered Total %
statement 21 22 95.4
branch 1 2 50.0
condition n/a
subroutine 6 6 100.0
pod 0 2 0.0
total 28 32 87.5


line stmt bran cond sub pod time code
1 2     2   15 #line 1
  2         274  
  2         86  
2 2     2   13 use strict;
  2         5  
  2         87  
3             use warnings;
4              
5             package Test::Deep::Ref;
6 2     2   1613  
  2         5  
  2         11  
7             use Test::Deep::Cmp;
8 2     2   16  
  2         3  
  2         456  
9             use Scalar::Util qw( blessed );
10              
11             sub test_class
12 10     10 0 16 {
13 10         13 my $self = shift;
14             my $got = shift;
15 10         191  
16             my $exp = $self->{val};
17 10 50       23
18             if ($Test::Deep::Snobby)
19 10         38 {
20             return Test::Deep::descend($got, Test::Deep::blessed(blessed($exp)));
21             }
22             else
23 0         0 {
24             return 1;
25             }
26             }
27              
28             sub test_reftype
29 10     10 0 14 {
30 10         13 my $self = shift;
31 10         15 my $got = shift;
32             my $reftype = shift;
33 10         30  
34             return Test::Deep::descend($got, Test::Deep::reftype($reftype));
35             }
36              
37             1;