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 19     19   212482 use v5.14.0;
  19         77  
4 19     19   118 use warnings;
  19         137  
  19         3613  
5              
6             our $VERSION = "0.06";
7              
8             sub new {
9 69     69 1 11528 my ($class, %args) = @_;
10 69         250 bless \%args => $class;
11             }
12              
13 18     18 1 5882 sub type() { $_[0]->{type} }
14 16     16 1 3148 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 355 sub type_display_name() { $_[0]->type->display_name }
19              
20             1;
21             __END__