File Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command.pm
Criterion Covered Total %
statement 6 11 54.5
branch 1 2 50.0
condition n/a
subroutine 2 3 66.6
pod 1 2 50.0
total 10 18 55.5


line stmt bran cond sub pod time code
1             package Algorithm::Classifier::IsolationForest::App::Command;
2 9     9   6261 use App::Cmd::Setup -command;
  9         18  
  9         71  
3              
4             sub global_opt_spec {
5 0     0 0 0 my ( $class, $app ) = @_;
6 0         0 return ( $class->options($app), );
7             }
8              
9             sub validate_args {
10 9     9 1 13149 my ( $self, $opt, $args ) = @_;
11 9 50       65 if ( $opt->{help} ) {
12 0         0 my ($command) = $self->command_names;
13 0         0 $self->app->execute_command( $self->app->prepare_command( "help", $command ) );
14 0         0 exit;
15             }
16 9         42 $self->validate( $opt, $args );
17             }
18              
19             return 1;