File Coverage

inc/Marpa/R3/Test.pm
Criterion Covered Total %
statement 17 19 89.4
branch 2 4 50.0
condition 1 3 33.3
subroutine 7 7 100.0
pod 0 1 0.0
total 27 34 79.4


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 95     95   8886915 use 5.010001;
  95         1233  
15 95     95   579 use strict;
  95         176  
  95         2410  
16 95     95   530 use warnings;
  95         192  
  95         3156  
17              
18 95     95   50600 use Data::Dumper;
  95         625898  
  95         9724  
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 95     95   5303 eval 'use Test::Differences';
  95     95   25350  
  0         0  
  0         0  
27             }
28              
29             sub Marpa::R3::Test::is {
30 506 50 33 506 0 158026 goto &Test::Differences::eq_or_diff
31             if defined &Test::Differences::eq_or_diff && @_ > 1;
32 506 50       1503 @_ = map { ref $_ ? Data::Dumper::Dumper(@_) : $_ } @_;
  1518         4391  
33 506         2801 goto &Test::More::is;
34             } ## end sub Marpa::R3::Test::is
35              
36             1;
37