| blib/lib/Minima/View/PlainText.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 11 | 11 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | n/a | ||
| total | 15 | 15 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | 5 | 5 | 193286 | use v5.40; | |||
| 5 | 37 | ||||||
| 2 | 5 | 5 | 415 | use experimental 'class'; | |||
| 5 | 4136 | ||||||
| 5 | 40 | ||||||
| 3 | |||||||
| 4 | 5 | 5 | 1095 | use utf8; | |||
| 5 | 12 | ||||||
| 5 | 38 | ||||||
| 5 | |||||||
| 6 | 5 | 5 | 2747 | class Minima::View::PlainText :isa(Minima::View); | |||
| 5 | 26 | ||||||
| 5 | 888 | ||||||
| 7 | |||||||
| 8 | method prepare_response ($response) | ||||||
| 9 | { | ||||||
| 10 | $response->content_type('text/plain; charset=utf-8'); | ||||||
| 11 | } | ||||||
| 12 | |||||||
| 13 | method render ($data = '') | ||||||
| 14 | { | ||||||
| 15 | utf8::encode($data); | ||||||
| 16 | $data; | ||||||
| 17 | } | ||||||
| 18 | |||||||
| 19 | __END__ |