Controller/Authorities/Super/AuthoritiesLicense.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
load_authorities_license_pkey
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Daje::Controller::Authorities::Super::AuthoritiesLicense;
2 use Mojo::Base 'Mojolicious::Controller', -base, -signatures;
3 use v5.42;
4  
5 # NAME
6 # ====
7 #
8 # Daje::Controller::Super::Authorities::AuthoritiesLicense - Model class
9 #
10 # SYNOPSIS
11 # ========
12 #
13 # use Daje::Controller::Authorities::Super::vAuthoritiesLicense##
14 #
15 # DESCRIPTION
16 # ===========
17 #
18 # Daje::Controller::Authorities::Super::AuthoritiesLicense is a standard controller
19 #
20 # METHODS
21 # =======
22 #
23 #
24 # LICENSE
25 # =======
26 #
27 # Copyright (C) janeskil1525.
28 #
29 # This library is free software; you can redistribute it and/or modify
30 # it under the same terms as Perl itself.
31 #
32 # AUTHOR
33 # ======
34 #
35 # janeskil1525 E<lt>janeskil1525@gmail.com
36 #
37 # This file is generated automatically by Daje Tools 2026-03-01 05:33:54.
38 # It will be re-generated by Daje Tools again.
39 # <!-- Autogenerated file 2026-03-01 05:33:54 -->
40  
41 our $VERSION = '0.01';
42  
43 sub load_authorities_license_pkey($self) {
44 $self->app->log->debug('Daje::Controller::Super::AuthoritiesLicense::load_authorities__fkey ');
45 $self->render_later;
46 my ($companies_pkey, $users_pkey) = $self->jwt->companies_users_pkey(
47 $self->req->headers->header('X-Token-Check')
48 );
49 my $pkey = $self->param('authorities_license_pkey');
50  
51 $self->app->log->debug($self->req->headers->header('X-Token-Check'));
52 # my $setting = $self->param('setting');
53 $self->v_authorities_license->load_authorities_license_pkey_p($pkey)->then(sub($result) {
54 $self->render(json => $result->{data});
55 })->catch(sub($err) {
56 $self->app->log->error('Daje::Controller::Super::AuthoritiesLicense::load_authorities_license_pkey ' . $err);
57 $self->render
58 });
59 }
60  
61 1;
62