CORBA/ServerRequest.pm

filter: Statementstmt 5.5% 1 / 18 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 3.2% 1 / 31 CC 4 SCAR 23.0
CC
4
Cov
4%
params
20.0
new
2.0
result
2.0
CRAP 10.0
« CORBA/Object.pm ↑ Summary LName.pm »
1 # $Id: ServerRequest.pm,v 1.2 1997/05/21 11:28:06 schuller Exp $
2 # Copyright (c) 1997 Lunatech Research / Bart Schuller <schuller@lunatech.com>
3 # See the file "Artistic" in the distribution for licensing and
4 # (lack of) warranties.
5  
6 # interface ServerRequest
7 package CORBA::ServerRequest;
8  
9 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
10 0 my($class, $operation, $byte_order, $data, $index) = @_;
11 0 my $self = {
12 operation => $operation,
13 byte_order => $byte_order,
14 data => $data,
15 data_index => $index,
16 };
17 0 return bless $self, $class;
18 }
19  
20 0 ▶sub params {
Subroutine params: not called CC=4 SCAR=30.0
21 0 my($self, $arg_list) = @_;
22 0 $self->{arg_list} = $arg_list;
23 0 my $index = $self->{data_index};
24 0 for my $arg (@$arg_list) {
25 0 ▶ if (($arg->{arg_modes}==0)||($arg->{arg_modes}==2)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($arg->{"arg_modes"} == 0 or $arg->{"arg_modes"} == 2) 0 0 0
Condition0%0/3
$arg->{"arg_modes"} == 0 or $arg->{"arg_modes"} == 2
l!l&&r!l&&!r
000
MC/DC0%0/2
$arg->{"arg_modes"} == 0 or $arg->{"arg_modes"} == 2
$arg->{"arg_modes"} == 0 $arg->{"arg_modes"} == 2
Truth table0%0/3
A or B
A= $arg->{"arg_modes"} == 0B= $arg->{"arg_modes"} == 2
ABresult
1X1
011
000
26 0 $arg->{argument}{_value} = CORBA::ORB::_unmarshal_using_tc(\$self->{data}, \$index, $self->{byte_order}, $arg->{argument}{_type});
27 }
28 }
29 }
30  
31 0 ▶sub result {
Subroutine result: not called CC=1 SCAR=6.9
32 0 my($self, $result) = @_;
33 0 $self->{'result'} = $result;
34 }
35  
36 0 ▶sub op_name {
Subroutine op_name: not called CC=1 SCAR=6.9
37 0 my($self) = @_;
38 0 return $self->{'operation'};
39 }
40  
41 # not in interface
42  
43 0 ▶sub get_arglist {
Subroutine get_arglist: not called CC=1 SCAR=6.9
44 0 my($self) = @_;
45 0 return $self->{arg_list};
46 }
47  
48 0 ▶sub get_result {
Subroutine get_result: not called CC=1 SCAR=6.9
49 0 my($self) = @_;
50 0 return $self->{'result'};
51 }
52  
53 3 1;
« CORBA/Object.pm ↑ Summary LName.pm »