Slack/Event/Message.pm

filter: Statementstmt 50.0% 12 / 24 Branchbran n/a Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 30.7% 4 / 13 Podpod 0.0% 0 / 10 totaltotal 25.8% 16 / 62 CC 4 SCAR 11.8
CC
4
Cov
36%
channel
6.0
source_team
6.0
team
6.0
CRAP 3.2
« Slack/RTM.pm ↑ Summary Slack/Event/PresenceChange.pm »
1 package Net::Async::Slack::Event::Message;
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 4 ▶use Net::Async::Slack::EventType;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 DESCRIPTION
11  
12 {
13 channel => "D5GSPCF62",
14 source_team => "T4PQME0Q2",
15 team => "T4PQME0Q2",
16 text => "test",
17 ts => "1497119268.495648",
18 type => "message",
19 user => "U4P3UKGBA"
20 }
21  
22 =cut
23  
24 0 ▶sub slack { shift->{slack} }
Subroutine slack: not called CC=1 SCAR=6.9
Pod undocumented
25  
26 0 ▶sub channel {
Subroutine channel: not called CC=2 SCAR=17.9
Pod undocumented
27 0 my ($self) = @_;
28 0 ▶ $self->{channel} //= $self->slack->channel_info($self->channel_id)
Condition0%0/3
$self->{"channel"} //= $self->slack->channel_info($self->channel_id)
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"channel"} //= $self->slack->channel_info($self->channel_id)
$self->{"channel"} $self->slack->channel_info($self->channel_id)
Truth table0%0/3
A //= B
A= $self->{"channel"}B= $self->slack->channel_info($self->channel_id)
ABresult
1X1
011
000
29 }
30  
31 0 ▶sub source_team {
Subroutine source_team: not called CC=2 SCAR=17.9
Pod undocumented
32 0 my ($self) = @_;
33 0 ▶ $self->{source_team} //= $self->slack->team_info($self->source_team_id)
Condition0%0/3
$self->{"source_team"} //= $self->slack->team_info($self->source_team_id)
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"source_team"} //= $self->slack->team_info($self->source_team_id)
$self->{"source_team"} $self->slack->team_info($self->source_team_id)
Truth table0%0/3
A //= B
A= $self->{"source_team"}B= $self->slack->team_info($self->source_team_id)
ABresult
1X1
011
000
34 }
35  
36 0 ▶sub team {
Subroutine team: not called CC=2 SCAR=17.9
Pod undocumented
37 0 my ($self) = @_;
38 0 ▶ $self->{team} //= $self->slack->team_info($self->team_id)
Condition0%0/3
$self->{"team"} //= $self->slack->team_info($self->team_id)
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"team"} //= $self->slack->team_info($self->team_id)
$self->{"team"} $self->slack->team_info($self->team_id)
Truth table0%0/3
A //= B
A= $self->{"team"}B= $self->slack->team_info($self->team_id)
ABresult
1X1
011
000
39 }
40  
41 0 ▶sub channel_id { shift->{channel_id} }
Subroutine channel_id: not called CC=1 SCAR=6.9
Pod undocumented
42  
43 0 ▶sub source_team_id { shift->{source_team_id} }
Subroutine source_team_id: not called CC=1 SCAR=6.9
Pod undocumented
44  
45 0 ▶sub team_id { shift->{team_id} }
Subroutine team_id: not called CC=1 SCAR=6.9
Pod undocumented
46  
47 0 ▶sub text { shift->{text} }
Subroutine text: not called CC=1 SCAR=6.9
Pod undocumented
48  
49 0 ▶sub ts { shift->{ts} }
Subroutine ts: not called CC=1 SCAR=6.9
Pod undocumented
50  
51 8 ▶sub type { 'message' }
Subroutine type: called CC=1 SCAR=0.0
Pod undocumented
52  
53 4 1;
54  
« Slack/RTM.pm ↑ Summary Slack/Event/PresenceChange.pm »