blib/lib/Translate/Fluent/Elements/StringLiteral.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 5 | 5 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 8 | 8 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Translate::Fluent::Elements::StringLiteral; | ||||||
2 | |||||||
3 | 6 | 6 | 111 | use Moo; | |||
6 | 11 | ||||||
6 | 34 | ||||||
4 | extends 'Translate::Fluent::Elements::Base'; | ||||||
5 | |||||||
6 | has text => ( | ||||||
7 | is => 'ro', | ||||||
8 | default => sub { undef }, | ||||||
9 | ); | ||||||
10 | |||||||
11 | |||||||
12 | sub translate { | ||||||
13 | 12 | 12 | 1 | 21 | my ($self, $variables) = @_; | ||
14 | |||||||
15 | 12 | 48 | return $self->text; | ||||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | __END__ |