File Coverage

blib/lib/Module/Faker/File.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Module::Faker::File;
2             # ABSTRACT: a fake file in a fake dist
3             $Module::Faker::File::VERSION = '0.022';
4 8     8   71 use Moose;
  8         17  
  8         45  
5             with 'Module::Faker::Appendix';
6              
7             has filename => (is => 'ro', isa => 'Str', required => 1);
8             has content => (is => 'ro', isa => 'Str', required => 1);
9              
10             sub as_string { shift->content }
11              
12 8     8   50113 no Moose;
  8         19  
  8         38  
13             1;
14              
15             __END__
16              
17             =pod
18              
19             =encoding UTF-8
20              
21             =head1 NAME
22              
23             Module::Faker::File - a fake file in a fake dist
24              
25             =head1 VERSION
26              
27             version 0.022
28              
29             =head1 AUTHOR
30              
31             Ricardo Signes <rjbs@cpan.org>
32              
33             =head1 COPYRIGHT AND LICENSE
34              
35             This software is copyright (c) 2008 by Ricardo Signes.
36              
37             This is free software; you can redistribute it and/or modify it under
38             the same terms as the Perl 5 programming language system itself.
39              
40             =cut