blib/lib/Term/Fabulous/Event/Collapse.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 46 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Term::Fabulous::Event::Collapse;
2  
3 use v5.32;
4 use warnings;
5 use feature 'signatures';
6 no warnings 'experimental::signatures';
7  
8 our $VERSION = '0.05';
9  
10 use Object::Pad 0.825;
11  
12 use Clay::UI::Events::Event;
13  
14 class Term::Fabulous::Event::Collapse :isa(Clay::UI::Events::Event) :strict(params) {
15 field $row_id :param :reader = undef;
16 field $group_path :param = undef;
17  
18 ADJUST {
19 die "Term::Fabulous::Event::Collapse: group_path must be undef or an array reference" if defined $group_path && ref $group_path ne 'ARRAY';
20 $group_path = [@$group_path] if defined $group_path;
21 }
22  
23 method event_name :common { 'Collapse' }
24  
25 method group_path () { return defined $group_path ? [@$group_path] : undef }
26 }
27  
28 1;
29  
30 __END__