File Coverage

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


line stmt bran cond sub pod time code
1             package Module::Faker::File 0.027;
2             # ABSTRACT: a fake file in a fake dist
3              
4 8     8   123 use v5.20.0;
  8         31  
5 8     8   53 use Moose;
  8         22  
  8         53  
6             with 'Module::Faker::Appendix';
7              
8             has filename => (is => 'ro', isa => 'Str', required => 1);
9             has content => (is => 'ro', isa => 'Str', required => 1);
10              
11             sub as_string { shift->content }
12              
13 8     8   57163 no Moose;
  8         26  
  8         41  
14             1;
15              
16             __END__
17              
18             =pod
19              
20             =encoding UTF-8
21              
22             =head1 NAME
23              
24             Module::Faker::File - a fake file in a fake dist
25              
26             =head1 VERSION
27              
28             version 0.027
29              
30             =head1 PERL VERSION
31              
32             This module should work on any version of perl still receiving updates from
33             the Perl 5 Porters. This means it should work on any version of perl
34             released in the last two to three years. (That is, if the most recently
35             released version is v5.40, then this module should work on both v5.40 and
36             v5.38.)
37              
38             Although it may work on older versions of perl, no guarantee is made that the
39             minimum required version will not be increased. The version may be increased
40             for any reason, and there is no promise that patches will be accepted to
41             lower the minimum required perl.
42              
43             =head1 AUTHOR
44              
45             Ricardo Signes <cpan@semiotic.systems>
46              
47             =head1 COPYRIGHT AND LICENSE
48              
49             This software is copyright (c) 2008 by Ricardo Signes.
50              
51             This is free software; you can redistribute it and/or modify it under
52             the same terms as the Perl 5 programming language system itself.
53              
54             =cut