| blib/lib/Translate/Fluent/Elements/InlineText.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::InlineText; | ||||||
| 2 | |||||||
| 3 | 6 | 6 | 39 | use Moo; | |||
| 6 | 12 | ||||||
| 6 | 31 | ||||||
| 4 | extends 'Translate::Fluent::Elements::Base'; | ||||||
| 5 | |||||||
| 6 | has text => ( | ||||||
| 7 | is => 'ro', | ||||||
| 8 | default => sub { undef }, | ||||||
| 9 | ); | ||||||
| 10 | |||||||
| 11 | sub translate { | ||||||
| 12 | 44 | 44 | 1 | 69 | my ($self) = @_; | ||
| 13 | |||||||
| 14 | 44 | 235 | return $self->text; | ||||
| 15 | } | ||||||
| 16 | |||||||
| 17 | 1; | ||||||
| 18 | __END__ |