File Coverage

blib/lib/Wiki/Toolkit/Formatter/Markdown.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Wiki::Toolkit::Formatter::Markdown;
2 2     2   30919 use Mouse;
  2         96183  
  2         11  
3             our $VERSION = '0.0.4';
4 2     2   3212 use Text::Markdown;
  2         121122  
  2         333  
5              
6             has args => (
7             isa => 'HashRef',
8             is => 'ro',
9             auto_deref => 1,
10             lazy_build => 1,
11             );
12              
13 1     1   19 sub _build_args { {} }
14              
15             has markdown => (
16             isa => 'Text::Markdown',
17             is => 'ro',
18             lazy_build => 1,
19             handles => { format => 'markdown' },
20             );
21              
22 1     1   146 sub _build_markdown { Text::Markdown->new( $_[0]->args ) }
23              
24             1;
25              
26 2     2   21 no Mouse; # unimport Moose's keywords so they won't accidentally become methods
  2         11  
  2         17  
27             1; # Magic true value required at end of module
28             __END__