Client/Message.pm

filter: Statementstmt 90.9% 20 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 86.6% 26 / 30 CC 1 SCAR 1.3
CC
1
Cov
91%
get_web_url
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Client/SubReddit.pm ↑ Summary Client/Account.pm »
1 package Reddit::Client::Message;
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 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 5 require Reddit::Client::Thing;
8  
9 5 ▶use base qw/Reddit::Client::Thing/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use fields qw/
Subroutine BEGIN: called CC=1 SCAR=0.0
11 author
12 body
13 body_html
14 context
15 created
16 created_utc
17 dest
18 distinguished
19 first_message
20 first_message_name
21 likes
22 link_title
23 new
24 parent_id
25 permalink
26 replies
27 subject
28 subreddit
29 was_comment
30 5 /;
31  
32  
33 5 ▶use constant type => "t4";
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 0 ▶sub get_web_url {
Subroutine get_web_url: not called CC=1 SCAR=6.9
Pod undocumented
36 0 my $this = shift;
37 0 return $this->{session}->get_origin()."/message/messages/".$this->{id};
38 }
39  
40 5 1;
41 __END__
« Client/SubReddit.pm ↑ Summary Client/Account.pm »