Controller/ToolsParameterTreelist.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
load_treelist
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Daje::Controller::ToolsParameterTreelist;
2 use Mojo::Base 'Mojolicious::Controller', -signatures;
3 use v5.40;
4  
5  
6 # NAME
7 # ====
8 #
9 # Daje::Controller::Tools - Mojolicious Plugin
10 #
11 # SYNOPSIS
12 # ========
13 #
14 #
15 #
16 # DESCRIPTION
17 # ===========
18 #
19 # Daje::Controller::Tools is a Mojolicious plugin.
20 #
21 # METHODS
22 # =======
23 #
24 # Register plugin in L<Mojolicious> application.
25 #
26 # LICENSE
27 # =======
28 #
29 # Copyright (C) janeskil1525.
30 #
31 # This library is free software; you can redistribute it and/or modify
32 # it under the same terms as Perl itself.
33 #
34 # AUTHOR
35 # ======
36 #
37 # janeskil1525 E<lt>janeskil1525@gmail.com
38 #
39  
40 sub load_treelist($self) {
41  
42 $self->app->log->debug('Daje::Controller::ToolsParameterTreelist::load_treelist');
43 $self->render_later;
44  
45  
46 $self->tools_helper_parameter_treelist->load_treelist()->then(sub ($result){
47 $self->render(json => $result->{data});
48 })->catch(sub ($err) {
49 $self->render(json => { 'result' => 0, data => $err });
50 });
51 }
52  
53 1;
54 #################### pod generated by Pod::Autopod - keep this line to make pod updates possible ####################
55  
56 =head1 NAME
57  
58  
59 Daje::Controller::Tools - Mojolicious Plugin
60  
61  
62  
63 =head1 SYNOPSIS
64  
65  
66  
67  
68  
69  
70 =head1 DESCRIPTION
71  
72  
73 Daje::Controller::Tools is a Mojolicious plugin.
74  
75  
76  
77 =head1 REQUIRES
78  
79 L<v5.40>
80  
81 L<Mojo::Base>
82  
83  
84 =head1 METHODS
85  
86  
87 Register plugin in L<Mojolicious> application.
88  
89  
90  
91 =head1 AUTHOR
92  
93  
94 janeskil1525 E<lt>janeskil1525@gmail.com
95  
96  
97  
98 =head1 LICENSE
99  
100  
101 Copyright (C) janeskil1525.
102  
103 This library is free software; you can redistribute it and/or modify
104 it under the same terms as Perl itself.
105  
106  
107  
108 =cut
109