line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Chai::Core::Assertions::Eql; |
2
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
50
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
48
|
|
4
|
2
|
|
|
2
|
|
9
|
use utf8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
11
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
47
|
use Exporter qw/import/; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
106
|
|
7
|
|
|
|
|
|
|
our @EXPORT_OK = qw/assert_eql/; |
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
10
|
use Test::Chai::Util::Equal qw/eql/; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
187
|
|
10
|
2
|
|
|
2
|
|
13
|
use Test::Chai::Util::Flag qw/flag/; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
275
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub assert_eql { |
13
|
13
|
|
|
13
|
0
|
22
|
my ($self, $obj, $msg) = @_; |
14
|
13
|
50
|
|
|
|
36
|
flag($self, 'message', $msg) if defined $msg; |
15
|
13
|
|
|
|
|
35
|
return $self->assert( |
16
|
|
|
|
|
|
|
eql($obj, flag($self, 'object')), |
17
|
|
|
|
|
|
|
'expected #{this} to deeply equal #{exp}', |
18
|
|
|
|
|
|
|
'expected #{this} to not deeply equal #{exp}', |
19
|
|
|
|
|
|
|
$obj, |
20
|
|
|
|
|
|
|
$self->_obj, |
21
|
|
|
|
|
|
|
1 |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |