File Coverage

blib/lib/Chef/Knife/Cmd/DataBag.pm
Criterion Covered Total %
statement 6 12 50.0
branch 0 2 0.0
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 18 44.4


line stmt bran cond sub pod time code
1             package Chef::Knife::Cmd::DataBag;
2 6     6   19 use Moo;
  6         7  
  6         22  
3              
4 6     6   1068 use Chef::Knife::Cmd::Node::RunList;
  6         7  
  6         556  
5              
6             has knife => (is => 'ro', required => 1, handles => [qw/handle_options run/]);
7              
8             sub show {
9 0     0 0   my ($self, $data_bag, $item, %options) = @_;
10 0           my @opts = $self->handle_options(%options);
11 0           my @cmd = (qw/knife data bag show/, $data_bag);
12 0 0         push @cmd, $item if $item;
13 0           push @cmd, @opts;
14 0           $self->run(@cmd);
15             }
16              
17             1;