File Coverage

blib/lib/Sys/Export/GPT/Partition.pm
Criterion Covered Total %
statement 26 26 100.0
branch 5 6 83.3
condition n/a
subroutine 7 7 100.0
pod 3 3 100.0
total 41 42 97.6


line stmt bran cond sub pod time code
1             package Sys::Export::GPT::Partition;
2              
3             our $VERSION = '0.005'; # VERSION
4             # ABSTRACT: Describes a partition entry for a GPT partition table
5              
6 2     2   24 use v5.26;
  2         6  
7 2     2   9 use warnings;
  2         2  
  2         82  
8 2     2   8 use experimental qw( signatures );
  2         2  
  2         14  
9 2     2   249 use parent 'Sys::Export::Extent';
  2         4  
  2         9  
10              
11              
12 18 100   18 1 378 sub type($self, @v) { @v? ($self->{type}= $v[0]) : $self->{type} }
  18         21  
  18         19  
  18         19  
  18         81  
13 15 100   15 1 18 sub guid($self, @v) { @v? ($self->{guid}= $v[0]) : $self->{guid} }
  15         14  
  15         20  
  15         16  
  15         46  
14 5 50   5 1 7 sub flags($self, @v) { @v? ($self->{flags}= $v[0]) : $self->{flags} }
  5         7  
  5         7  
  5         7  
  5         69  
15              
16             1;
17              
18             __END__