File Coverage

blib/lib/Stenciller/Utils.pm
Criterion Covered Total %
statement 93 104 89.4
branch 9 30 30.0
condition n/a
subroutine 12 13 92.3
pod n/a
total 114 147 77.5


line stmt bran cond sub pod time code
1 13     13   38524 use Stenciller::Standard;
  13         82  
  13         99  
2 13     7   103721 use strict;
  7         15  
  7         199  
3 7     7   40 use warnings;
  7         16  
  7         269  
4              
5             # PODNAME: Stenciller::Utils
6              
7 7     7   28556 role Stenciller::Utils using Moose {
  7     7   242  
  7     1   44  
  7         17  
  7         492  
  7         36  
  7         14  
  7         74  
  7         2008  
  7         17  
  7         61  
  7         526  
  7         26  
  7         407  
  7         38  
  7         19  
  7         713  
  7         270  
  7         39  
  7         15  
  7         57  
  7         31927  
  7         16  
  7         78  
  7         38264  
  7         16  
  7         74  
  7         72374  
  7         19  
  7         88  
  7         652  
  7         16  
  7         72  
  7         1548  
  7         16  
  7         69  
  7         9472  
  7         18  
  7         59  
  7         45675  
  7         27  
  7         37  
  7         13  
  7         216  
  7         37  
  7         14  
  7         411  
  7         39  
  7         14  
  7         1102  
  7         67  
  1         5265  
  0         0  
8              
9 1         11 our $VERSION = '0.1302'; # VERSION:
10              
11 7 50   7   143809 method eval_to_hashref(Str $possible_hash!, Path|Str $faulty_file! --> HashRef) {
  7 50   7   21  
  7 50   7   1305  
  7 50   11   41  
  7 50       15  
  7 50       1122  
  7 50       51  
  7 50       15  
  7         1124  
  1         5  
  11         375  
  11         34  
  11         33  
  11         38  
  11         15  
  11         36  
  11         33  
  11         56  
  11         16  
  11         55  
  11         19  
12 11         855 my $settings = eval $possible_hash;
13 11 50       73 die sprintf "Can't parse stencil start: <%s> in %s: %s", $possible_hash, $faulty_file, $@ if $@;
14 11         240 return $settings;
15             }
16 7 0   7   15496 method eval(Str $string!) {
  7 0   7   16  
  7 0   0   1245  
  7 0       38  
  7 0       16  
  7         979  
  1         14074  
  0            
  0            
  0            
  0            
  0            
  0            
  0            
17 0           eval $string;
18 0 0         die sprintf "Can't parse %s: %s", $string, $@ if $@;
19 0           return 1;
20             }
21             }
22              
23             1;
24              
25             __END__
26              
27             =pod
28              
29             =encoding UTF-8
30              
31             =head1 NAME
32              
33             Stenciller::Utils
34              
35             =head1 VERSION
36              
37             Version 0.1302, released 2015-11-28.
38              
39             =head1 SOURCE
40              
41             L<https://github.com/Csson/p5-Stenciller>
42              
43             =head1 HOMEPAGE
44              
45             L<https://metacpan.org/release/Stenciller>
46              
47             =head1 AUTHOR
48              
49             Erik Carlsson <info@code301.com>
50              
51             =head1 COPYRIGHT AND LICENSE
52              
53             This software is copyright (c) 2015 by Erik Carlsson.
54              
55             This is free software; you can redistribute it and/or modify it under
56             the same terms as the Perl 5 programming language system itself.
57              
58             =cut