| 1 | 3 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 2 | 3 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | package MojoX::Renderer::Alloy::TT; | ||||||||||||
| 4 | 3 | ▶ | BEGIN { | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 3 | $MojoX::Renderer::Alloy::TT::AUTHORITY = 'cpan:AJGB'; | |||||||||||
| 6 | } | ||||||||||||
| 7 | { | ||||||||||||
| 8 | 3 | $MojoX::Renderer::Alloy::TT::VERSION = '1.121150'; | |||||||||||
| 9 | } | ||||||||||||
| 10 | #ABSTRACT: Template::Alloy's Template-Toolkit renderer | ||||||||||||
| 11 | |||||||||||||
| 12 | 3 | ▶ | use base 'MojoX::Renderer::Alloy'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | 3 | ▶ | use Template::Alloy qw( TT ); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 15 | 3 | ▶ | use File::Spec (); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | |||||||||||||
| 17 | 3 | __PACKAGE__->attr('alloy'); | |||||||||||
| 18 | |||||||||||||
| 19 | |||||||||||||
| 20 | |||||||||||||
| 21 | 0 | ▶ | sub _render { | ||||||||||
|
Subroutine
_render: not called CC=3 SCAR=24.8
| |||||||||||||
| 22 | 0 | my ($self, $r, $c, $output, $options) = @_; | |||||||||||
| 23 | |||||||||||||
| 24 | 0 | ▶ | my $input = $self->_get_input( $r, $c, $options ) | ||||||||||
|
Condition0%0/2
$self->_get_input($r, $c, $options) || (return)
MC/DC0%0/1
$self->_get_input($r, $c, $options) || (return)
$self->_get_input($r, $c, $options)
Truth table0%0/2
A
A= $self->_get_input($r, $c, $options)
| |||||||||||||
| 25 | || return; | ||||||||||||
| 26 | |||||||||||||
| 27 | 0 | my $alloy = $self->alloy; | |||||||||||
| 28 | |||||||||||||
| 29 | $alloy->process( $input, | ||||||||||||
| 30 | $self->_template_vars( $c ), | ||||||||||||
| 31 | $output, | ||||||||||||
| 32 | { binmode => ':utf8' }, | ||||||||||||
| 33 | 0 | ▶ | ) || do { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 34 | 0 | my $e = $alloy->error; | |||||||||||
| 35 | 0 | chomp $e; | |||||||||||
| 36 | 0 | $c->render_exception( $e ); | |||||||||||
| 37 | }; | ||||||||||||
| 38 | } | ||||||||||||
| 39 | |||||||||||||
| 40 | 3 | 1; | |||||||||||
| 41 | |||||||||||||
| 42 | __END__ | ||||||||||||