blib/lib/Gapp/Layout.pm

filter: Statementstmt 100% 31 / 31 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 11 / 11 Podpod 71.4% 5 / 7 totaltotal 90.7% 49 / 54 CC 2 SCAR 1.6
CC
2
Cov
97%
Layout
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Gapp/Gtk2/Model/SimpleList.pm ↑ Summary blib/lib/Gapp/Moose.pm »
1 package Gapp::Layout;
2 {
3 1 $Gapp::Layout::VERSION = '0.60';
4 }
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use Gapp::Layout::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Sub::Exporter -setup => {
Subroutine BEGIN: called CC=1 SCAR=0.0
11 exports => [qw/Layout build add to extends paint style/],
12 groups => { default => [qw/Layout build add to extends paint style/] },
13 1 };
14  
15 {
16 1 my %Layouts;
17  
18 62 ▶ sub Layout {
Subroutine Layout: called CC=2 SCAR=7.1
Pod undocumented
19 62 my $caller = shift;
20 62 ▶ return $Layouts{$caller} ||= Gapp::Layout::Object->new;
Condition66%2/3
$Layouts{$caller} ||= "Gapp::Layout::Object"->new
l!l&&r!l&&!r
5930
MC/DC0%0/2
$Layouts{$caller} ||= "Gapp::Layout::Object"->new
$Layouts{$caller} "Gapp::Layout::Object"->new
Truth table66%2/3
A ||= B
A= $Layouts{$caller}B= "Gapp::Layout::Object"->new
ABresult
1X1
011
000
21 }
22 }
23  
24  
25  
26 1 ▶sub add {
Subroutine add: called CC=1 SCAR=0.0
Pod documented
27 20 my ( $widget, @args ) = @_;
28 20 caller()->Layout->add_packer( $widget, @args );
29 }
30  
31  
32 26 ▶sub build {
Subroutine build: called CC=1 SCAR=0.0
Pod documented
33 26 my ( $type, $definition ) = @_;
34 26 caller()->Layout->add_builder( $type => $definition );
35 }
36  
37 1 ▶sub extends {
Subroutine extends: called CC=1 SCAR=0.0
Pod documented
38 1 my ( $base ) = @_;
39 1 caller()->Layout->set_parent( $base->Layout );
40 }
41  
42 5 ▶sub paint {
Subroutine paint: called CC=1 SCAR=0.0
Pod undocumented
43 5 my ( $type, $definition ) = @_;
44 5 caller()->Layout->add_painter( $type => $definition );
45 }
46  
47 6 ▶sub style {
Subroutine style: called CC=1 SCAR=0.0
Pod documented
48 6 my ( $type, $definition ) = @_;
49 6 caller()->Layout->add_styler( $type => $definition );
50 }
51  
52 20 ▶sub to {
Subroutine to: called CC=1 SCAR=0.0
Pod documented
53 20 my ( $container, @args ) = @_;
54 20 return ( $container, @args );
55 }
56  
57  
58  
59 1 1;
60  
61  
62  
63  
64 __END__
« lib/Gapp/Gtk2/Model/SimpleList.pm ↑ Summary blib/lib/Gapp/Moose.pm »