blib/lib/Erlang/Parser/Node/BaseInteger.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 100% 16 / 16 CC 2 SCAR 5.1
CC
2
Cov
100%
print
2.0
BEGIN
1.0
CRAP 1.7
« blib/lib/Erlang/Parser/Node/FunRef.pm ↑ Summary blib/lib/Erlang/Parser/Node/BinOp.pm »
1 # Copyright 2011-2012 Yuki Izumi. ( anneli AT cpan DOT org )
2 # This is free software; you can redistribute it and/or modify it under the
3 # same terms as Perl itself.
4  
5 package Erlang::Parser::Node::BaseInteger;
6  
7 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 with 'Erlang::Parser::Node';
9  
10 4 has 'baseinteger' => (is => 'rw', required => 1, isa => 'Str');
11  
12 sub print {
13 380 ▶ my ($self, $fh, $depth) = @_;
Subroutine print: called CC=2 SCAR=6.9
Pod documented
14 380 ▶ $depth ||= 0;
Condition100%2/2
$depth ||= 0
l!l
36020
MC/DC100%1/1
$depth ||= 0
$depth
Truth table100%2/2
A
A= $depth
Aresult
11
00
15 380 print $fh $self->baseinteger;
16 }
17  
18 4 __PACKAGE__->meta->make_immutable;
19  
20 =head1 NAME
21  
22 Erlang::Parser::Node::BaseInteger - a number with base
23  
24 =head1 DESCRIPTION
25  
26 A number with a specified base.
27  
28 =head2 Accessors
29  
30 =over 4
31  
32 =item C<baseinteger>
33  
34 The string representation of the number.
35  
36 =back
37  
38 =head2 Methods
39  
40 =over 4
41  
42 =item C<print>
43  
44 Pretty-prints the node to its filehandle argument.
45  
46 =back
47  
48 =head1 EXAMPLE
49  
50 16#f7f7f7f7
51  
52 =cut
53  
54 4 1;
55  
56 # vim: set sw=4 ts=4:
« blib/lib/Erlang/Parser/Node/FunRef.pm ↑ Summary blib/lib/Erlang/Parser/Node/BinOp.pm »