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   168721 use v5.14.0;
  12         45  
4 12     12   59 use warnings;
  12         24  
  12         2009  
5              
6             our $VERSION = "0.04";
7              
8             sub new {
9 69     69 1 11179 my ($class, %args) = @_;
10 69         214 bless \%args => $class;
11             }
12              
13 18     18 1 4863 sub type() { $_[0]->{type} }
14 16     16 1 2593 sub name() { $_[0]->{name} }
15 29     29 1 160 sub optional() { !!$_[0]->{optional} }
16 47     47 1 217 sub named() { !!$_[0]->{named} }
17              
18 7     7 1 286 sub type_display_name() { $_[0]->type->display_name }
19              
20             1;
21             __END__