File Coverage

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   162892 use v5.40;
  5         18  
2 5     5   435 use experimental 'class';
  5         3099  
  5         36  
3              
4 5     5   927 use utf8;
  5         10  
  5         34  
5              
6 5     5   2876 class Minima::View::PlainText :isa(Minima::View);
  5         42  
  5         877  
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__