line |
true |
false |
branch |
19
|
1 |
44 |
unless ($id) |
33
|
5 |
39 |
unless $result->rows |
47
|
4 |
33 |
unless ($params{'context_name'}) |
52
|
2 |
31 |
if (length $params{'context_name'} > 255 or length $params{'context_name'} < 3) |
68
|
1 |
30 |
if $error |
77
|
1 |
5 |
unless ($id) |
82
|
1 |
4 |
if (ref $id) |
114
|
1 |
3 |
if $error |
121
|
3 |
6 |
@params % 2 ? : |
124
|
3 |
5 |
if (exists $to_update{'context_name'} and length $to_update{'context_name'} > 255 || length $to_update{'context_name'} < 3) |
147
|
1 |
5 |
if $error |
149
|
1 |
4 |
unless ($result->rows) |
177
|
1 |
6 |
if $error |
184
|
1 |
9 |
unless ($self->context_id) |
189
|
2 |
7 |
if (&any(sub {
not $params{$_};
}
, 'user_id', 'roles')) |
208
|
1 |
5 |
unless @{$params{'roles'}} |
229
|
1 |
6 |
if $error |
236
|
1 |
8 |
unless ($self->context_id) |
241
|
2 |
6 |
if (&any(sub {
not $params{$_};
}
, 'role_id', 'users')) |
260
|
1 |
4 |
unless @{$params{'users'}} |
281
|
1 |
5 |
if $error |
288
|
1 |
10 |
unless ($self->context_id) |
294
|
1 |
9 |
unless ($role_id) |
322
|
1 |
8 |
if $error |
329
|
1 |
11 |
unless ($self->context_id) |
335
|
1 |
10 |
unless ($user_id) |
363
|
1 |
9 |
if $error |