File Coverage

blib/lib/Chef/REST/Client/clients.pm
Criterion Covered Total %
statement 3 11 27.2
branch n/a
condition n/a
subroutine 1 2 50.0
pod 1 1 100.0
total 5 14 35.7


line stmt bran cond sub pod time code
1             #--------------------------------------------------------------------#
2             # @class : Chef::Rest::Client::clients #
3             # @author : Bhavin Patel #
4             #--------------------------------------------------------------------#
5              
6             package Chef::REST::Client::clients;
7 2     2   3363 use parent qw { Chef::REST::Client::EndPoints };
  2         528  
  2         17  
8              
9             $Chef::REST::Client::clients::VERSION = 1.0;
10              
11             sub list
12             {
13 0     0 1   my $self = shift;
14 0           my $list_of_roles = $self->___data___;
15 0           foreach my $c ( keys(%$list_of_clients) ){
16 0           my $client = Chef::REST::Client::client( 'name' => $r,
17             'url' => $list_of_roles->{$r}
18             );
19 0           push @{'___clients_list___'} , $client;
  0            
20             }
21 0           return @{'___clients_list___'};
  0            
22             }
23            
24             1;
25            
26             __DATA__