IDL/TypeDef.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 77.7% 14 / 18 CC 1 SCAR 2.2
CC
1
Cov
85%
to_str
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Parser/Type/string.pm ↑ Summary IDL/Type/Custom.pm »
1 package Thrift::IDL::TypeDef;
2  
3 =head1 NAME
4  
5 Thrift::IDL::TypeDef
6  
7 =head1 DESCRIPTION
8  
9 Inherits from L<Thrift::IDL::Definition>
10  
11 =cut
12  
13 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 4 ▶use base qw(Thrift::IDL::Definition);
Subroutine BEGIN: called CC=1 SCAR=0.0
16 4 __PACKAGE__->mk_accessors(qw(type name));
17  
18 =head1 METHODS
19  
20 =head2 type
21  
22 =head2 name
23  
24 Scalar accessors
25  
26 =cut
27  
28 0 ▶sub to_str {
Subroutine to_str: not called CC=1 SCAR=6.9
Pod undocumented
29 0 my ($self) = @_;
30 0 return sprintf 'typedef "%s" isa %s', $self->name, $self->type;
31 }
32  
33 4 1;
« Parser/Type/string.pm ↑ Summary IDL/Type/Custom.pm »