File Coverage

blib/lib/Test/Routine/DoesAutoClear.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Test::Routine::DoesAutoClear;
2             {
3             $Test::Routine::DoesAutoClear::VERSION = '0.001'; # TRIAL
4             }
5 2     2   1077 use Moose::Role;
  2         2  
  2         12  
6             require Test::Routine::Meta::Attribute::Trait::AutoClear;
7              
8             after run_test => sub {
9             my $self = shift;
10              
11             $_->clear_value($self) foreach grep {
12             $_->does( 'Test::Routine::Meta::Attribute::Trait::AutoClear' )
13             } $self->meta->get_all_attributes;
14             };
15              
16             1;
17              
18             __END__
19             =pod
20              
21             =head1 NAME
22              
23             Test::Routine::DoesAutoClear
24              
25             =head1 VERSION
26              
27             version 0.001
28              
29             =head1 AUTHOR
30              
31             Piers Cawley <pdcawley@bofh.org.uk>
32              
33             =head1 COPYRIGHT AND LICENSE
34              
35             This software is copyright (c) 2012 by Piers Cawley.
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
41