blib/lib/App/Asciio/Dialogs.pm

filter: Statementstmt 28.2% 11 / 39 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 30.0% 3 / 10 Podpod 0.0% 0 / 7 totaltotal 25.0% 14 / 56 CC 1 SCAR 5.3
CC
1
Cov
28%
get_color_from_user
2.0
show_dump_window
2.0
display_message_modal
2.0
CRAP 1.7
« lib/App/Asciio/stripes/stripes.pm ↑ Summary blib/lib/App/Asciio/setup/Text/actions/vim_bindings.pl »
1  
2 package App::Asciio ;
3 4 $|++ ;
4  
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 ▶use Data::TreeDumper ;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 #-----------------------------------------------------------------------------
11  
12 sub get_color_from_user
13 0 ▶{
Subroutine get_color_from_user: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my ($self, $previous_color) = @_ ;
15  
16 0 return [1, 0, 0] ;
17 }
18  
19 #-----------------------------------------------------------------------------
20  
21 sub show_dump_window
22 0 ▶{
Subroutine show_dump_window: not called CC=1 SCAR=6.9
Pod undocumented
23 0 my ($self, $data, $title, @dumper_setup) = @_ ;
24  
25 0 print DumpTree $data, $title, @dumper_setup ;
26 }
27  
28 #-----------------------------------------------------------------------------
29  
30 sub display_message_modal
31 0 ▶{
Subroutine display_message_modal: not called CC=1 SCAR=6.9
Pod undocumented
32 0 my ($self, $message) = @_ ;
33  
34 0 print $message ;
35 }
36  
37 #-----------------------------------------------------------------------------
38  
39 sub display_yes_no_cancel_dialog
40 0 ▶{
Subroutine display_yes_no_cancel_dialog: not called CC=1 SCAR=6.9
Pod undocumented
41 0 my ($self, $title, $text) = @_ ;
42  
43 0 print "$title\n$text\n" ;
44  
45 0 print "Yes/No/Cancel\n" ;
46 0 my $answer = <STDIN> ;
47 0 chomp ($answer) ;
48  
49 0 return $answer ;
50 }
51  
52 #-----------------------------------------------------------------------------
53  
54 sub display_quit_dialog
55 0 ▶{
Subroutine display_quit_dialog: not called CC=1 SCAR=6.9
Pod undocumented
56 0 my ($self, $title, $text) = @_ ;
57  
58 0 print "$title\n$text\n" ;
59 0 print "Yes/No/Cancel\n" ;
60  
61 0 my $answer = <STDIN> ;
62 0 chomp ($answer) ;
63  
64 0 return $answer ;
65 }
66  
67 sub display_edit_dialog
68 0 ▶{
Subroutine display_edit_dialog: not called CC=1 SCAR=6.9
Pod undocumented
69 0 my ($self, $title, $text) = @_ ;
70  
71 0 print "$title\n$text\n" ;
72  
73 0 my $answer = <STDIN> ;
74 0 chomp ($answer) ;
75  
76 0 return $answer ;
77 }
78  
79 #-----------------------------------------------------------------------------
80  
81 sub get_file_name
82 0 ▶{
Subroutine get_file_name: not called CC=1 SCAR=6.9
Pod undocumented
83 0 my ($self, $type) = @_ ;
84  
85 0 print "get_file_name:\n" ;
86  
87 0 my $answer = <STDIN> ;
88 0 chomp ($answer) ;
89  
90 0 return $answer ;
91 }
92  
93 #-----------------------------------------------------------------------------
94  
95 4 1 ;
« lib/App/Asciio/stripes/stripes.pm ↑ Summary blib/lib/App/Asciio/setup/Text/actions/vim_bindings.pl »