| 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
| |||||||||||
| 14 | 4 | return $res; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 1 | 1; | |||||||||