blib/lib/Gapp/ToolItemGroup.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 35 CC 4 SCAR 26.4
CC
4
Cov
0%
BUILDARGS
20.0
BEGIN
2.0
BEGIN
2.0
CRAP 14.0
1 package Gapp::ToolItemGroup;
2 {
3 $Gapp::ToolItemGroup::VERSION = '0.60';
4 }
5  
6 use Moose;
7 use MooseX::SemiAffordanceAccessor;
8  
9 extends 'Gapp::Container';
10 with 'Gapp::Meta::Widget::Native::Role::HasLabel';
11  
12 has '+gclass' => (
13 default => 'Gtk2::ToolItemGroup',
14 );
15  
16 sub BUILDARGS {
17 my $class = shift;
18 my %args = @_ == 1 && is_HashRef( $_[0] ) ? %{$_[0]} : @_;
19
20 $args{args} = [exists $args{label} ? $args{label} : ''];
21
22 for my $att ( qw(collapsed ellipsize header_relief label_widget) ) {
23 $args{properties}{$att} = delete $args{$att} if exists $args{$att};
24 }
25
26 __PACKAGE__->SUPER::BUILDARGS( %args );
27 }
28  
29 1;
30  
31  
32 __END__