File Coverage

inc/TestML/Util.pm
Criterion Covered Total %
statement 14 19 73.6
branch n/a
condition n/a
subroutine 6 11 54.5
pod 0 7 0.0
total 20 37 54.0


line stmt bran cond sub pod time code
1 2     2   499 use strict; use warnings;
  2     2   3  
  2         79  
  2         21  
  2         2  
  2         52  
2              
3 2     2   505 use TestML::Runtime;
  2         5  
  2         92  
4              
5             package TestML::Util;
6              
7 2     2   12 use Exporter 'import';
  2         3  
  2         478  
8             our @EXPORT = qw( runtime list str num bool none native );
9              
10 8     8 0 28 sub runtime { $TestML::Runtime::Singleton }
11              
12 0     0 0 0 sub list { TestML::List->new(value => $_[0]) }
13 9     9 0 37233 sub str { TestML::Str->new(value => $_[0]) }
14 0     0 0   sub num { TestML::Num->new(value => $_[0]) }
15 0     0 0   sub bool { TestML::Bool->new(value => $_[0]) }
16 0     0 0   sub none { TestML::None->new(value => $_[0]) }
17 0     0 0   sub native { TestML::Native->new(value => $_[0]) }
18              
19             1;