File Coverage

blib/lib/Etcd3/Auth/Enable.pm
Criterion Covered Total %
statement 27 30 90.0
branch n/a
condition n/a
subroutine 9 10 90.0
pod 1 1 100.0
total 37 41 90.2


line stmt bran cond sub pod time code
1 4     4   15 use utf8;
  4         4  
  4         18  
2             package Etcd3::Auth::Enable;
3              
4 4     4   122 use strict;
  4         4  
  4         58  
5 4     4   11 use warnings;
  4         5  
  4         65  
6              
7 4     4   12 use Moo;
  4         4  
  4         21  
8 4     4   708 use Types::Standard qw(Str Int Bool HashRef ArrayRef);
  4         8  
  4         23  
9 4     4   2289 use MIME::Base64;
  4         5  
  4         157  
10 4     4   13 use JSON;
  4         3  
  4         20  
11 4     4   359 use Data::Dumper;
  4         4  
  4         168  
12              
13             with 'Etcd3::Role::Actions';
14              
15 4     4   18 use namespace::clean;
  4         4  
  4         21  
16              
17             =head1 NAME
18              
19             Etcd3:Auth::Enable
20              
21             =cut
22              
23             our $VERSION = '0.005';
24              
25             =head1 DESCRIPTION
26              
27             Enable authentication
28              
29             =head2 endpoint
30              
31             =cut
32              
33             has endpoint => (
34             is => 'ro',
35             isa => Str,
36             default => '/auth/enable'
37             );
38              
39             =head2 json_args
40              
41             arguments that will be sent to the api
42              
43             =cut
44              
45             has json_args => (
46             is => 'ro',
47             default => '{}',
48             );
49              
50             =head2 init
51              
52             =cut
53              
54             sub init {
55 0     0 1   my ($self) = @_;
56 0           $self->json_args;
57 0           return $self;
58             }
59              
60             1;