line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# This software is copyright (c) 2011 by Jeffrey Kegler |
2
|
|
|
|
|
|
|
# This is free software; you can redistribute it and/or modify it |
3
|
|
|
|
|
|
|
# under the same terms as the Perl 5 programming language system |
4
|
|
|
|
|
|
|
# itself. |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Marpa::HTML::Test; |
7
|
5
|
|
|
5
|
|
23573
|
use 5.010; |
|
5
|
|
|
|
|
19
|
|
|
5
|
|
|
|
|
180
|
|
8
|
5
|
|
|
5
|
|
26
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
166
|
|
9
|
5
|
|
|
5
|
|
24
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
158
|
|
10
|
5
|
|
|
5
|
|
25
|
use Carp; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
577
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Carp::croak('Test::More not loaded') |
13
|
|
|
|
|
|
|
if not defined &Test::More::is; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
BEGIN { |
16
|
|
|
|
|
|
|
## no critic (BuiltinFunctions::ProhibitStringyEval) |
17
|
|
|
|
|
|
|
## no critic (ErrorHandling::RequireCheckingReturnValueOfEval) |
18
|
5
|
|
|
5
|
|
296
|
eval 'use Test::Differences'; |
|
5
|
|
|
5
|
|
2142
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
19
|
|
|
|
|
|
|
## use critic |
20
|
|
|
|
|
|
|
} ## end BEGIN |
21
|
5
|
|
|
5
|
|
3300
|
use Data::Dumper; |
|
5
|
|
|
|
|
21737
|
|
|
5
|
|
|
|
|
818
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
## no critic (Subroutines::RequireArgUnpacking) |
24
|
|
|
|
|
|
|
sub Marpa::HTML::Test::is { |
25
|
|
|
|
|
|
|
## use critic |
26
|
16
|
50
|
33
|
16
|
0
|
4539
|
goto &Test::Differences::eq_or_diff |
27
|
|
|
|
|
|
|
if defined &Test::Differences::eq_or_diff && @_ > 1; |
28
|
16
|
50
|
|
|
|
62
|
@_ = map { ref $_ ? Data::Dumper::Dumper(@_) : $_ } @_; |
|
48
|
|
|
|
|
10179
|
|
29
|
16
|
|
|
|
|
103
|
goto &Test::More::is; |
30
|
|
|
|
|
|
|
} ## end sub Marpa::HTML::Test::is |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|