blib/lib/Gapp/ListStore.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 40 CC 2 SCAR 12.8
CC
2
Cov
0%
BUILDARGS
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 package Gapp::ListStore;
2 {
3 $Gapp::ListStore::VERSION = '0.60';
4 }
5  
6 use Moose;
7 use MooseX::SemiAffordanceAccessor;
8 use MooseX::Types::Moose qw( HashRef );
9  
10 extends 'Gapp::Object';
11  
12  
13 has '+gclass' => (
14 default => 'Gtk2::ListStore',
15 );
16  
17 has 'columns' => (
18 is => 'rw',
19 isa => 'ArrayRef',
20 default => sub { [ ] },
21 );
22  
23 has 'content' => (
24 is => 'rw',
25 isa => 'ArrayRef',
26 default => sub { [ ] },
27 );
28  
29 sub BUILDARGS {
30 my $class = shift;
31 my %args = @_ == 1 && is_HashRef( $_[0] ) ? %{$_[0]} : @_;
32
33 #if ( exists $args{columns} ) {
34 # $args{args} = [ @{ $args{columns} } ] if ! exists $args{args};
35 #}
36
37 __PACKAGE__->SUPER::BUILDARGS( %args );
38 }
39  
40 before '_construct_gobject' => sub {
41 my ( $self ) = @_;
42 $self->set_args( [ @{ $self->columns } ] );
43 };
44  
45 1;
46  
47  
48  
49 __END__