Console/Input.pm

filter: Statementstmt 50.0% 4 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 54.5% 6 / 11 CC 1 SCAR 4.1
CC
1
Cov
50%
ask
2.0
BEGIN
1.0
CRAP 1.5
« Console.pm ↑ Summary
1 package Mojo::Console::Input;
2 2 ▶use Mojo::Base -base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 0 ▶sub ask {
Subroutine ask: not called CC=1 SCAR=6.9
Pod documented
5 0 my $self = shift;
6  
7 0 my $answer = <STDIN>;
8 0 chomp $answer;
9  
10 0 return $answer;
11 }
12  
13 2 1;
14  
15 =encoding utf8
16  
17 =head1 NAME
18  
19 Mojo::Console::Input - read things from STDIN
20  
21 =head1 METHODS
22  
23 L<Mojo::Console::Input> inherits all methods from L<Mojo::Base> and implements
24 the following new ones.
25  
26 =head2 ask
27  
28 my $answer = $self->ask;
29  
30 =cut
« Console.pm ↑ Summary