lib/TUI/App/Application.pm

filter: Statementstmt 58.4% 38 / 65 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 68.7% 11 / 16 Podpod 100% 5 / 5 totaltotal 57.4% 54 / 94 CC 5 SCAR 14.9
CC
5
Cov
52%
BUILD
12.0
DEMOLISH
12.0
new_TApplication
2.0
CRAP 4.5
« lib/TUI/Drivers/Screen.pm ↑ Summary lib/TUI/Gadgets/HeapView.pm »
1 package TUI::App::Application;
2 # ABSTRACT: TApplication is a generic application as a basis for your own apps.
3
4 4 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 4 our $VERSION = '2.000002';
9 4 $VERSION =~ tr/_//d;
10 4 our $AUTHORITY = 'cpan:BRICKPOOL';
11
12 4 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13 4 our @EXPORT = qw(
14 TApplication
15 new_TApplication
16 );
17
18 4 ▶use TUI::toolkit;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 4 ▶use TUI::toolkit::Types qw( :Object );
Subroutine BEGIN: called CC=1 SCAR=0.0
20
21 4 ▶use TUI::App::Program;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 4 ▶use TUI::Dialogs::HistoryViewer::HistList qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
23 initHistory
24 doneHistory
25 4 );
26 4 ▶use TUI::Drivers::EventQueue;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 4 ▶use TUI::Drivers::Screen;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 4 ▶use TUI::Drivers::SystemError;
Subroutine BEGIN: called CC=1 SCAR=0.0
29
30 sub TApplication() { __PACKAGE__ }
31 0 ▶sub new_TApplication { __PACKAGE__->from(@_) }
Subroutine new_TApplication: not called CC=1 SCAR=6.9
Pod documented
32
33 4 extends TProgram;
34
35 0 ▶sub BUILD { # void (\%args)
Subroutine BUILD: not called CC=3 SCAR=24.8
Pod documented
36 0 my ( $self, $args ) = @_;
37 0 ▶ assert ( @_ == 2 );
Branch: 1 branch
BranchTrueFalseTotal
unless @_ == 2 0 0 0
38 0 ▶ assert ( is_Object $self );
Branch: 1 branch
BranchTrueFalseTotal
unless &is_Object($self) 0 0 0
39 0 initHistory();
40 0 return;
41 }
42
43 0 ▶sub DEMOLISH { # void ($in_global_destruction)
Subroutine DEMOLISH: not called CC=3 SCAR=24.8
Pod documented
44 0 my ( $self, $in_global_destruction ) = @_;
45 0 ▶ assert ( @_ == 2 );
Branch: 1 branch
BranchTrueFalseTotal
unless @_ == 2 0 0 0
46 0 ▶ assert ( is_Object $self );
Branch: 1 branch
BranchTrueFalseTotal
unless &is_Object($self) 0 0 0
47 0 doneHistory();
48 0 return;
49 }
50
51 0 ▶sub suspend {
Subroutine suspend: not called CC=1 SCAR=6.9
Pod documented
52 0 state $sig = signature(
53 method => Object,
54 pos => [],
55 );
56 0 $sig->( @_ );
57 0 TSystemError->suspend();
58 0 TEventQueue->suspend();
59 0 TScreen->suspend();
60 # TVMemMgr->suspend(); # Release discardable memory.
61 0 return;
62 }
63
64 0 ▶sub resume {
Subroutine resume: not called CC=1 SCAR=6.9
Pod documented
65 0 state $sig = signature(
66 method => Object,
67 pos => [],
68 );
69 0 $sig->( @_ );
70 0 TScreen->resume();
71 0 TEventQueue->resume();
72 0 TSystemError->resume();
73 0 return;
74 }
75
76 4 1
77
78 __END__
« lib/TUI/Drivers/Screen.pm ↑ Summary lib/TUI/Gadgets/HeapView.pm »