SIOC/Thread.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 87.5% 21 / 24 CC 1 SCAR 1.8
CC
1
Cov
89%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« SIOC/User.pm ↑ Summary SIOC/Role.pm »
1 ###########################################################
2 # SIOC::Thread
3 # Thread class for the SIOC ontology
4 ###########################################################
5 #
6 # $Id: Thread.pm 10 2008-03-01 21:38:39Z geewiz $
7 #
8  
9 package SIOC::Thread;
10  
11 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 3 ▶use version; our $VERSION = qv(1.0.0);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 3 extends 'SIOC::Container';
19  
20 ### required attributes
21  
22 3 has 'page' => (
23 isa => 'Num',
24 is => 'ro',
25 required => 1,
26 );
27  
28 ### methods
29  
30 0 ▶after 'fill_template' => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
31 0 my ($self) = @_;
32
33 0 $self->set_template_var(page => $self->page);
34 3 };
35  
36 3 1;
37 __DATA__
« SIOC/User.pm ↑ Summary SIOC/Role.pm »