File Coverage

blib/lib/ELF/Writer/Linux_x86_64.pm
Criterion Covered Total %
statement 9 9 100.0
branch 1 2 50.0
condition n/a
subroutine 3 3 100.0
pod n/a
total 13 14 92.8


line stmt bran cond sub pod time code
1             package ELF::Writer::Linux_x86_64;
2 1     1   769 use Moo 2;
  1         98  
  1         10  
3 1     1   415 use namespace::clean;
  1         2  
  1         9  
4             extends 'ELF::Writer';
5              
6             # ABSTRACT: ELF::Writer with defaults for Linux on x86-64
7              
8              
9             has '+class' => ( default => sub { 2 } );
10             has '+data' => ( default => sub { 1 } );
11             has '+osabi' => ( default => sub { 3 } );
12             has '+machine' => ( default => sub { 0x3E } );
13              
14              
15             sub _apply_segment_defaults {
16 1     1   2 my ($self, $seg)= @_;
17 1 50       8 $seg->align(4096) unless $seg->align;
18 1         8 $self->SUPER::_apply_segment_defaults($seg);
19             }
20              
21             1;
22              
23             __END__