Slack/Event/Channel.pm

filter: Statementstmt 57.1% 8 / 14 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 33.3% 2 / 6 Podpod 0.0% 0 / 4 totaltotal 29.4% 10 / 34 CC 3 SCAR 13.2
CC
3
Cov
40%
channel
6.0
user
6.0
channel_id
2.0
CRAP 3.8
« Slack/Commands.pm ↑ Summary Slack/RTM.pm »
1 package Net::Async::Slack::Event::Channel;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 our $VERSION = '0.015'; # VERSION
7  
8 0 ▶sub channel {
Subroutine channel: not called CC=2 SCAR=17.9
Pod undocumented
9 0 my ($self) = @_;
10 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
11 }
12 0 ▶sub user {
Subroutine user: not called CC=2 SCAR=17.9
Pod undocumented
13 0 my ($self) = @_;
14 0 ▶ $self->{user} //= $self->slack->user_info($self->user_id)
Condition0%0/3
$self->{"user"} //= $self->slack->user_info($self->user_id)
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"user"} //= $self->slack->user_info($self->user_id)
$self->{"user"} $self->slack->user_info($self->user_id)
Truth table0%0/3
A //= B
A= $self->{"user"}B= $self->slack->user_info($self->user_id)
ABresult
1X1
011
000
15 }
16  
17 0 ▶sub channel_id { shift->{channel_id} }
Subroutine channel_id: not called CC=1 SCAR=6.9
Pod undocumented
18  
19 0 ▶sub user_id { shift->{user_id} }
Subroutine user_id: not called CC=1 SCAR=6.9
Pod undocumented
20  
21 5 1;
22  
« Slack/Commands.pm ↑ Summary Slack/RTM.pm »