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 98     98   7829733 use 5.010001;
  98         1111  
15 98     98   459 use strict;
  98         140  
  98         1673  
16 98     98   355 use warnings;
  98         136  
  98         3707  
17              
18 98     98   48383 use Data::Dumper;
  98         560460  
  98         7651  
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   4243 eval 'use Test::Differences';
  98     98   25613  
  0         0  
  0         0  
27             }
28              
29             sub Marpa::R3::Test::is {
30 508 50 33 508 0 169076 goto &Test::Differences::eq_or_diff
31             if defined &Test::Differences::eq_or_diff && @_ > 1;
32 508 50       1101 @_ = map { ref $_ ? Data::Dumper::Dumper(@_) : $_ } @_;
  1524         3588  
33 508         2970 goto &Test::More::is;
34             } ## end sub Marpa::R3::Test::is
35              
36             1;
37