Tested/Value/Snippet.pm

filter: Statementstmt 100% 21 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 96.6% 29 / 30 CC 2 SCAR 2.5
CC
2
Cov
96%
value_to_string
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Tested/Value/Upload.pm ↑ Summary Tested/List/Pager.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package HTML::Tested::Value::Snippet;
5 1 ▶use base 'HTML::Tested::Value';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Template;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 ▶sub value_to_string {
Subroutine value_to_string: called CC=2 SCAR=7.0
Pod documented
10 4 my ($self, $name, $val, $caller, $stash) = @_;
11 4 my $res;
12 4 my $t = Template->new;
13 4 ▶ $t->process(\$val, $stash, \$res) or confess "process: " . $t->error;
Branch: 1 branch
BranchTrueFalseTotal
$t->process(\$val, $stash, \$res) or confess('process: ' . $t->error) 4 0 4
14 4 return $res;
15 }
16  
17 1 1;
« Tested/Value/Upload.pm ↑ Summary Tested/List/Pager.pm »