Branch Coverage

blib/lib/SignalWire/Agents/SWML/Service.pm
Criterion Covered Total %
branch 22 36 61.1


line true false branch
61 4 4 if $method eq "DESTROY"
64 3 1 if ($schema->has_verb($method))
68 1 2 if ($method eq 'sleep') { }
87 8 2 if $code
90 0 2 if ($schema and $schema->has_verb($method))
100 4 0 if (open my $fh, "<:raw", "/dev/urandom")
104 4 0 if (defined $read and $read == $len)
124 1 2 unless $auth =~ /^Basic\s+(.+)$/i
127 0 2 unless defined $user and defined $pass
153 0 0 unless $input
168 2 4 if ($path eq "/health" or $path eq "/ready")
176 0 4 if $route eq "/"
177 0 4 if $path eq "/"
184 0 1 if ($is_swml_route or $is_swaig_route or $is_post_prompt)
186 2 1 unless ($self->_check_basic_auth($env))
194 1 0 if ($is_swml_route) { }
0 0 elsif ($is_swaig_route) { }
0 0 elsif ($is_post_prompt) { }