Branch Coverage

blib/lib/Plack/Middleware/WOVN/Store.pm
Criterion Covered Total %
branch 0 38 0.0


line true false branch
53 0 0 if (length $user_token < 5 or length $user_token > 6)
57 0 0 if (not defined $secret_key or $secret_key eq '')
59 0 0 unless defined $secret_key
62 0 0 if (not defined $url_pattern or $url_pattern eq '')
64 0 0 unless defined $url_pattern
67 0 0 if (not $query or ref $query ne 'ARRAY')
69 0 0 unless defined $query
72 0 0 if (not defined $api_url or $api_url eq '')
76 0 0 if (not defined $default_lang or $default_lang eq '')
78 0 0 unless defined $default_lang
81 0 0 if (not $supported_langs or ref $supported_langs ne 'ARRAY' or @$supported_langs < 1)
89 0 0 if (@errors)
101 0 0 unless ($self->config_loaded)
104 0 0 unless (exists $settings->{'supported_langs'})
107 0 0 if ($settings->{'url_pattern'} eq 'path') { }
0 0 elsif ($settings->{'url_pattern'} eq 'query') { }
0 0 elsif ($settings->{'url_pattern'} eq 'subdomain') { }
117 0 0 if (not $settings->{'test_mode'} or $settings->{'test_mode'} ne 'on') { }
141 0 0 if ($res->is_success)