lib/Project/Easy/Helper/Console.pm

filter: Statementstmt 33.3% 8 / 24 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 2 totaltotal 27.0% 10 / 37 CC 5 SCAR 20.2
CC
5
Cov
25%
console
8.7
console
8.7
BEGIN
1.0
CRAP 7.6
« lib/Project/Easy.pm ↑ Summary lib/Project/Easy/Config/File.pm »
1 package Project::Easy::Helper;
2  
3 6 ▶use Class::Easy;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 0 ▶sub console {
Subroutine console: not called CC=3 SCAR=21.6
Pod undocumented
6  
7 4 ▶ my @params = @ARGV;
Subroutine console: called CC=3 SCAR=21.6
Pod undocumented
8 0 ▶ @params = @_
Branch: 2 branches
BranchTrueFalseTotal
if scalar @_ 0 0 0
if scalar @_ 0 0 0
9 if scalar @_;
10
11 0 my ($package, $libs) = &_script_wrapper(); # Project name and "libs" path
12  
13 0 ▶ unless (try_to_use ('Devel::REPL')) {
Branch: 2 branches
BranchTrueFalseTotal
unless (try_to_use("Devel::REPL")) 0 0 0
unless (try_to_use("Devel::REPL")) 0 0 0
14 0 die "Devel::REPL required for interactive console";
15 }
16
17 0 my $repl = Devel::REPL->new;
18 0 $repl->load_plugin('LexEnv');
19 0 $repl->load_plugin('History');
20 # $repl->load_plugin('MultiLine::PPI');
21
22 0 $repl->lexical_environment->do(<<'CODEZ');
23 use Class::Easy;
24 use IO::Easy;
25 CODEZ
26
27 0 $repl->run;
28  
29 }
30  
31 6 1;
« lib/Project/Easy.pm ↑ Summary lib/Project/Easy/Config/File.pm »