SIAM/Attribute.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SIAM/ScopeMember.pm ↑ Summary SIAM/Contract.pm »
1 package SIAM::Attribute;
2  
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use base 'SIAM::Object';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8  
9 =head1 NAME
10  
11 SIAM::Attribute - Attribute object class
12  
13 =head1 SYNOPSIS
14  
15 =head1 METHODS
16  
17 =head2 name
18  
19 Returns the value of C<siam.attribute.name> attribute.
20  
21 =cut
22  
23 sub name
24 9 ▶{
Subroutine name: called CC=1 SCAR=0.0
Pod documented
25 9 my $self = shift;
26 9 return $self->attr('siam.attribute.name');
27 }
28  
29  
30 # mandatory attributes
31  
32 3 my $mandatory_attributes =
33 [ 'siam.attribute.name' ];
34  
35 sub _mandatory_attributes
36 18 ▶{
Subroutine _mandatory_attributes: called CC=1 SCAR=0.0
37 18 return $mandatory_attributes;
38 }
39  
40 sub _manifest_attributes
41 1 ▶{
Subroutine _manifest_attributes: called CC=1 SCAR=0.0
42 1 return $mandatory_attributes;
43 }
44  
45  
46 3 1;
47  
48 # Local Variables:
49 # mode: cperl
50 # indent-tabs-mode: nil
51 # cperl-indent-level: 4
52 # cperl-continued-statement-offset: 4
53 # cperl-continued-brace-offset: -4
54 # cperl-brace-offset: 0
55 # cperl-label-offset: -2
56 # End:
« SIAM/ScopeMember.pm ↑ Summary SIAM/Contract.pm »