Fluent/Elements/BlockPlaceable.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 76.4% 13 / 17 CC 2 SCAR 6.0
CC
2
Cov
77%
translate
2.1
__ANON__
2.0
BEGIN
1.0
CRAP 1.8
« Fluent/Elements/Pattern.pm ↑ Summary Fluent/Elements/CallArguments.pm »
1 package Translate::Fluent::Elements::BlockPlaceable;
2  
3 6 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 extends 'Translate::Fluent::Elements::Base';
5  
6 has inline_placeable => (
7 is => 'ro',
8 0 ▶ default => sub { undef },
Subroutine __ANON__: not called CC=1 SCAR=6.9
9 6 );
10  
11 4 ▶sub translate {
Subroutine translate: called CC=2 SCAR=7.6
Pod documented
12 4 my ($self, $variables) = @_;
13  
14 4 ▶ if ($self->inline_placeable) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->inline_placeable) 4 0 4
15 4 return $self->inline_placeable->translate( $variables );
16 }
17  
18 0 return '';
19 }
20  
21 6 1;
22  
23 __END__
« Fluent/Elements/Pattern.pm ↑ Summary Fluent/Elements/CallArguments.pm »