Vault/Secret/LeasableBase.pm

filter: Statementstmt 78.5% 11 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 70.0% 14 / 20 CC 2 SCAR 12.5
CC
2
Cov
69%
creds
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« Vault/Base.pm ↑ Summary Vault.pm »
1 #!perl
2 # vim: softtabstop=4 tabstop=4 shiftwidth=4 ft=perl expandtab smarttab
3 # ABSTRACT: Perl API for HashiCorp's Vault (Secret)
4  
5 # See also https://github.com/hashicorp/vault-ruby
6 # And https://github.com/ianunruh/hvac
7 # And https://www.vaultproject.io/api/index.html
8  
9 package WebService::HashiCorp::Vault::Secret::LeasableBase;
10  
11 10 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 10 our $VERSION = '0.04'; # VERSION
13 10 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 10 extends 'WebService::HashiCorp::Vault::Base';
16  
17 10 has 'path' => ( is => 'ro' );
18 10 has 'auth' => ( is => 'ro' );
19  
20  
21 0 ▶sub creds {
Subroutine creds: not called CC=2 SCAR=17.9
Pod documented
22 0 my $self = shift;
23 0 ▶ my $name = shift or return;
Branch: 1 branch
BranchTrueFalseTotal
my $name = shift() or return 0 0 0
24 0 return $self->get( $self->_mkuri($self->path, $name) );
25 }
26  
27  
28 10 1;
29  
30 __END__
« Vault/Base.pm ↑ Summary Vault.pm »