File Coverage

blib/lib/Chef/Knife/Cmd/Search.pm
Criterion Covered Total %
statement 6 14 42.8
branch n/a
condition n/a
subroutine 2 4 50.0
pod 0 2 0.0
total 8 20 40.0


line stmt bran cond sub pod time code
1             package Chef::Knife::Cmd::Search;
2 6     6   18 use Moo;
  6         6  
  6         22  
3              
4 6     6   1014 use Chef::Knife::Cmd::Node::RunList;
  6         6  
  6         664  
5              
6             has knife => (is => 'ro', required => 1, handles => [qw/handle_options run/]);
7              
8             sub node {
9 0     0 0   my ($self, $query, %options) = @_;
10 0           my @opts = $self->handle_options(%options);
11 0           my @cmd = (qw/knife search node/, $query, @opts);
12 0           $self->run(@cmd);
13             }
14              
15             sub client {
16 0     0 0   my ($self, $query, %options) = @_;
17 0           my @opts = $self->handle_options(%options);
18 0           my @cmd = (qw/knife search client/, $query, @opts);
19 0           $self->run(@cmd);
20             }
21              
22             1;