File Coverage

blib/lib/Function/Interface/Info/Function/Param.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod 6 6 100.0
total 26 26 100.0


line stmt bran cond sub pod time code
1             package Function::Interface::Info::Function::Param;
2              
3 12     12   167747 use v5.14.0;
  12         47  
4 12     12   65 use warnings;
  12         26  
  12         2351  
5              
6             our $VERSION = "0.05";
7              
8             sub new {
9 69     69 1 11947 my ($class, %args) = @_;
10 69         248 bless \%args => $class;
11             }
12              
13 18     18 1 5303 sub type() { $_[0]->{type} }
14 16     16 1 2961 sub name() { $_[0]->{name} }
15 29     29 1 169 sub optional() { !!$_[0]->{optional} }
16 47     47 1 223 sub named() { !!$_[0]->{named} }
17              
18 7     7 1 400 sub type_display_name() { $_[0]->type->display_name }
19              
20             1;
21             __END__