Code/Function/BuildIn.pm

filter: Statementstmt 71.4% 10 / 14 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 57.6% 15 / 26 CC 2 SCAR 10.4
CC
2
Cov
59%
return
6.0
is_buildin
2.0
BEGIN
1.0
CRAP 2.8
« Code/Accessor.pm ↑ Summary Code/Expression/Boolean.pm »
1 package JavaScript::Code::Function::BuildIn;
2
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use vars qw[ $VERSION ];
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use base qw[ JavaScript::Code::Function ];
Subroutine BEGIN: called CC=1 SCAR=0.0
6
7 2 $VERSION = '0.08';
8
9 =head1 NAME
10
11 JavaScript::Code::Function::BuildIn - JavaScript Build-In Functions
12
13 =head1 METHODS
14
15 =cut
16
17 =head2 is_buildin
18
19 =cut
20
21 0 ▶sub is_buildin { return 1; }
Subroutine is_buildin: not called CC=1 SCAR=6.9
Pod documented
22
23 =head2 return
24
25 The return function.
26
27 =cut
28
29 0 ▶sub return {
Subroutine return: not called CC=2 SCAR=17.9
Pod documented
30 0 my $obj = shift;
31 0 ▶ my $class = ref $obj || $obj;
Condition0%0/3
ref $obj || $obj
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $obj || $obj
ref $obj $obj
Truth table0%0/3
A || B
A= ref $objB= $obj
ABresult
1X1
011
000
32
33 0 return $class->new( name => 'return' );
34 }
35
36 =head1 SEE ALSO
37
38 L<JavaScript::Code>
39
40 =head1 AUTHOR
41
42 Sascha Kiefer, C<esskar@cpan.org>
43
44 =head1 LICENSE
45
46 This library is free software, you can redistribute it and/or modify it under
47 the same terms as Perl itself.
48
49 1;
« Code/Accessor.pm ↑ Summary Code/Expression/Boolean.pm »