blib/lib/Translate/Fluent/Elements/CallArguments.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | 1 | 2 | 50.0 |
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 10 | 11 | 90.9 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Translate::Fluent::Elements::CallArguments; | ||||||
2 | |||||||
3 | 6 | 6 | 41 | use Moo; | |||
6 | 13 | ||||||
6 | 30 | ||||||
4 | extends 'Translate::Fluent::Elements::Base'; | ||||||
5 | |||||||
6 | has argument_list => ( | ||||||
7 | is => 'ro', | ||||||
8 | default => sub { [] }, | ||||||
9 | ); | ||||||
10 | |||||||
11 | |||||||
12 | sub to_variables { | ||||||
13 | 9 | 9 | 1 | 18 | my ( $self, $variables ) = @_; | ||
14 | |||||||
15 | 9 | 50 | 26 | return unless $self->argument_list; | |||
16 | |||||||
17 | 9 | 29 | return $self->argument_list->to_variables; | ||||
18 | } | ||||||
19 | |||||||
20 | 1; | ||||||
21 | |||||||
22 | __END__ |