File Coverage

blib/lib/Algorithm/Classifier/IsolationForest/App/Command.pm
Criterion Covered Total %
statement 12 17 70.5
branch 1 2 50.0
condition n/a
subroutine 4 5 80.0
pod 1 2 50.0
total 18 26 69.2


line stmt bran cond sub pod time code
1             package Algorithm::Classifier::IsolationForest::App::Command;
2 81     81   55705 use strict;
  81         253  
  81         2847  
3 81     81   373 use warnings;
  81         147  
  81         3578  
4 81     81   344 use App::Cmd::Setup -command;
  81         166  
  81         422  
5              
6             sub global_opt_spec {
7 0     0 0 0 my ( $class, $app ) = @_;
8 0         0 return ( $class->options($app), );
9             }
10              
11             sub validate_args {
12 81     81 1 212273 my ( $self, $opt, $args ) = @_;
13 81 50       565 if ( $opt->{help} ) {
14 0         0 my ($command) = $self->command_names;
15 0         0 $self->app->execute_command( $self->app->prepare_command( "help", $command ) );
16 0         0 exit;
17             }
18 81         439 $self->validate( $opt, $args );
19             }
20              
21             return 1;