File Coverage

lib/ELF/Extract/Sections/Meta/Types.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 19 100.0


line stmt bran cond sub pod time code
1 4     4   1169 use 5.006;
  4         13  
2 4     4   21 use strict;
  4         7  
  4         98  
3 4     4   21 use warnings;
  4         8  
  4         341  
4              
5             package ELF::Extract::Sections::Meta::Types;
6              
7             # ABSTRACT: Generic Type Constraints for E:E:S
8              
9             our $VERSION = '1.001003'; # TRIAL
10              
11             our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
12              
13 4     4   646 use MooseX::Types::Moose (qw( Object ));
  4         481084  
  4         32  
14 4     4   18704 use MooseX::Types -declare => [ 'FilterField', 'ElfSection' ];
  4         9  
  4         24  
15              
16             ## no critic (ProhibitCallsToUndeclaredSubs)
17             subtype FilterField, as enum( [ 'name', 'offset', 'size', ] );
18              
19             subtype ElfSection, as Object, where { $_->isa('ELF::Extract::Sections::Section') };
20              
21             1;
22              
23             __END__
24              
25             =pod
26              
27             =encoding UTF-8
28              
29             =head1 NAME
30              
31             ELF::Extract::Sections::Meta::Types - Generic Type Constraints for E:E:S
32              
33             =head1 VERSION
34              
35             version 1.001003
36              
37             =head1 Types
38              
39             =head2 C<FilterField>
40              
41             ENUM: name, offset, size
42              
43             =head2 C<ElfSection>
44              
45             An object that is a ELF::Extract::Sections::Section
46              
47             =head1 AUTHOR
48              
49             Kent Fredric <kentnl@cpan.org>
50              
51             =head1 COPYRIGHT AND LICENSE
52              
53             This software is copyright (c) 2015 by Kent Fredric <kentfredric@gmail.com>.
54              
55             This is free software; you can redistribute it and/or modify it under
56             the same terms as the Perl 5 programming language system itself.
57              
58             =cut