File Coverage

blib/lib/Test/Deep/String.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 3 0.0
total 24 27 88.8


line stmt bran cond sub pod time code
1 3     3   23 use strict;
  3         5  
  3         137  
2 3     3   18 use warnings;
  3         10  
  3         246  
3              
4             package Test::Deep::String 1.205;
5              
6 3     3   578 use Test::Deep::Cmp;
  3         10  
  3         18  
7              
8             sub init
9             {
10 10     10 0 16 my $self = shift;
11              
12 10         140 $self->{val} = shift;
13             }
14              
15             sub descend
16             {
17 10     10 0 21 my $self = shift;
18 10         87 my $got = shift()."";
19              
20 10         62 $self->data->{got} = $got;
21              
22 10         45 return $got eq $self->{val};
23             }
24              
25             sub diag_message
26             {
27 3     3 0 7 my $self = shift;
28              
29 3         7 my $where = shift;
30              
31 3         11 return "Comparing $where as a string";
32             }
33              
34             1;
35              
36             __END__