Helper/Languages/Translations.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Daje::Helper::Languages::Translations;
2 use Mojo::Base -base, -signatures, -async_await;
3 use v5.42;
4  
5 use Data::Dumper;
6  
7 has 'db';
8  
9  
10 async sub load_translations_p($self, $users_pkey) {
11 my $stmt = qq{
12 SELECT * from v_languages_with_keys_list
13 WHERE languages_lan_pkey = (SELECT languages_lan_fkey FROM users_users WHERE users_users_pkey = ?)
14 };
15 my $result = $self->db->query($stmt, ($users_pkey));
16  
17 my $hashes;
18 $hashes = $result->hashes if $result and $result->rows > 0;
19  
20 return $hashes;
21 }
22 1;