File Coverage

blib/lib/TestML/Util.pm
Criterion Covered Total %
statement 17 19 89.4
branch n/a
condition n/a
subroutine 9 11 81.8
pod 0 7 0.0
total 26 37 70.2


line stmt bran cond sub pod time code
1 24     24   1088 use strict; use warnings;
  24     24   25  
  24         619  
  24         88  
  24         23  
  24         437  
2              
3 24     24   6217 use TestML::Runtime;
  24         36  
  24         704  
4              
5             package TestML::Util;
6              
7 24     24   88 use Exporter 'import';
  24         18  
  24         3702  
8             our @EXPORT = qw( runtime list str num bool none native );
9              
10 18     18 0 30 sub runtime { $TestML::Runtime::Singleton }
11              
12 42     42 0 80 sub list { TestML::List->new(value => $_[0]) }
13 167     167 0 303 sub str { TestML::Str->new(value => $_[0]) }
14 8     8 0 39 sub num { TestML::Num->new(value => $_[0]) }
15 9     9 0 28 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;