line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Marpa::R3 is Copyright (C) 2018, Jeffrey Kegler. |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# This module is free software; you can redistribute it and/or modify it |
4
|
|
|
|
|
|
|
# under the same terms as Perl 5.10.1. For more details, see the full text |
5
|
|
|
|
|
|
|
# of the licenses in the directory LICENSES. |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be |
8
|
|
|
|
|
|
|
# useful, but it is provided "as is" and without any express |
9
|
|
|
|
|
|
|
# or implied warranties. For details, see the full text of |
10
|
|
|
|
|
|
|
# of the licenses in the directory LICENSES. |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package Marpa::R3::Test; |
13
|
|
|
|
|
|
|
|
14
|
98
|
|
|
98
|
|
7809879
|
use 5.010001; |
|
98
|
|
|
|
|
1261
|
|
15
|
98
|
|
|
98
|
|
568
|
use strict; |
|
98
|
|
|
|
|
170
|
|
|
98
|
|
|
|
|
2072
|
|
16
|
98
|
|
|
98
|
|
479
|
use warnings; |
|
98
|
|
|
|
|
178
|
|
|
98
|
|
|
|
|
2553
|
|
17
|
|
|
|
|
|
|
|
18
|
98
|
|
|
98
|
|
51058
|
use Data::Dumper; |
|
98
|
|
|
|
|
573661
|
|
|
98
|
|
|
|
|
8064
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Marpa::R3::exception('Test::More not loaded') |
21
|
|
|
|
|
|
|
if not defined &Test::More::is; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
BEGIN { |
24
|
|
|
|
|
|
|
## no critic (BuiltinFunctions::ProhibitStringyEval) |
25
|
|
|
|
|
|
|
## no critic (ErrorHandling::RequireCheckingReturnValueOfEval) |
26
|
98
|
|
|
98
|
|
4903
|
eval 'use Test::Differences'; |
|
98
|
|
|
98
|
|
24073
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub Marpa::R3::Test::is { |
30
|
506
|
50
|
33
|
506
|
0
|
139304
|
goto &Test::Differences::eq_or_diff |
31
|
|
|
|
|
|
|
if defined &Test::Differences::eq_or_diff && @_ > 1; |
32
|
506
|
50
|
|
|
|
1243
|
@_ = map { ref $_ ? Data::Dumper::Dumper(@_) : $_ } @_; |
|
1518
|
|
|
|
|
3922
|
|
33
|
506
|
|
|
|
|
3421
|
goto &Test::More::is; |
34
|
|
|
|
|
|
|
} ## end sub Marpa::R3::Test::is |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|