Cookbook/Recipe01/Main.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Cookbook/Recipe04/Main.pm ↑ Summary Cookbook/Recipe02/Main.pm »
1 package Padre::Plugin::Cookbook::Recipe01::Main;
2  
3 2 ▶use v5.10.1;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # use diagnostics;
8 # use utf8;
9 # use autodie;
10  
11 # Version required
12 our $VERSION = '0.24';
13 2 ▶use parent qw( Padre::Plugin::Cookbook::Recipe01::FBP::MainFB );
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 #######
16 # Method new
17 #######
18 sub new {
19 my $class = shift;
20  
21 # Padre main window integration
22 my $main = shift;
23  
24 # Create the dialog
25 my $self = $class->SUPER::new($main);
26  
27 # define where to display main dialog
28 $self->CenterOnParent;
29 return $self;
30 }
31  
32 1;
33  
34 __END__
« Cookbook/Recipe04/Main.pm ↑ Summary Cookbook/Recipe02/Main.pm »