Condition Coverage

blib/lib/MCP/Server/Transport/HTTP.pm
Criterion Covered Total %
condition 17 23 73.9


and 3 conditions

line !l l&&!r l&&r condition
31 14 1 12 $method eq "GET" and $self->streaming
32 1 1 13 $method eq "DELETE" and $self->streaming
126 0 89 18 $data->{'method'} and $data->{'method'} eq "initialize"
155 60 0 6 builtin::blessed($result) and $result->isa("Mojo::Promise")
181 7 1 1 not $session->stream and $session->last_used < $cutoff

or 2 conditions

line l !l condition
12 0 4 $ENV{'MCP_DEBUG'} || 0
103 1 0 $session->stream // 0
165 26 0 $c->stash("mcp.auth") // {}
26 0 +($c->stash("mcp.auth") // {})->{'scopes'} // []