line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright 2022 Jeffrey Kegler |
2
|
|
|
|
|
|
|
# This file is part of Marpa::R2. Marpa::R2 is free software: you can |
3
|
|
|
|
|
|
|
# redistribute it and/or modify it under the terms of the GNU Lesser |
4
|
|
|
|
|
|
|
# General Public License as published by the Free Software Foundation, |
5
|
|
|
|
|
|
|
# either version 3 of the License, or (at your option) any later version. |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# Marpa::R2 is distributed in the hope that it will be useful, |
8
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
9
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10
|
|
|
|
|
|
|
# Lesser General Public License for more details. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# You should have received a copy of the GNU Lesser |
13
|
|
|
|
|
|
|
# General Public License along with Marpa::R2. If not, see |
14
|
|
|
|
|
|
|
# http://www.gnu.org/licenses/. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
package Marpa::R2::Test; |
17
|
|
|
|
|
|
|
|
18
|
127
|
|
|
127
|
|
9125096
|
use 5.010001; |
|
127
|
|
|
|
|
1745
|
|
19
|
127
|
|
|
127
|
|
685
|
use strict; |
|
127
|
|
|
|
|
251
|
|
|
127
|
|
|
|
|
2734
|
|
20
|
127
|
|
|
127
|
|
578
|
use warnings; |
|
127
|
|
|
|
|
273
|
|
|
127
|
|
|
|
|
3455
|
|
21
|
|
|
|
|
|
|
|
22
|
127
|
|
|
127
|
|
73167
|
use Data::Dumper; |
|
127
|
|
|
|
|
809130
|
|
|
127
|
|
|
|
|
11014
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Marpa::R2::exception('Test::More not loaded') |
25
|
|
|
|
|
|
|
if not defined &Test::More::is; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
BEGIN { |
28
|
|
|
|
|
|
|
## no critic (BuiltinFunctions::ProhibitStringyEval) |
29
|
|
|
|
|
|
|
## no critic (ErrorHandling::RequireCheckingReturnValueOfEval) |
30
|
127
|
|
|
127
|
|
6536
|
eval 'use Test::Differences'; |
|
127
|
|
|
127
|
|
33370
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub Marpa::R2::Test::is { |
34
|
518
|
50
|
33
|
518
|
0
|
143708
|
goto &Test::Differences::eq_or_diff |
35
|
|
|
|
|
|
|
if defined &Test::Differences::eq_or_diff && @_ > 1; |
36
|
518
|
50
|
|
|
|
1438
|
@_ = map { ref $_ ? Data::Dumper::Dumper(@_) : $_ } @_; |
|
1554
|
|
|
|
|
4256
|
|
37
|
518
|
|
|
|
|
3037
|
goto &Test::More::is; |
38
|
|
|
|
|
|
|
} ## end sub Marpa::R2::Test::is |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|