Plugin/Languages/Authorities.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
authorize
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Daje::Plugin::Languages::Authorities;
2 use Mojo::Base -base, -signatures;
3 use v5.42;
4  
5 # NAME
6 # ====
7 #
8 # Daje::Plugin::Languages::Authorities - Model class
9 #
10 # SYNOPSIS
11 # ========
12 #
13 #
14 #
15 #
16 # DESCRIPTION
17 # ===========
18 #
19 # Daje::Plugin::Languages::Authorities is the standard routes
20 #
21 # METHODS
22 # =======
23 #
24 #
25 # LICENSE
26 # =======
27 #
28 # Copyright (C) janeskil1525.
29 #
30 # This library is free software; you can redistribute it and/or modify
31 # it under the same terms as Perl itself.
32 #
33 # AUTHOR
34 # ======
35 #
36 # janeskil1525 E<lt>janeskil1525@gmail.com
37 #
38  
39 # This file is generated automatically by Daje Tools 2026-02-25 11:52:04.
40 # It will be generated by Daje Tools again.
41 # <!-- Autogenerated file 2026-02-25 11:52:04 -->
42  
43 use Daje::Helper::Authorities::InsertPluginFunction;
44  
45 has 'db';
46  
47 sub authorize($self) {
48  
49 try {
50 my $tx = $self->db->begin;
51 my @functions = (
52 "languages_types",
53 "languages_translations",
54 "languages_lan",
55 "languages_translation_keys"
56 );
57  
58 Daje::Helper::Authorities::InsertPluginFunction->new(
59 db => $self->db
60 )->process(
61 "languages", \@functions
62 );
63 $tx->commit();
64 } catch($e) {
65 say $e;
66 }
67 }
68  
69 1;
70