PerlActor/Command/Unknown.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 94.4% 17 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PerlActor/Command/Null.pm ↑ Summary PerlActor/Exception/AssertionFailure.pm »
1 package PerlActor::Command::Unknown;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 ▶use base 'PerlActor::Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use PerlActor::Exception::CommandNotFound;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 #===============================================================================================
9 # Public Methods
10 #===============================================================================================
11  
12 sub execute
13 1 ▶{
Subroutine execute: called CC=1 SCAR=0.0
Pod undocumented
14 1 my $self = shift;
15 1 my $error = $self->getParam(0);
16 1 throw PerlActor::Exception::CommandNotFound("unknown or invalid command: $error");
17 }
18  
19 #===============================================================================================
20 # Protected Methods - Don't even think about calling these from outside the class.
21 #===============================================================================================
22  
23 # Keep Perl happy.
24 1 1;
« PerlActor/Command/Null.pm ↑ Summary PerlActor/Exception/AssertionFailure.pm »