blib/lib/Gapp/Viewport.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran 0.0% 0 / 4 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 / 30 CC 3 SCAR 20.8
CC
3
Cov
0%
BUILDARGS
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 8.0
1 package Gapp::Viewport;
2 {
3 $Gapp::Viewport::VERSION = '0.60';
4 }
5  
6 use Moose;
7 use MooseX::SemiAffordanceAccessor;
8  
9 extends 'Gapp::Box';
10  
11 has '+gclass' => (
12 default => 'Gtk2::Viewport',
13 );
14  
15 sub BUILDARGS {
16 my $class = shift;
17 my %args = @_ == 1 && is_HashRef( $_[0] ) ? %{$_[0]} : @_;
18
19 for my $att ( qw(hadjustment shadow_type vadjustment) ) {
20 $args{properties}{$att} = delete $args{$att} if exists $args{$att};
21 }
22
23 __PACKAGE__->SUPER::BUILDARGS( %args );
24 }
25  
26 1;
27  
28 __END__