Condition Coverage

lib/Concierge.pm
Criterion Covered Total %
condition 26 82 31.7


and 3 conditions

line !l l&&!r l&&r condition
77 0 0 13 open $fh, "<", $concierge_conf_file and $json = readline $fh
0 0 13 open $fh, "<", $concierge_conf_file and $json = readline $fh and close $fh
118 0 0 13 $cleanup_result->{'success'} and $cleanup_result->{'active'}
228 0 0 1 defined $user_id and length $user_id
303 0 0 3 defined $user_id and length $user_id
314 2 0 1 $auth_exists && $users_exists
324 2 0 1 $users_exists and exists $user_result->{'user'}{'user_status'}
338 0 0 2 defined $user_id and length $user_id
346 0 0 2 $filtered_updates and keys %$filtered_updates
368 0 0 7 defined $user_id and length $user_id
571 0 0 4 defined $user_key and length $user_key
691 0 0 4 defined $user_id and length $user_id
694 0 0 4 defined $password and length $password
712 0 0 1 defined $user_id and length $user_id
715 0 0 1 defined $new_password and length $new_password
734 0 0 1 defined $session_id and length $session_id

or 2 conditions

line l !l condition
97 13 0 $concierge_config->{'sessions_backend'} || ''
212 0 0 $pwd_msg || 'Failed to set password'
247 0 0 $auth_msg || 'deletion failed'
374 0 0 $user_result->{'message'} || 'User not found'
400 0 0 $list_result->{'message'} || 'Failed to list users'
402 2 0 $list_result->{'user_ids'} // []
478 0 4 ($session_opts->{'timeout'} // $self->{'config'}{'anonymous_timeout'}) // 1800
530 1 0 $guest_data_result->{'value'} || {}
646 0 0 $auth_msg || 'Authentication failed'
655 0 0 $session_result->{'message'} || 'Failed to create session'
758 0 0 $delete_result->{'message'} || 'Failed to delete session'

or 3 conditions

line l !l&&r !l&&!r condition
97 13 0 0 $concierge_config->{'sessions_dir'} || $concierge_config->{'storage_dir'}
478 0 0 4 $session_opts->{'timeout'} // $self->{'config'}{'anonymous_timeout'}
701 4 0 0 $pwd_msg || ($pwd_ok ? 'Password verified' : 'Invalid password')
723 1 0 0 $reset_msg || ($reset_ok ? 'Password reset successful' : 'Password reset failed')