Slack/Event/ReconnectURL.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 3 totaltotal 62.5% 20 / 32 CC 2 SCAR 8.6
CC
2
Cov
75%
uri
6.0
url
2.0
BEGIN
1.0
CRAP 2.4
« Slack/Event/PresenceChange.pm ↑ Summary Slack/Event/WorkflowStepEdit.pm »
1 package Net::Async::Slack::Event::ReconnectURL;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 our $VERSION = '0.015'; # VERSION
7  
8 =head1 NAME
9  
10 Net::Async::Slack::Event::ReconnectURL - Experimental
11  
12 =head1 DESCRIPTION
13  
14 Example input data:
15  
16 {
17 "type": "reconnect_url"
18 }
19  
20  
21 =cut
22  
23 4 ▶use URI;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 4 ▶use Net::Async::Slack::EventType;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 0 ▶sub url { shift->{url} }
Subroutine url: not called CC=1 SCAR=6.9
Pod undocumented
28  
29 0 ▶sub uri { $_[0]->{uri} //= URI->new($_[0]->url) }
Subroutine uri: not called CC=2 SCAR=17.9
Pod undocumented
Condition0%0/3
$_[0]{"uri"} //= "URI"->new($_[0]->url)
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[0]{"uri"} //= "URI"->new($_[0]->url)
$_[0]{"uri"} "URI"->new($_[0]->url)
Truth table0%0/3
A //= B
A= $_[0]{"uri"}B= "URI"->new($_[0]->url)
ABresult
1X1
011
000
30  
31 8 ▶sub type { 'reconnect_url' }
Subroutine type: called CC=1 SCAR=0.0
Pod undocumented
32  
33 4 1;
34  
« Slack/Event/PresenceChange.pm ↑ Summary Slack/Event/WorkflowStepEdit.pm »