| 1 | # | ||||||||||||||
| 2 | # Autogenerated by Thrift Compiler (0.22.0) | ||||||||||||||
| 3 | # | ||||||||||||||
| 4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | ||||||||||||||
| 5 | # | ||||||||||||||
| 6 | 1 | ▶ | use 5.10.0; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 7 | 1 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 8 | 1 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 9 | 1 | ▶ | use Thrift::Exception; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 10 | 1 | ▶ | use Thrift::MessageType; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 11 | 1 | ▶ | use Thrift::Type; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 12 | |||||||||||||||
| 13 | 1 | ▶ | use ThriftTest::Types; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 14 | |||||||||||||||
| 15 | |||||||||||||||
| 16 | # HELPER FUNCTIONS AND STRUCTURES | ||||||||||||||
| 17 | |||||||||||||||
| 18 | package ThriftTest::ThriftTest_testVoid_args; | ||||||||||||||
| 19 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 20 | |||||||||||||||
| 21 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||||||
| 22 | 0 | my $classname = shift; | |||||||||||||
| 23 | 0 | my $self = {}; | |||||||||||||
| 24 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 25 | 0 | return bless ($self, $classname); | |||||||||||||
| 26 | } | ||||||||||||||
| 27 | |||||||||||||||
| 28 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 29 | 0 | return 'ThriftTest_testVoid_args'; | |||||||||||||
| 30 | } | ||||||||||||||
| 31 | |||||||||||||||
| 32 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=3 SCAR=24.8
| |||||||||||||||
| 33 | 0 | my ($self, $input) = @_; | |||||||||||||
| 34 | 0 | my $xfer = 0; | |||||||||||||
| 35 | 0 | my $fname; | |||||||||||||
| 36 | 0 | my $ftype = 0; | |||||||||||||
| 37 | 0 | my $fid = 0; | |||||||||||||
| 38 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 39 | 0 | while (1) | |||||||||||||
| 40 | { | ||||||||||||||
| 41 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 42 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 43 | 0 | last; | |||||||||||||
| 44 | } | ||||||||||||||
| 45 | 0 | SWITCH: for($fid) | |||||||||||||
| 46 | { | ||||||||||||||
| 47 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 48 | } | ||||||||||||||
| 49 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 50 | } | ||||||||||||||
| 51 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 52 | 0 | return $xfer; | |||||||||||||
| 53 | } | ||||||||||||||
| 54 | |||||||||||||||
| 55 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=1 SCAR=6.9
| |||||||||||||||
| 56 | 0 | my ($self, $output) = @_; | |||||||||||||
| 57 | 0 | my $xfer = 0; | |||||||||||||
| 58 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testVoid_args'); | |||||||||||||
| 59 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 60 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 61 | 0 | return $xfer; | |||||||||||||
| 62 | } | ||||||||||||||
| 63 | |||||||||||||||
| 64 | package ThriftTest::ThriftTest_testVoid_result; | ||||||||||||||
| 65 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 66 | |||||||||||||||
| 67 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||||||
| 68 | 0 | my $classname = shift; | |||||||||||||
| 69 | 0 | my $self = {}; | |||||||||||||
| 70 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 71 | 0 | return bless ($self, $classname); | |||||||||||||
| 72 | } | ||||||||||||||
| 73 | |||||||||||||||
| 74 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 75 | 0 | return 'ThriftTest_testVoid_result'; | |||||||||||||
| 76 | } | ||||||||||||||
| 77 | |||||||||||||||
| 78 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=3 SCAR=24.8
| |||||||||||||||
| 79 | 0 | my ($self, $input) = @_; | |||||||||||||
| 80 | 0 | my $xfer = 0; | |||||||||||||
| 81 | 0 | my $fname; | |||||||||||||
| 82 | 0 | my $ftype = 0; | |||||||||||||
| 83 | 0 | my $fid = 0; | |||||||||||||
| 84 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 85 | 0 | while (1) | |||||||||||||
| 86 | { | ||||||||||||||
| 87 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 88 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 89 | 0 | last; | |||||||||||||
| 90 | } | ||||||||||||||
| 91 | 0 | SWITCH: for($fid) | |||||||||||||
| 92 | { | ||||||||||||||
| 93 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 94 | } | ||||||||||||||
| 95 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 96 | } | ||||||||||||||
| 97 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 98 | 0 | return $xfer; | |||||||||||||
| 99 | } | ||||||||||||||
| 100 | |||||||||||||||
| 101 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=1 SCAR=6.9
| |||||||||||||||
| 102 | 0 | my ($self, $output) = @_; | |||||||||||||
| 103 | 0 | my $xfer = 0; | |||||||||||||
| 104 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testVoid_result'); | |||||||||||||
| 105 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 106 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 107 | 0 | return $xfer; | |||||||||||||
| 108 | } | ||||||||||||||
| 109 | |||||||||||||||
| 110 | package ThriftTest::ThriftTest_testString_args; | ||||||||||||||
| 111 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 112 | 1 | ThriftTest::ThriftTest_testString_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 113 | |||||||||||||||
| 114 | 4 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: called CC=4 SCAR=14.8
| |||||||||||||||
| 115 | 4 | my $classname = shift; | |||||||||||||
| 116 | 4 | my $self = {}; | |||||||||||||
| 117 | 4 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition50%1/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||||
| 118 | 4 | $self->{thing} = undef; | |||||||||||||
| 119 | 4 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 120 | 4 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 121 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 122 | } | ||||||||||||||
| 123 | } | ||||||||||||||
| 124 | 4 | return bless ($self, $classname); | |||||||||||||
| 125 | } | ||||||||||||||
| 126 | |||||||||||||||
| 127 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 128 | 0 | return 'ThriftTest_testString_args'; | |||||||||||||
| 129 | } | ||||||||||||||
| 130 | |||||||||||||||
| 131 | 2 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: called CC=5 SCAR=16.3
| |||||||||||||||
| 132 | 2 | my ($self, $input) = @_; | |||||||||||||
| 133 | 2 | my $xfer = 0; | |||||||||||||
| 134 | 2 | my $fname; | |||||||||||||
| 135 | 2 | my $ftype = 0; | |||||||||||||
| 136 | 2 | my $fid = 0; | |||||||||||||
| 137 | 2 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 138 | 2 | while (1) | |||||||||||||
| 139 | { | ||||||||||||||
| 140 | 4 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 141 | 4 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 142 | 2 | last; | |||||||||||||
| 143 | } | ||||||||||||||
| 144 | 2 | SWITCH: for($fid) | |||||||||||||
| 145 | { | ||||||||||||||
| 146 | 2 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRING) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 147 | 2 | $xfer += $input->readString(\$self->{thing}); | |||||||||||||
| 148 | } else { | ||||||||||||||
| 149 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 150 | } | ||||||||||||||
| 151 | 2 | last; }; | |||||||||||||
| 152 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 153 | } | ||||||||||||||
| 154 | 2 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 155 | } | ||||||||||||||
| 156 | 2 | $xfer += $input->readStructEnd(); | |||||||||||||
| 157 | 2 | return $xfer; | |||||||||||||
| 158 | } | ||||||||||||||
| 159 | |||||||||||||||
| 160 | 2 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: called CC=2 SCAR=6.9
| |||||||||||||||
| 161 | 2 | my ($self, $output) = @_; | |||||||||||||
| 162 | 2 | my $xfer = 0; | |||||||||||||
| 163 | 2 | $xfer += $output->writeStructBegin('ThriftTest_testString_args'); | |||||||||||||
| 164 | 2 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 165 | 2 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::STRING, 1); | |||||||||||||
| 166 | 2 | $xfer += $output->writeString($self->{thing}); | |||||||||||||
| 167 | 2 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 168 | } | ||||||||||||||
| 169 | 2 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 170 | 2 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 171 | 2 | return $xfer; | |||||||||||||
| 172 | } | ||||||||||||||
| 173 | |||||||||||||||
| 174 | package ThriftTest::ThriftTest_testString_result; | ||||||||||||||
| 175 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 176 | 1 | ThriftTest::ThriftTest_testString_result->mk_accessors( qw( success ) ); | |||||||||||||
| 177 | |||||||||||||||
| 178 | 4 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: called CC=4 SCAR=14.8
| |||||||||||||||
| 179 | 4 | my $classname = shift; | |||||||||||||
| 180 | 4 | my $self = {}; | |||||||||||||
| 181 | 4 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition50%1/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||||
| 182 | 4 | $self->{success} = undef; | |||||||||||||
| 183 | 4 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 184 | 4 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 185 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 186 | } | ||||||||||||||
| 187 | } | ||||||||||||||
| 188 | 4 | return bless ($self, $classname); | |||||||||||||
| 189 | } | ||||||||||||||
| 190 | |||||||||||||||
| 191 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 192 | 0 | return 'ThriftTest_testString_result'; | |||||||||||||
| 193 | } | ||||||||||||||
| 194 | |||||||||||||||
| 195 | 2 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: called CC=5 SCAR=16.3
| |||||||||||||||
| 196 | 2 | my ($self, $input) = @_; | |||||||||||||
| 197 | 2 | my $xfer = 0; | |||||||||||||
| 198 | 2 | my $fname; | |||||||||||||
| 199 | 2 | my $ftype = 0; | |||||||||||||
| 200 | 2 | my $fid = 0; | |||||||||||||
| 201 | 2 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 202 | 2 | while (1) | |||||||||||||
| 203 | { | ||||||||||||||
| 204 | 4 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 205 | 4 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 206 | 2 | last; | |||||||||||||
| 207 | } | ||||||||||||||
| 208 | 2 | SWITCH: for($fid) | |||||||||||||
| 209 | { | ||||||||||||||
| 210 | 2 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::STRING) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 211 | 2 | $xfer += $input->readString(\$self->{success}); | |||||||||||||
| 212 | } else { | ||||||||||||||
| 213 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 214 | } | ||||||||||||||
| 215 | 2 | last; }; | |||||||||||||
| 216 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 217 | } | ||||||||||||||
| 218 | 2 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 219 | } | ||||||||||||||
| 220 | 2 | $xfer += $input->readStructEnd(); | |||||||||||||
| 221 | 2 | return $xfer; | |||||||||||||
| 222 | } | ||||||||||||||
| 223 | |||||||||||||||
| 224 | 2 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: called CC=2 SCAR=6.9
| |||||||||||||||
| 225 | 2 | my ($self, $output) = @_; | |||||||||||||
| 226 | 2 | my $xfer = 0; | |||||||||||||
| 227 | 2 | $xfer += $output->writeStructBegin('ThriftTest_testString_result'); | |||||||||||||
| 228 | 2 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 229 | 2 | $xfer += $output->writeFieldBegin('success', Thrift::TType::STRING, 0); | |||||||||||||
| 230 | 2 | $xfer += $output->writeString($self->{success}); | |||||||||||||
| 231 | 2 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 232 | } | ||||||||||||||
| 233 | 2 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 234 | 2 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 235 | 2 | return $xfer; | |||||||||||||
| 236 | } | ||||||||||||||
| 237 | |||||||||||||||
| 238 | package ThriftTest::ThriftTest_testBool_args; | ||||||||||||||
| 239 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 240 | 1 | ThriftTest::ThriftTest_testBool_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 241 | |||||||||||||||
| 242 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 243 | 0 | my $classname = shift; | |||||||||||||
| 244 | 0 | my $self = {}; | |||||||||||||
| 245 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 246 | 0 | $self->{thing} = undef; | |||||||||||||
| 247 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 248 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 249 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 250 | } | ||||||||||||||
| 251 | } | ||||||||||||||
| 252 | 0 | return bless ($self, $classname); | |||||||||||||
| 253 | } | ||||||||||||||
| 254 | |||||||||||||||
| 255 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 256 | 0 | return 'ThriftTest_testBool_args'; | |||||||||||||
| 257 | } | ||||||||||||||
| 258 | |||||||||||||||
| 259 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 260 | 0 | my ($self, $input) = @_; | |||||||||||||
| 261 | 0 | my $xfer = 0; | |||||||||||||
| 262 | 0 | my $fname; | |||||||||||||
| 263 | 0 | my $ftype = 0; | |||||||||||||
| 264 | 0 | my $fid = 0; | |||||||||||||
| 265 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 266 | 0 | while (1) | |||||||||||||
| 267 | { | ||||||||||||||
| 268 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 269 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 270 | 0 | last; | |||||||||||||
| 271 | } | ||||||||||||||
| 272 | 0 | SWITCH: for($fid) | |||||||||||||
| 273 | { | ||||||||||||||
| 274 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::BOOL) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 275 | 0 | $xfer += $input->readBool(\$self->{thing}); | |||||||||||||
| 276 | } else { | ||||||||||||||
| 277 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 278 | } | ||||||||||||||
| 279 | 0 | last; }; | |||||||||||||
| 280 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 281 | } | ||||||||||||||
| 282 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 283 | } | ||||||||||||||
| 284 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 285 | 0 | return $xfer; | |||||||||||||
| 286 | } | ||||||||||||||
| 287 | |||||||||||||||
| 288 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 289 | 0 | my ($self, $output) = @_; | |||||||||||||
| 290 | 0 | my $xfer = 0; | |||||||||||||
| 291 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testBool_args'); | |||||||||||||
| 292 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 293 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::BOOL, 1); | |||||||||||||
| 294 | 0 | $xfer += $output->writeBool($self->{thing}); | |||||||||||||
| 295 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 296 | } | ||||||||||||||
| 297 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 298 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 299 | 0 | return $xfer; | |||||||||||||
| 300 | } | ||||||||||||||
| 301 | |||||||||||||||
| 302 | package ThriftTest::ThriftTest_testBool_result; | ||||||||||||||
| 303 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 304 | 1 | ThriftTest::ThriftTest_testBool_result->mk_accessors( qw( success ) ); | |||||||||||||
| 305 | |||||||||||||||
| 306 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 307 | 0 | my $classname = shift; | |||||||||||||
| 308 | 0 | my $self = {}; | |||||||||||||
| 309 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 310 | 0 | $self->{success} = undef; | |||||||||||||
| 311 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 312 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 313 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 314 | } | ||||||||||||||
| 315 | } | ||||||||||||||
| 316 | 0 | return bless ($self, $classname); | |||||||||||||
| 317 | } | ||||||||||||||
| 318 | |||||||||||||||
| 319 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 320 | 0 | return 'ThriftTest_testBool_result'; | |||||||||||||
| 321 | } | ||||||||||||||
| 322 | |||||||||||||||
| 323 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 324 | 0 | my ($self, $input) = @_; | |||||||||||||
| 325 | 0 | my $xfer = 0; | |||||||||||||
| 326 | 0 | my $fname; | |||||||||||||
| 327 | 0 | my $ftype = 0; | |||||||||||||
| 328 | 0 | my $fid = 0; | |||||||||||||
| 329 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 330 | 0 | while (1) | |||||||||||||
| 331 | { | ||||||||||||||
| 332 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 333 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 334 | 0 | last; | |||||||||||||
| 335 | } | ||||||||||||||
| 336 | 0 | SWITCH: for($fid) | |||||||||||||
| 337 | { | ||||||||||||||
| 338 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::BOOL) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 339 | 0 | $xfer += $input->readBool(\$self->{success}); | |||||||||||||
| 340 | } else { | ||||||||||||||
| 341 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 342 | } | ||||||||||||||
| 343 | 0 | last; }; | |||||||||||||
| 344 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 345 | } | ||||||||||||||
| 346 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 347 | } | ||||||||||||||
| 348 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 349 | 0 | return $xfer; | |||||||||||||
| 350 | } | ||||||||||||||
| 351 | |||||||||||||||
| 352 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 353 | 0 | my ($self, $output) = @_; | |||||||||||||
| 354 | 0 | my $xfer = 0; | |||||||||||||
| 355 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testBool_result'); | |||||||||||||
| 356 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 357 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::BOOL, 0); | |||||||||||||
| 358 | 0 | $xfer += $output->writeBool($self->{success}); | |||||||||||||
| 359 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 360 | } | ||||||||||||||
| 361 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 362 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 363 | 0 | return $xfer; | |||||||||||||
| 364 | } | ||||||||||||||
| 365 | |||||||||||||||
| 366 | package ThriftTest::ThriftTest_testByte_args; | ||||||||||||||
| 367 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 368 | 1 | ThriftTest::ThriftTest_testByte_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 369 | |||||||||||||||
| 370 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 371 | 0 | my $classname = shift; | |||||||||||||
| 372 | 0 | my $self = {}; | |||||||||||||
| 373 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 374 | 0 | $self->{thing} = undef; | |||||||||||||
| 375 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 376 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 377 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 378 | } | ||||||||||||||
| 379 | } | ||||||||||||||
| 380 | 0 | return bless ($self, $classname); | |||||||||||||
| 381 | } | ||||||||||||||
| 382 | |||||||||||||||
| 383 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 384 | 0 | return 'ThriftTest_testByte_args'; | |||||||||||||
| 385 | } | ||||||||||||||
| 386 | |||||||||||||||
| 387 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 388 | 0 | my ($self, $input) = @_; | |||||||||||||
| 389 | 0 | my $xfer = 0; | |||||||||||||
| 390 | 0 | my $fname; | |||||||||||||
| 391 | 0 | my $ftype = 0; | |||||||||||||
| 392 | 0 | my $fid = 0; | |||||||||||||
| 393 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 394 | 0 | while (1) | |||||||||||||
| 395 | { | ||||||||||||||
| 396 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 397 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 398 | 0 | last; | |||||||||||||
| 399 | } | ||||||||||||||
| 400 | 0 | SWITCH: for($fid) | |||||||||||||
| 401 | { | ||||||||||||||
| 402 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::BYTE) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 403 | 0 | $xfer += $input->readByte(\$self->{thing}); | |||||||||||||
| 404 | } else { | ||||||||||||||
| 405 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 406 | } | ||||||||||||||
| 407 | 0 | last; }; | |||||||||||||
| 408 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 409 | } | ||||||||||||||
| 410 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 411 | } | ||||||||||||||
| 412 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 413 | 0 | return $xfer; | |||||||||||||
| 414 | } | ||||||||||||||
| 415 | |||||||||||||||
| 416 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 417 | 0 | my ($self, $output) = @_; | |||||||||||||
| 418 | 0 | my $xfer = 0; | |||||||||||||
| 419 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testByte_args'); | |||||||||||||
| 420 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 421 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::BYTE, 1); | |||||||||||||
| 422 | 0 | $xfer += $output->writeByte($self->{thing}); | |||||||||||||
| 423 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 424 | } | ||||||||||||||
| 425 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 426 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 427 | 0 | return $xfer; | |||||||||||||
| 428 | } | ||||||||||||||
| 429 | |||||||||||||||
| 430 | package ThriftTest::ThriftTest_testByte_result; | ||||||||||||||
| 431 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 432 | 1 | ThriftTest::ThriftTest_testByte_result->mk_accessors( qw( success ) ); | |||||||||||||
| 433 | |||||||||||||||
| 434 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 435 | 0 | my $classname = shift; | |||||||||||||
| 436 | 0 | my $self = {}; | |||||||||||||
| 437 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 438 | 0 | $self->{success} = undef; | |||||||||||||
| 439 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 440 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 441 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 442 | } | ||||||||||||||
| 443 | } | ||||||||||||||
| 444 | 0 | return bless ($self, $classname); | |||||||||||||
| 445 | } | ||||||||||||||
| 446 | |||||||||||||||
| 447 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 448 | 0 | return 'ThriftTest_testByte_result'; | |||||||||||||
| 449 | } | ||||||||||||||
| 450 | |||||||||||||||
| 451 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 452 | 0 | my ($self, $input) = @_; | |||||||||||||
| 453 | 0 | my $xfer = 0; | |||||||||||||
| 454 | 0 | my $fname; | |||||||||||||
| 455 | 0 | my $ftype = 0; | |||||||||||||
| 456 | 0 | my $fid = 0; | |||||||||||||
| 457 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 458 | 0 | while (1) | |||||||||||||
| 459 | { | ||||||||||||||
| 460 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 461 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 462 | 0 | last; | |||||||||||||
| 463 | } | ||||||||||||||
| 464 | 0 | SWITCH: for($fid) | |||||||||||||
| 465 | { | ||||||||||||||
| 466 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::BYTE) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 467 | 0 | $xfer += $input->readByte(\$self->{success}); | |||||||||||||
| 468 | } else { | ||||||||||||||
| 469 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 470 | } | ||||||||||||||
| 471 | 0 | last; }; | |||||||||||||
| 472 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 473 | } | ||||||||||||||
| 474 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 475 | } | ||||||||||||||
| 476 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 477 | 0 | return $xfer; | |||||||||||||
| 478 | } | ||||||||||||||
| 479 | |||||||||||||||
| 480 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 481 | 0 | my ($self, $output) = @_; | |||||||||||||
| 482 | 0 | my $xfer = 0; | |||||||||||||
| 483 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testByte_result'); | |||||||||||||
| 484 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 485 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::BYTE, 0); | |||||||||||||
| 486 | 0 | $xfer += $output->writeByte($self->{success}); | |||||||||||||
| 487 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 488 | } | ||||||||||||||
| 489 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 490 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 491 | 0 | return $xfer; | |||||||||||||
| 492 | } | ||||||||||||||
| 493 | |||||||||||||||
| 494 | package ThriftTest::ThriftTest_testI32_args; | ||||||||||||||
| 495 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 496 | 1 | ThriftTest::ThriftTest_testI32_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 497 | |||||||||||||||
| 498 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 499 | 0 | my $classname = shift; | |||||||||||||
| 500 | 0 | my $self = {}; | |||||||||||||
| 501 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 502 | 0 | $self->{thing} = undef; | |||||||||||||
| 503 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 504 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 505 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 506 | } | ||||||||||||||
| 507 | } | ||||||||||||||
| 508 | 0 | return bless ($self, $classname); | |||||||||||||
| 509 | } | ||||||||||||||
| 510 | |||||||||||||||
| 511 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 512 | 0 | return 'ThriftTest_testI32_args'; | |||||||||||||
| 513 | } | ||||||||||||||
| 514 | |||||||||||||||
| 515 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 516 | 0 | my ($self, $input) = @_; | |||||||||||||
| 517 | 0 | my $xfer = 0; | |||||||||||||
| 518 | 0 | my $fname; | |||||||||||||
| 519 | 0 | my $ftype = 0; | |||||||||||||
| 520 | 0 | my $fid = 0; | |||||||||||||
| 521 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 522 | 0 | while (1) | |||||||||||||
| 523 | { | ||||||||||||||
| 524 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 525 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 526 | 0 | last; | |||||||||||||
| 527 | } | ||||||||||||||
| 528 | 0 | SWITCH: for($fid) | |||||||||||||
| 529 | { | ||||||||||||||
| 530 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::I32) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 531 | 0 | $xfer += $input->readI32(\$self->{thing}); | |||||||||||||
| 532 | } else { | ||||||||||||||
| 533 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 534 | } | ||||||||||||||
| 535 | 0 | last; }; | |||||||||||||
| 536 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 537 | } | ||||||||||||||
| 538 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 539 | } | ||||||||||||||
| 540 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 541 | 0 | return $xfer; | |||||||||||||
| 542 | } | ||||||||||||||
| 543 | |||||||||||||||
| 544 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 545 | 0 | my ($self, $output) = @_; | |||||||||||||
| 546 | 0 | my $xfer = 0; | |||||||||||||
| 547 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testI32_args'); | |||||||||||||
| 548 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 549 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::I32, 1); | |||||||||||||
| 550 | 0 | $xfer += $output->writeI32($self->{thing}); | |||||||||||||
| 551 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 552 | } | ||||||||||||||
| 553 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 554 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 555 | 0 | return $xfer; | |||||||||||||
| 556 | } | ||||||||||||||
| 557 | |||||||||||||||
| 558 | package ThriftTest::ThriftTest_testI32_result; | ||||||||||||||
| 559 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 560 | 1 | ThriftTest::ThriftTest_testI32_result->mk_accessors( qw( success ) ); | |||||||||||||
| 561 | |||||||||||||||
| 562 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 563 | 0 | my $classname = shift; | |||||||||||||
| 564 | 0 | my $self = {}; | |||||||||||||
| 565 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 566 | 0 | $self->{success} = undef; | |||||||||||||
| 567 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 568 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 569 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 570 | } | ||||||||||||||
| 571 | } | ||||||||||||||
| 572 | 0 | return bless ($self, $classname); | |||||||||||||
| 573 | } | ||||||||||||||
| 574 | |||||||||||||||
| 575 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 576 | 0 | return 'ThriftTest_testI32_result'; | |||||||||||||
| 577 | } | ||||||||||||||
| 578 | |||||||||||||||
| 579 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 580 | 0 | my ($self, $input) = @_; | |||||||||||||
| 581 | 0 | my $xfer = 0; | |||||||||||||
| 582 | 0 | my $fname; | |||||||||||||
| 583 | 0 | my $ftype = 0; | |||||||||||||
| 584 | 0 | my $fid = 0; | |||||||||||||
| 585 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 586 | 0 | while (1) | |||||||||||||
| 587 | { | ||||||||||||||
| 588 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 589 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 590 | 0 | last; | |||||||||||||
| 591 | } | ||||||||||||||
| 592 | 0 | SWITCH: for($fid) | |||||||||||||
| 593 | { | ||||||||||||||
| 594 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::I32) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 595 | 0 | $xfer += $input->readI32(\$self->{success}); | |||||||||||||
| 596 | } else { | ||||||||||||||
| 597 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 598 | } | ||||||||||||||
| 599 | 0 | last; }; | |||||||||||||
| 600 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 601 | } | ||||||||||||||
| 602 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 603 | } | ||||||||||||||
| 604 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 605 | 0 | return $xfer; | |||||||||||||
| 606 | } | ||||||||||||||
| 607 | |||||||||||||||
| 608 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 609 | 0 | my ($self, $output) = @_; | |||||||||||||
| 610 | 0 | my $xfer = 0; | |||||||||||||
| 611 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testI32_result'); | |||||||||||||
| 612 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 613 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::I32, 0); | |||||||||||||
| 614 | 0 | $xfer += $output->writeI32($self->{success}); | |||||||||||||
| 615 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 616 | } | ||||||||||||||
| 617 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 618 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 619 | 0 | return $xfer; | |||||||||||||
| 620 | } | ||||||||||||||
| 621 | |||||||||||||||
| 622 | package ThriftTest::ThriftTest_testI64_args; | ||||||||||||||
| 623 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 624 | 1 | ThriftTest::ThriftTest_testI64_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 625 | |||||||||||||||
| 626 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 627 | 0 | my $classname = shift; | |||||||||||||
| 628 | 0 | my $self = {}; | |||||||||||||
| 629 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 630 | 0 | $self->{thing} = undef; | |||||||||||||
| 631 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 632 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 633 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 634 | } | ||||||||||||||
| 635 | } | ||||||||||||||
| 636 | 0 | return bless ($self, $classname); | |||||||||||||
| 637 | } | ||||||||||||||
| 638 | |||||||||||||||
| 639 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 640 | 0 | return 'ThriftTest_testI64_args'; | |||||||||||||
| 641 | } | ||||||||||||||
| 642 | |||||||||||||||
| 643 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 644 | 0 | my ($self, $input) = @_; | |||||||||||||
| 645 | 0 | my $xfer = 0; | |||||||||||||
| 646 | 0 | my $fname; | |||||||||||||
| 647 | 0 | my $ftype = 0; | |||||||||||||
| 648 | 0 | my $fid = 0; | |||||||||||||
| 649 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 650 | 0 | while (1) | |||||||||||||
| 651 | { | ||||||||||||||
| 652 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 653 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 654 | 0 | last; | |||||||||||||
| 655 | } | ||||||||||||||
| 656 | 0 | SWITCH: for($fid) | |||||||||||||
| 657 | { | ||||||||||||||
| 658 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::I64) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 659 | 0 | $xfer += $input->readI64(\$self->{thing}); | |||||||||||||
| 660 | } else { | ||||||||||||||
| 661 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 662 | } | ||||||||||||||
| 663 | 0 | last; }; | |||||||||||||
| 664 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 665 | } | ||||||||||||||
| 666 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 667 | } | ||||||||||||||
| 668 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 669 | 0 | return $xfer; | |||||||||||||
| 670 | } | ||||||||||||||
| 671 | |||||||||||||||
| 672 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 673 | 0 | my ($self, $output) = @_; | |||||||||||||
| 674 | 0 | my $xfer = 0; | |||||||||||||
| 675 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testI64_args'); | |||||||||||||
| 676 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 677 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::I64, 1); | |||||||||||||
| 678 | 0 | $xfer += $output->writeI64($self->{thing}); | |||||||||||||
| 679 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 680 | } | ||||||||||||||
| 681 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 682 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 683 | 0 | return $xfer; | |||||||||||||
| 684 | } | ||||||||||||||
| 685 | |||||||||||||||
| 686 | package ThriftTest::ThriftTest_testI64_result; | ||||||||||||||
| 687 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 688 | 1 | ThriftTest::ThriftTest_testI64_result->mk_accessors( qw( success ) ); | |||||||||||||
| 689 | |||||||||||||||
| 690 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 691 | 0 | my $classname = shift; | |||||||||||||
| 692 | 0 | my $self = {}; | |||||||||||||
| 693 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 694 | 0 | $self->{success} = undef; | |||||||||||||
| 695 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 696 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 697 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 698 | } | ||||||||||||||
| 699 | } | ||||||||||||||
| 700 | 0 | return bless ($self, $classname); | |||||||||||||
| 701 | } | ||||||||||||||
| 702 | |||||||||||||||
| 703 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 704 | 0 | return 'ThriftTest_testI64_result'; | |||||||||||||
| 705 | } | ||||||||||||||
| 706 | |||||||||||||||
| 707 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 708 | 0 | my ($self, $input) = @_; | |||||||||||||
| 709 | 0 | my $xfer = 0; | |||||||||||||
| 710 | 0 | my $fname; | |||||||||||||
| 711 | 0 | my $ftype = 0; | |||||||||||||
| 712 | 0 | my $fid = 0; | |||||||||||||
| 713 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 714 | 0 | while (1) | |||||||||||||
| 715 | { | ||||||||||||||
| 716 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 717 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 718 | 0 | last; | |||||||||||||
| 719 | } | ||||||||||||||
| 720 | 0 | SWITCH: for($fid) | |||||||||||||
| 721 | { | ||||||||||||||
| 722 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::I64) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 723 | 0 | $xfer += $input->readI64(\$self->{success}); | |||||||||||||
| 724 | } else { | ||||||||||||||
| 725 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 726 | } | ||||||||||||||
| 727 | 0 | last; }; | |||||||||||||
| 728 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 729 | } | ||||||||||||||
| 730 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 731 | } | ||||||||||||||
| 732 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 733 | 0 | return $xfer; | |||||||||||||
| 734 | } | ||||||||||||||
| 735 | |||||||||||||||
| 736 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 737 | 0 | my ($self, $output) = @_; | |||||||||||||
| 738 | 0 | my $xfer = 0; | |||||||||||||
| 739 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testI64_result'); | |||||||||||||
| 740 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 741 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::I64, 0); | |||||||||||||
| 742 | 0 | $xfer += $output->writeI64($self->{success}); | |||||||||||||
| 743 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 744 | } | ||||||||||||||
| 745 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 746 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 747 | 0 | return $xfer; | |||||||||||||
| 748 | } | ||||||||||||||
| 749 | |||||||||||||||
| 750 | package ThriftTest::ThriftTest_testDouble_args; | ||||||||||||||
| 751 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 752 | 1 | ThriftTest::ThriftTest_testDouble_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 753 | |||||||||||||||
| 754 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 755 | 0 | my $classname = shift; | |||||||||||||
| 756 | 0 | my $self = {}; | |||||||||||||
| 757 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 758 | 0 | $self->{thing} = undef; | |||||||||||||
| 759 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 760 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 761 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 762 | } | ||||||||||||||
| 763 | } | ||||||||||||||
| 764 | 0 | return bless ($self, $classname); | |||||||||||||
| 765 | } | ||||||||||||||
| 766 | |||||||||||||||
| 767 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 768 | 0 | return 'ThriftTest_testDouble_args'; | |||||||||||||
| 769 | } | ||||||||||||||
| 770 | |||||||||||||||
| 771 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 772 | 0 | my ($self, $input) = @_; | |||||||||||||
| 773 | 0 | my $xfer = 0; | |||||||||||||
| 774 | 0 | my $fname; | |||||||||||||
| 775 | 0 | my $ftype = 0; | |||||||||||||
| 776 | 0 | my $fid = 0; | |||||||||||||
| 777 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 778 | 0 | while (1) | |||||||||||||
| 779 | { | ||||||||||||||
| 780 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 781 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 782 | 0 | last; | |||||||||||||
| 783 | } | ||||||||||||||
| 784 | 0 | SWITCH: for($fid) | |||||||||||||
| 785 | { | ||||||||||||||
| 786 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::DOUBLE) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 787 | 0 | $xfer += $input->readDouble(\$self->{thing}); | |||||||||||||
| 788 | } else { | ||||||||||||||
| 789 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 790 | } | ||||||||||||||
| 791 | 0 | last; }; | |||||||||||||
| 792 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 793 | } | ||||||||||||||
| 794 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 795 | } | ||||||||||||||
| 796 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 797 | 0 | return $xfer; | |||||||||||||
| 798 | } | ||||||||||||||
| 799 | |||||||||||||||
| 800 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 801 | 0 | my ($self, $output) = @_; | |||||||||||||
| 802 | 0 | my $xfer = 0; | |||||||||||||
| 803 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testDouble_args'); | |||||||||||||
| 804 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 805 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::DOUBLE, 1); | |||||||||||||
| 806 | 0 | $xfer += $output->writeDouble($self->{thing}); | |||||||||||||
| 807 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 808 | } | ||||||||||||||
| 809 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 810 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 811 | 0 | return $xfer; | |||||||||||||
| 812 | } | ||||||||||||||
| 813 | |||||||||||||||
| 814 | package ThriftTest::ThriftTest_testDouble_result; | ||||||||||||||
| 815 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 816 | 1 | ThriftTest::ThriftTest_testDouble_result->mk_accessors( qw( success ) ); | |||||||||||||
| 817 | |||||||||||||||
| 818 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 819 | 0 | my $classname = shift; | |||||||||||||
| 820 | 0 | my $self = {}; | |||||||||||||
| 821 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 822 | 0 | $self->{success} = undef; | |||||||||||||
| 823 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 824 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 825 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 826 | } | ||||||||||||||
| 827 | } | ||||||||||||||
| 828 | 0 | return bless ($self, $classname); | |||||||||||||
| 829 | } | ||||||||||||||
| 830 | |||||||||||||||
| 831 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 832 | 0 | return 'ThriftTest_testDouble_result'; | |||||||||||||
| 833 | } | ||||||||||||||
| 834 | |||||||||||||||
| 835 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 836 | 0 | my ($self, $input) = @_; | |||||||||||||
| 837 | 0 | my $xfer = 0; | |||||||||||||
| 838 | 0 | my $fname; | |||||||||||||
| 839 | 0 | my $ftype = 0; | |||||||||||||
| 840 | 0 | my $fid = 0; | |||||||||||||
| 841 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 842 | 0 | while (1) | |||||||||||||
| 843 | { | ||||||||||||||
| 844 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 845 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 846 | 0 | last; | |||||||||||||
| 847 | } | ||||||||||||||
| 848 | 0 | SWITCH: for($fid) | |||||||||||||
| 849 | { | ||||||||||||||
| 850 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::DOUBLE) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 851 | 0 | $xfer += $input->readDouble(\$self->{success}); | |||||||||||||
| 852 | } else { | ||||||||||||||
| 853 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 854 | } | ||||||||||||||
| 855 | 0 | last; }; | |||||||||||||
| 856 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 857 | } | ||||||||||||||
| 858 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 859 | } | ||||||||||||||
| 860 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 861 | 0 | return $xfer; | |||||||||||||
| 862 | } | ||||||||||||||
| 863 | |||||||||||||||
| 864 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 865 | 0 | my ($self, $output) = @_; | |||||||||||||
| 866 | 0 | my $xfer = 0; | |||||||||||||
| 867 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testDouble_result'); | |||||||||||||
| 868 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 869 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::DOUBLE, 0); | |||||||||||||
| 870 | 0 | $xfer += $output->writeDouble($self->{success}); | |||||||||||||
| 871 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 872 | } | ||||||||||||||
| 873 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 874 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 875 | 0 | return $xfer; | |||||||||||||
| 876 | } | ||||||||||||||
| 877 | |||||||||||||||
| 878 | package ThriftTest::ThriftTest_testBinary_args; | ||||||||||||||
| 879 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 880 | 1 | ThriftTest::ThriftTest_testBinary_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 881 | |||||||||||||||
| 882 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 883 | 0 | my $classname = shift; | |||||||||||||
| 884 | 0 | my $self = {}; | |||||||||||||
| 885 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 886 | 0 | $self->{thing} = undef; | |||||||||||||
| 887 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 888 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 889 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 890 | } | ||||||||||||||
| 891 | } | ||||||||||||||
| 892 | 0 | return bless ($self, $classname); | |||||||||||||
| 893 | } | ||||||||||||||
| 894 | |||||||||||||||
| 895 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 896 | 0 | return 'ThriftTest_testBinary_args'; | |||||||||||||
| 897 | } | ||||||||||||||
| 898 | |||||||||||||||
| 899 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 900 | 0 | my ($self, $input) = @_; | |||||||||||||
| 901 | 0 | my $xfer = 0; | |||||||||||||
| 902 | 0 | my $fname; | |||||||||||||
| 903 | 0 | my $ftype = 0; | |||||||||||||
| 904 | 0 | my $fid = 0; | |||||||||||||
| 905 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 906 | 0 | while (1) | |||||||||||||
| 907 | { | ||||||||||||||
| 908 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 909 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 910 | 0 | last; | |||||||||||||
| 911 | } | ||||||||||||||
| 912 | 0 | SWITCH: for($fid) | |||||||||||||
| 913 | { | ||||||||||||||
| 914 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRING) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 915 | 0 | $xfer += $input->readString(\$self->{thing}); | |||||||||||||
| 916 | } else { | ||||||||||||||
| 917 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 918 | } | ||||||||||||||
| 919 | 0 | last; }; | |||||||||||||
| 920 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 921 | } | ||||||||||||||
| 922 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 923 | } | ||||||||||||||
| 924 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 925 | 0 | return $xfer; | |||||||||||||
| 926 | } | ||||||||||||||
| 927 | |||||||||||||||
| 928 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 929 | 0 | my ($self, $output) = @_; | |||||||||||||
| 930 | 0 | my $xfer = 0; | |||||||||||||
| 931 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testBinary_args'); | |||||||||||||
| 932 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 933 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::STRING, 1); | |||||||||||||
| 934 | 0 | $xfer += $output->writeString($self->{thing}); | |||||||||||||
| 935 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 936 | } | ||||||||||||||
| 937 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 938 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 939 | 0 | return $xfer; | |||||||||||||
| 940 | } | ||||||||||||||
| 941 | |||||||||||||||
| 942 | package ThriftTest::ThriftTest_testBinary_result; | ||||||||||||||
| 943 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 944 | 1 | ThriftTest::ThriftTest_testBinary_result->mk_accessors( qw( success ) ); | |||||||||||||
| 945 | |||||||||||||||
| 946 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 947 | 0 | my $classname = shift; | |||||||||||||
| 948 | 0 | my $self = {}; | |||||||||||||
| 949 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 950 | 0 | $self->{success} = undef; | |||||||||||||
| 951 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 952 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 953 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 954 | } | ||||||||||||||
| 955 | } | ||||||||||||||
| 956 | 0 | return bless ($self, $classname); | |||||||||||||
| 957 | } | ||||||||||||||
| 958 | |||||||||||||||
| 959 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 960 | 0 | return 'ThriftTest_testBinary_result'; | |||||||||||||
| 961 | } | ||||||||||||||
| 962 | |||||||||||||||
| 963 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 964 | 0 | my ($self, $input) = @_; | |||||||||||||
| 965 | 0 | my $xfer = 0; | |||||||||||||
| 966 | 0 | my $fname; | |||||||||||||
| 967 | 0 | my $ftype = 0; | |||||||||||||
| 968 | 0 | my $fid = 0; | |||||||||||||
| 969 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 970 | 0 | while (1) | |||||||||||||
| 971 | { | ||||||||||||||
| 972 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 973 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 974 | 0 | last; | |||||||||||||
| 975 | } | ||||||||||||||
| 976 | 0 | SWITCH: for($fid) | |||||||||||||
| 977 | { | ||||||||||||||
| 978 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::STRING) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 979 | 0 | $xfer += $input->readString(\$self->{success}); | |||||||||||||
| 980 | } else { | ||||||||||||||
| 981 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 982 | } | ||||||||||||||
| 983 | 0 | last; }; | |||||||||||||
| 984 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 985 | } | ||||||||||||||
| 986 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 987 | } | ||||||||||||||
| 988 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 989 | 0 | return $xfer; | |||||||||||||
| 990 | } | ||||||||||||||
| 991 | |||||||||||||||
| 992 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 993 | 0 | my ($self, $output) = @_; | |||||||||||||
| 994 | 0 | my $xfer = 0; | |||||||||||||
| 995 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testBinary_result'); | |||||||||||||
| 996 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 997 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::STRING, 0); | |||||||||||||
| 998 | 0 | $xfer += $output->writeString($self->{success}); | |||||||||||||
| 999 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1000 | } | ||||||||||||||
| 1001 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1002 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1003 | 0 | return $xfer; | |||||||||||||
| 1004 | } | ||||||||||||||
| 1005 | |||||||||||||||
| 1006 | package ThriftTest::ThriftTest_testStruct_args; | ||||||||||||||
| 1007 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1008 | 1 | ThriftTest::ThriftTest_testStruct_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 1009 | |||||||||||||||
| 1010 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1011 | 0 | my $classname = shift; | |||||||||||||
| 1012 | 0 | my $self = {}; | |||||||||||||
| 1013 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1014 | 0 | $self->{thing} = undef; | |||||||||||||
| 1015 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1016 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1017 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 1018 | } | ||||||||||||||
| 1019 | } | ||||||||||||||
| 1020 | 0 | return bless ($self, $classname); | |||||||||||||
| 1021 | } | ||||||||||||||
| 1022 | |||||||||||||||
| 1023 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1024 | 0 | return 'ThriftTest_testStruct_args'; | |||||||||||||
| 1025 | } | ||||||||||||||
| 1026 | |||||||||||||||
| 1027 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 1028 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1029 | 0 | my $xfer = 0; | |||||||||||||
| 1030 | 0 | my $fname; | |||||||||||||
| 1031 | 0 | my $ftype = 0; | |||||||||||||
| 1032 | 0 | my $fid = 0; | |||||||||||||
| 1033 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1034 | 0 | while (1) | |||||||||||||
| 1035 | { | ||||||||||||||
| 1036 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1037 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1038 | 0 | last; | |||||||||||||
| 1039 | } | ||||||||||||||
| 1040 | 0 | SWITCH: for($fid) | |||||||||||||
| 1041 | { | ||||||||||||||
| 1042 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1043 | 0 | $self->{thing} = ThriftTest::Xtruct->new(); | |||||||||||||
| 1044 | 0 | $xfer += $self->{thing}->read($input); | |||||||||||||
| 1045 | } else { | ||||||||||||||
| 1046 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1047 | } | ||||||||||||||
| 1048 | 0 | last; }; | |||||||||||||
| 1049 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1050 | } | ||||||||||||||
| 1051 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1052 | } | ||||||||||||||
| 1053 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1054 | 0 | return $xfer; | |||||||||||||
| 1055 | } | ||||||||||||||
| 1056 | |||||||||||||||
| 1057 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 1058 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1059 | 0 | my $xfer = 0; | |||||||||||||
| 1060 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testStruct_args'); | |||||||||||||
| 1061 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1062 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::STRUCT, 1); | |||||||||||||
| 1063 | 0 | $xfer += $self->{thing}->write($output); | |||||||||||||
| 1064 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1065 | } | ||||||||||||||
| 1066 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1067 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1068 | 0 | return $xfer; | |||||||||||||
| 1069 | } | ||||||||||||||
| 1070 | |||||||||||||||
| 1071 | package ThriftTest::ThriftTest_testStruct_result; | ||||||||||||||
| 1072 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1073 | 1 | ThriftTest::ThriftTest_testStruct_result->mk_accessors( qw( success ) ); | |||||||||||||
| 1074 | |||||||||||||||
| 1075 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1076 | 0 | my $classname = shift; | |||||||||||||
| 1077 | 0 | my $self = {}; | |||||||||||||
| 1078 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1079 | 0 | $self->{success} = undef; | |||||||||||||
| 1080 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1081 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1082 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 1083 | } | ||||||||||||||
| 1084 | } | ||||||||||||||
| 1085 | 0 | return bless ($self, $classname); | |||||||||||||
| 1086 | } | ||||||||||||||
| 1087 | |||||||||||||||
| 1088 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1089 | 0 | return 'ThriftTest_testStruct_result'; | |||||||||||||
| 1090 | } | ||||||||||||||
| 1091 | |||||||||||||||
| 1092 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 1093 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1094 | 0 | my $xfer = 0; | |||||||||||||
| 1095 | 0 | my $fname; | |||||||||||||
| 1096 | 0 | my $ftype = 0; | |||||||||||||
| 1097 | 0 | my $fid = 0; | |||||||||||||
| 1098 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1099 | 0 | while (1) | |||||||||||||
| 1100 | { | ||||||||||||||
| 1101 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1102 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1103 | 0 | last; | |||||||||||||
| 1104 | } | ||||||||||||||
| 1105 | 0 | SWITCH: for($fid) | |||||||||||||
| 1106 | { | ||||||||||||||
| 1107 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1108 | 0 | $self->{success} = ThriftTest::Xtruct->new(); | |||||||||||||
| 1109 | 0 | $xfer += $self->{success}->read($input); | |||||||||||||
| 1110 | } else { | ||||||||||||||
| 1111 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1112 | } | ||||||||||||||
| 1113 | 0 | last; }; | |||||||||||||
| 1114 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1115 | } | ||||||||||||||
| 1116 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1117 | } | ||||||||||||||
| 1118 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1119 | 0 | return $xfer; | |||||||||||||
| 1120 | } | ||||||||||||||
| 1121 | |||||||||||||||
| 1122 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 1123 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1124 | 0 | my $xfer = 0; | |||||||||||||
| 1125 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testStruct_result'); | |||||||||||||
| 1126 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1127 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::STRUCT, 0); | |||||||||||||
| 1128 | 0 | $xfer += $self->{success}->write($output); | |||||||||||||
| 1129 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1130 | } | ||||||||||||||
| 1131 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1132 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1133 | 0 | return $xfer; | |||||||||||||
| 1134 | } | ||||||||||||||
| 1135 | |||||||||||||||
| 1136 | package ThriftTest::ThriftTest_testNest_args; | ||||||||||||||
| 1137 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1138 | 1 | ThriftTest::ThriftTest_testNest_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 1139 | |||||||||||||||
| 1140 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1141 | 0 | my $classname = shift; | |||||||||||||
| 1142 | 0 | my $self = {}; | |||||||||||||
| 1143 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1144 | 0 | $self->{thing} = undef; | |||||||||||||
| 1145 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1146 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1147 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 1148 | } | ||||||||||||||
| 1149 | } | ||||||||||||||
| 1150 | 0 | return bless ($self, $classname); | |||||||||||||
| 1151 | } | ||||||||||||||
| 1152 | |||||||||||||||
| 1153 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1154 | 0 | return 'ThriftTest_testNest_args'; | |||||||||||||
| 1155 | } | ||||||||||||||
| 1156 | |||||||||||||||
| 1157 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 1158 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1159 | 0 | my $xfer = 0; | |||||||||||||
| 1160 | 0 | my $fname; | |||||||||||||
| 1161 | 0 | my $ftype = 0; | |||||||||||||
| 1162 | 0 | my $fid = 0; | |||||||||||||
| 1163 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1164 | 0 | while (1) | |||||||||||||
| 1165 | { | ||||||||||||||
| 1166 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1167 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1168 | 0 | last; | |||||||||||||
| 1169 | } | ||||||||||||||
| 1170 | 0 | SWITCH: for($fid) | |||||||||||||
| 1171 | { | ||||||||||||||
| 1172 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1173 | 0 | $self->{thing} = ThriftTest::Xtruct2->new(); | |||||||||||||
| 1174 | 0 | $xfer += $self->{thing}->read($input); | |||||||||||||
| 1175 | } else { | ||||||||||||||
| 1176 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1177 | } | ||||||||||||||
| 1178 | 0 | last; }; | |||||||||||||
| 1179 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1180 | } | ||||||||||||||
| 1181 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1182 | } | ||||||||||||||
| 1183 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1184 | 0 | return $xfer; | |||||||||||||
| 1185 | } | ||||||||||||||
| 1186 | |||||||||||||||
| 1187 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 1188 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1189 | 0 | my $xfer = 0; | |||||||||||||
| 1190 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testNest_args'); | |||||||||||||
| 1191 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1192 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::STRUCT, 1); | |||||||||||||
| 1193 | 0 | $xfer += $self->{thing}->write($output); | |||||||||||||
| 1194 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1195 | } | ||||||||||||||
| 1196 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1197 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1198 | 0 | return $xfer; | |||||||||||||
| 1199 | } | ||||||||||||||
| 1200 | |||||||||||||||
| 1201 | package ThriftTest::ThriftTest_testNest_result; | ||||||||||||||
| 1202 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1203 | 1 | ThriftTest::ThriftTest_testNest_result->mk_accessors( qw( success ) ); | |||||||||||||
| 1204 | |||||||||||||||
| 1205 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1206 | 0 | my $classname = shift; | |||||||||||||
| 1207 | 0 | my $self = {}; | |||||||||||||
| 1208 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1209 | 0 | $self->{success} = undef; | |||||||||||||
| 1210 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1211 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1212 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 1213 | } | ||||||||||||||
| 1214 | } | ||||||||||||||
| 1215 | 0 | return bless ($self, $classname); | |||||||||||||
| 1216 | } | ||||||||||||||
| 1217 | |||||||||||||||
| 1218 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1219 | 0 | return 'ThriftTest_testNest_result'; | |||||||||||||
| 1220 | } | ||||||||||||||
| 1221 | |||||||||||||||
| 1222 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 1223 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1224 | 0 | my $xfer = 0; | |||||||||||||
| 1225 | 0 | my $fname; | |||||||||||||
| 1226 | 0 | my $ftype = 0; | |||||||||||||
| 1227 | 0 | my $fid = 0; | |||||||||||||
| 1228 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1229 | 0 | while (1) | |||||||||||||
| 1230 | { | ||||||||||||||
| 1231 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1232 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1233 | 0 | last; | |||||||||||||
| 1234 | } | ||||||||||||||
| 1235 | 0 | SWITCH: for($fid) | |||||||||||||
| 1236 | { | ||||||||||||||
| 1237 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1238 | 0 | $self->{success} = ThriftTest::Xtruct2->new(); | |||||||||||||
| 1239 | 0 | $xfer += $self->{success}->read($input); | |||||||||||||
| 1240 | } else { | ||||||||||||||
| 1241 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1242 | } | ||||||||||||||
| 1243 | 0 | last; }; | |||||||||||||
| 1244 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1245 | } | ||||||||||||||
| 1246 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1247 | } | ||||||||||||||
| 1248 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1249 | 0 | return $xfer; | |||||||||||||
| 1250 | } | ||||||||||||||
| 1251 | |||||||||||||||
| 1252 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 1253 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1254 | 0 | my $xfer = 0; | |||||||||||||
| 1255 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testNest_result'); | |||||||||||||
| 1256 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1257 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::STRUCT, 0); | |||||||||||||
| 1258 | 0 | $xfer += $self->{success}->write($output); | |||||||||||||
| 1259 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1260 | } | ||||||||||||||
| 1261 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1262 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1263 | 0 | return $xfer; | |||||||||||||
| 1264 | } | ||||||||||||||
| 1265 | |||||||||||||||
| 1266 | package ThriftTest::ThriftTest_testMap_args; | ||||||||||||||
| 1267 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1268 | 1 | ThriftTest::ThriftTest_testMap_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 1269 | |||||||||||||||
| 1270 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1271 | 0 | my $classname = shift; | |||||||||||||
| 1272 | 0 | my $self = {}; | |||||||||||||
| 1273 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1274 | 0 | $self->{thing} = undef; | |||||||||||||
| 1275 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1276 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1277 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 1278 | } | ||||||||||||||
| 1279 | } | ||||||||||||||
| 1280 | 0 | return bless ($self, $classname); | |||||||||||||
| 1281 | } | ||||||||||||||
| 1282 | |||||||||||||||
| 1283 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1284 | 0 | return 'ThriftTest_testMap_args'; | |||||||||||||
| 1285 | } | ||||||||||||||
| 1286 | |||||||||||||||
| 1287 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=6 SCAR=37.4
| |||||||||||||||
| 1288 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1289 | 0 | my $xfer = 0; | |||||||||||||
| 1290 | 0 | my $fname; | |||||||||||||
| 1291 | 0 | my $ftype = 0; | |||||||||||||
| 1292 | 0 | my $fid = 0; | |||||||||||||
| 1293 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1294 | 0 | while (1) | |||||||||||||
| 1295 | { | ||||||||||||||
| 1296 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1297 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1298 | 0 | last; | |||||||||||||
| 1299 | } | ||||||||||||||
| 1300 | 0 | SWITCH: for($fid) | |||||||||||||
| 1301 | { | ||||||||||||||
| 1302 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::MAP) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1303 | { | ||||||||||||||
| 1304 | 0 | my $_size286 = 0; | |||||||||||||
| 1305 | 0 | $self->{thing} = {}; | |||||||||||||
| 1306 | 0 | my $_ktype287 = 0; | |||||||||||||
| 1307 | 0 | my $_vtype288 = 0; | |||||||||||||
| 1308 | 0 | $xfer += $input->readMapBegin(\$_ktype287, \$_vtype288, \$_size286); | |||||||||||||
| 1309 | 0 | ▶ | for (my $_i290 = 0; $_i290 < $_size286; ++$_i290) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1310 | { | ||||||||||||||
| 1311 | 0 | my $key291 = 0; | |||||||||||||
| 1312 | 0 | my $val292 = 0; | |||||||||||||
| 1313 | 0 | $xfer += $input->readI32(\$key291); | |||||||||||||
| 1314 | 0 | $xfer += $input->readI32(\$val292); | |||||||||||||
| 1315 | 0 | $self->{thing}->{$key291} = $val292; | |||||||||||||
| 1316 | } | ||||||||||||||
| 1317 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 1318 | } | ||||||||||||||
| 1319 | } else { | ||||||||||||||
| 1320 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1321 | } | ||||||||||||||
| 1322 | 0 | last; }; | |||||||||||||
| 1323 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1324 | } | ||||||||||||||
| 1325 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1326 | } | ||||||||||||||
| 1327 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1328 | 0 | return $xfer; | |||||||||||||
| 1329 | } | ||||||||||||||
| 1330 | |||||||||||||||
| 1331 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 1332 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1333 | 0 | my $xfer = 0; | |||||||||||||
| 1334 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testMap_args'); | |||||||||||||
| 1335 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1336 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::MAP, 1); | |||||||||||||
| 1337 | { | ||||||||||||||
| 1338 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::I32, Thrift::TType::I32, scalar(keys %{$self->{thing}})); | |||||||||||||
| 1339 | { | ||||||||||||||
| 1340 | 0 | ▶ | while( my ($kiter293,$viter294) = each %{$self->{thing}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1341 | { | ||||||||||||||
| 1342 | 0 | $xfer += $output->writeI32($kiter293); | |||||||||||||
| 1343 | 0 | $xfer += $output->writeI32($viter294); | |||||||||||||
| 1344 | } | ||||||||||||||
| 1345 | } | ||||||||||||||
| 1346 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 1347 | } | ||||||||||||||
| 1348 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1349 | } | ||||||||||||||
| 1350 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1351 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1352 | 0 | return $xfer; | |||||||||||||
| 1353 | } | ||||||||||||||
| 1354 | |||||||||||||||
| 1355 | package ThriftTest::ThriftTest_testMap_result; | ||||||||||||||
| 1356 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1357 | 1 | ThriftTest::ThriftTest_testMap_result->mk_accessors( qw( success ) ); | |||||||||||||
| 1358 | |||||||||||||||
| 1359 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1360 | 0 | my $classname = shift; | |||||||||||||
| 1361 | 0 | my $self = {}; | |||||||||||||
| 1362 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1363 | 0 | $self->{success} = undef; | |||||||||||||
| 1364 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1365 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1366 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 1367 | } | ||||||||||||||
| 1368 | } | ||||||||||||||
| 1369 | 0 | return bless ($self, $classname); | |||||||||||||
| 1370 | } | ||||||||||||||
| 1371 | |||||||||||||||
| 1372 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1373 | 0 | return 'ThriftTest_testMap_result'; | |||||||||||||
| 1374 | } | ||||||||||||||
| 1375 | |||||||||||||||
| 1376 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=6 SCAR=37.4
| |||||||||||||||
| 1377 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1378 | 0 | my $xfer = 0; | |||||||||||||
| 1379 | 0 | my $fname; | |||||||||||||
| 1380 | 0 | my $ftype = 0; | |||||||||||||
| 1381 | 0 | my $fid = 0; | |||||||||||||
| 1382 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1383 | 0 | while (1) | |||||||||||||
| 1384 | { | ||||||||||||||
| 1385 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1386 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1387 | 0 | last; | |||||||||||||
| 1388 | } | ||||||||||||||
| 1389 | 0 | SWITCH: for($fid) | |||||||||||||
| 1390 | { | ||||||||||||||
| 1391 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::MAP) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1392 | { | ||||||||||||||
| 1393 | 0 | my $_size295 = 0; | |||||||||||||
| 1394 | 0 | $self->{success} = {}; | |||||||||||||
| 1395 | 0 | my $_ktype296 = 0; | |||||||||||||
| 1396 | 0 | my $_vtype297 = 0; | |||||||||||||
| 1397 | 0 | $xfer += $input->readMapBegin(\$_ktype296, \$_vtype297, \$_size295); | |||||||||||||
| 1398 | 0 | ▶ | for (my $_i299 = 0; $_i299 < $_size295; ++$_i299) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1399 | { | ||||||||||||||
| 1400 | 0 | my $key300 = 0; | |||||||||||||
| 1401 | 0 | my $val301 = 0; | |||||||||||||
| 1402 | 0 | $xfer += $input->readI32(\$key300); | |||||||||||||
| 1403 | 0 | $xfer += $input->readI32(\$val301); | |||||||||||||
| 1404 | 0 | $self->{success}->{$key300} = $val301; | |||||||||||||
| 1405 | } | ||||||||||||||
| 1406 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 1407 | } | ||||||||||||||
| 1408 | } else { | ||||||||||||||
| 1409 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1410 | } | ||||||||||||||
| 1411 | 0 | last; }; | |||||||||||||
| 1412 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1413 | } | ||||||||||||||
| 1414 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1415 | } | ||||||||||||||
| 1416 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1417 | 0 | return $xfer; | |||||||||||||
| 1418 | } | ||||||||||||||
| 1419 | |||||||||||||||
| 1420 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 1421 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1422 | 0 | my $xfer = 0; | |||||||||||||
| 1423 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testMap_result'); | |||||||||||||
| 1424 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1425 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::MAP, 0); | |||||||||||||
| 1426 | { | ||||||||||||||
| 1427 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::I32, Thrift::TType::I32, scalar(keys %{$self->{success}})); | |||||||||||||
| 1428 | { | ||||||||||||||
| 1429 | 0 | ▶ | while( my ($kiter302,$viter303) = each %{$self->{success}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1430 | { | ||||||||||||||
| 1431 | 0 | $xfer += $output->writeI32($kiter302); | |||||||||||||
| 1432 | 0 | $xfer += $output->writeI32($viter303); | |||||||||||||
| 1433 | } | ||||||||||||||
| 1434 | } | ||||||||||||||
| 1435 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 1436 | } | ||||||||||||||
| 1437 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1438 | } | ||||||||||||||
| 1439 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1440 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1441 | 0 | return $xfer; | |||||||||||||
| 1442 | } | ||||||||||||||
| 1443 | |||||||||||||||
| 1444 | package ThriftTest::ThriftTest_testStringMap_args; | ||||||||||||||
| 1445 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1446 | 1 | ThriftTest::ThriftTest_testStringMap_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 1447 | |||||||||||||||
| 1448 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1449 | 0 | my $classname = shift; | |||||||||||||
| 1450 | 0 | my $self = {}; | |||||||||||||
| 1451 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1452 | 0 | $self->{thing} = undef; | |||||||||||||
| 1453 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1454 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1455 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 1456 | } | ||||||||||||||
| 1457 | } | ||||||||||||||
| 1458 | 0 | return bless ($self, $classname); | |||||||||||||
| 1459 | } | ||||||||||||||
| 1460 | |||||||||||||||
| 1461 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1462 | 0 | return 'ThriftTest_testStringMap_args'; | |||||||||||||
| 1463 | } | ||||||||||||||
| 1464 | |||||||||||||||
| 1465 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=6 SCAR=37.4
| |||||||||||||||
| 1466 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1467 | 0 | my $xfer = 0; | |||||||||||||
| 1468 | 0 | my $fname; | |||||||||||||
| 1469 | 0 | my $ftype = 0; | |||||||||||||
| 1470 | 0 | my $fid = 0; | |||||||||||||
| 1471 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1472 | 0 | while (1) | |||||||||||||
| 1473 | { | ||||||||||||||
| 1474 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1475 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1476 | 0 | last; | |||||||||||||
| 1477 | } | ||||||||||||||
| 1478 | 0 | SWITCH: for($fid) | |||||||||||||
| 1479 | { | ||||||||||||||
| 1480 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::MAP) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1481 | { | ||||||||||||||
| 1482 | 0 | my $_size304 = 0; | |||||||||||||
| 1483 | 0 | $self->{thing} = {}; | |||||||||||||
| 1484 | 0 | my $_ktype305 = 0; | |||||||||||||
| 1485 | 0 | my $_vtype306 = 0; | |||||||||||||
| 1486 | 0 | $xfer += $input->readMapBegin(\$_ktype305, \$_vtype306, \$_size304); | |||||||||||||
| 1487 | 0 | ▶ | for (my $_i308 = 0; $_i308 < $_size304; ++$_i308) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1488 | { | ||||||||||||||
| 1489 | 0 | my $key309 = ''; | |||||||||||||
| 1490 | 0 | my $val310 = ''; | |||||||||||||
| 1491 | 0 | $xfer += $input->readString(\$key309); | |||||||||||||
| 1492 | 0 | $xfer += $input->readString(\$val310); | |||||||||||||
| 1493 | 0 | $self->{thing}->{$key309} = $val310; | |||||||||||||
| 1494 | } | ||||||||||||||
| 1495 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 1496 | } | ||||||||||||||
| 1497 | } else { | ||||||||||||||
| 1498 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1499 | } | ||||||||||||||
| 1500 | 0 | last; }; | |||||||||||||
| 1501 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1502 | } | ||||||||||||||
| 1503 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1504 | } | ||||||||||||||
| 1505 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1506 | 0 | return $xfer; | |||||||||||||
| 1507 | } | ||||||||||||||
| 1508 | |||||||||||||||
| 1509 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 1510 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1511 | 0 | my $xfer = 0; | |||||||||||||
| 1512 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testStringMap_args'); | |||||||||||||
| 1513 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1514 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::MAP, 1); | |||||||||||||
| 1515 | { | ||||||||||||||
| 1516 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::STRING, Thrift::TType::STRING, scalar(keys %{$self->{thing}})); | |||||||||||||
| 1517 | { | ||||||||||||||
| 1518 | 0 | ▶ | while( my ($kiter311,$viter312) = each %{$self->{thing}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1519 | { | ||||||||||||||
| 1520 | 0 | $xfer += $output->writeString($kiter311); | |||||||||||||
| 1521 | 0 | $xfer += $output->writeString($viter312); | |||||||||||||
| 1522 | } | ||||||||||||||
| 1523 | } | ||||||||||||||
| 1524 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 1525 | } | ||||||||||||||
| 1526 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1527 | } | ||||||||||||||
| 1528 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1529 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1530 | 0 | return $xfer; | |||||||||||||
| 1531 | } | ||||||||||||||
| 1532 | |||||||||||||||
| 1533 | package ThriftTest::ThriftTest_testStringMap_result; | ||||||||||||||
| 1534 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1535 | 1 | ThriftTest::ThriftTest_testStringMap_result->mk_accessors( qw( success ) ); | |||||||||||||
| 1536 | |||||||||||||||
| 1537 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1538 | 0 | my $classname = shift; | |||||||||||||
| 1539 | 0 | my $self = {}; | |||||||||||||
| 1540 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1541 | 0 | $self->{success} = undef; | |||||||||||||
| 1542 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1543 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1544 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 1545 | } | ||||||||||||||
| 1546 | } | ||||||||||||||
| 1547 | 0 | return bless ($self, $classname); | |||||||||||||
| 1548 | } | ||||||||||||||
| 1549 | |||||||||||||||
| 1550 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1551 | 0 | return 'ThriftTest_testStringMap_result'; | |||||||||||||
| 1552 | } | ||||||||||||||
| 1553 | |||||||||||||||
| 1554 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=6 SCAR=37.4
| |||||||||||||||
| 1555 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1556 | 0 | my $xfer = 0; | |||||||||||||
| 1557 | 0 | my $fname; | |||||||||||||
| 1558 | 0 | my $ftype = 0; | |||||||||||||
| 1559 | 0 | my $fid = 0; | |||||||||||||
| 1560 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1561 | 0 | while (1) | |||||||||||||
| 1562 | { | ||||||||||||||
| 1563 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1564 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1565 | 0 | last; | |||||||||||||
| 1566 | } | ||||||||||||||
| 1567 | 0 | SWITCH: for($fid) | |||||||||||||
| 1568 | { | ||||||||||||||
| 1569 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::MAP) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1570 | { | ||||||||||||||
| 1571 | 0 | my $_size313 = 0; | |||||||||||||
| 1572 | 0 | $self->{success} = {}; | |||||||||||||
| 1573 | 0 | my $_ktype314 = 0; | |||||||||||||
| 1574 | 0 | my $_vtype315 = 0; | |||||||||||||
| 1575 | 0 | $xfer += $input->readMapBegin(\$_ktype314, \$_vtype315, \$_size313); | |||||||||||||
| 1576 | 0 | ▶ | for (my $_i317 = 0; $_i317 < $_size313; ++$_i317) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1577 | { | ||||||||||||||
| 1578 | 0 | my $key318 = ''; | |||||||||||||
| 1579 | 0 | my $val319 = ''; | |||||||||||||
| 1580 | 0 | $xfer += $input->readString(\$key318); | |||||||||||||
| 1581 | 0 | $xfer += $input->readString(\$val319); | |||||||||||||
| 1582 | 0 | $self->{success}->{$key318} = $val319; | |||||||||||||
| 1583 | } | ||||||||||||||
| 1584 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 1585 | } | ||||||||||||||
| 1586 | } else { | ||||||||||||||
| 1587 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1588 | } | ||||||||||||||
| 1589 | 0 | last; }; | |||||||||||||
| 1590 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1591 | } | ||||||||||||||
| 1592 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1593 | } | ||||||||||||||
| 1594 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1595 | 0 | return $xfer; | |||||||||||||
| 1596 | } | ||||||||||||||
| 1597 | |||||||||||||||
| 1598 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 1599 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1600 | 0 | my $xfer = 0; | |||||||||||||
| 1601 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testStringMap_result'); | |||||||||||||
| 1602 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1603 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::MAP, 0); | |||||||||||||
| 1604 | { | ||||||||||||||
| 1605 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::STRING, Thrift::TType::STRING, scalar(keys %{$self->{success}})); | |||||||||||||
| 1606 | { | ||||||||||||||
| 1607 | 0 | ▶ | while( my ($kiter320,$viter321) = each %{$self->{success}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1608 | { | ||||||||||||||
| 1609 | 0 | $xfer += $output->writeString($kiter320); | |||||||||||||
| 1610 | 0 | $xfer += $output->writeString($viter321); | |||||||||||||
| 1611 | } | ||||||||||||||
| 1612 | } | ||||||||||||||
| 1613 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 1614 | } | ||||||||||||||
| 1615 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1616 | } | ||||||||||||||
| 1617 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1618 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1619 | 0 | return $xfer; | |||||||||||||
| 1620 | } | ||||||||||||||
| 1621 | |||||||||||||||
| 1622 | package ThriftTest::ThriftTest_testSet_args; | ||||||||||||||
| 1623 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1624 | 1 | ThriftTest::ThriftTest_testSet_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 1625 | |||||||||||||||
| 1626 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1627 | 0 | my $classname = shift; | |||||||||||||
| 1628 | 0 | my $self = {}; | |||||||||||||
| 1629 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1630 | 0 | $self->{thing} = undef; | |||||||||||||
| 1631 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1632 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1633 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 1634 | } | ||||||||||||||
| 1635 | } | ||||||||||||||
| 1636 | 0 | return bless ($self, $classname); | |||||||||||||
| 1637 | } | ||||||||||||||
| 1638 | |||||||||||||||
| 1639 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1640 | 0 | return 'ThriftTest_testSet_args'; | |||||||||||||
| 1641 | } | ||||||||||||||
| 1642 | |||||||||||||||
| 1643 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=6 SCAR=37.4
| |||||||||||||||
| 1644 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1645 | 0 | my $xfer = 0; | |||||||||||||
| 1646 | 0 | my $fname; | |||||||||||||
| 1647 | 0 | my $ftype = 0; | |||||||||||||
| 1648 | 0 | my $fid = 0; | |||||||||||||
| 1649 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1650 | 0 | while (1) | |||||||||||||
| 1651 | { | ||||||||||||||
| 1652 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1653 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1654 | 0 | last; | |||||||||||||
| 1655 | } | ||||||||||||||
| 1656 | 0 | SWITCH: for($fid) | |||||||||||||
| 1657 | { | ||||||||||||||
| 1658 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::SET) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1659 | { | ||||||||||||||
| 1660 | 0 | my $_size322 = 0; | |||||||||||||
| 1661 | 0 | $self->{thing} = {}; | |||||||||||||
| 1662 | 0 | my $_etype325 = 0; | |||||||||||||
| 1663 | 0 | $xfer += $input->readSetBegin(\$_etype325, \$_size322); | |||||||||||||
| 1664 | 0 | ▶ | for (my $_i326 = 0; $_i326 < $_size322; ++$_i326) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1665 | { | ||||||||||||||
| 1666 | 0 | my $elem327 = undef; | |||||||||||||
| 1667 | 0 | $xfer += $input->readI32(\$elem327); | |||||||||||||
| 1668 | 0 | $self->{thing}->{$elem327} = 1; | |||||||||||||
| 1669 | } | ||||||||||||||
| 1670 | 0 | $xfer += $input->readSetEnd(); | |||||||||||||
| 1671 | } | ||||||||||||||
| 1672 | } else { | ||||||||||||||
| 1673 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1674 | } | ||||||||||||||
| 1675 | 0 | last; }; | |||||||||||||
| 1676 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1677 | } | ||||||||||||||
| 1678 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1679 | } | ||||||||||||||
| 1680 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1681 | 0 | return $xfer; | |||||||||||||
| 1682 | } | ||||||||||||||
| 1683 | |||||||||||||||
| 1684 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 1685 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1686 | 0 | my $xfer = 0; | |||||||||||||
| 1687 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testSet_args'); | |||||||||||||
| 1688 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1689 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::SET, 1); | |||||||||||||
| 1690 | { | ||||||||||||||
| 1691 | 0 | $xfer += $output->writeSetBegin(Thrift::TType::I32, scalar(@{$self->{thing}})); | |||||||||||||
| 1692 | { | ||||||||||||||
| 1693 | 0 | foreach my $iter328 (@{$self->{thing}}) | |||||||||||||
| 1694 | { | ||||||||||||||
| 1695 | 0 | $xfer += $output->writeI32($iter328); | |||||||||||||
| 1696 | } | ||||||||||||||
| 1697 | } | ||||||||||||||
| 1698 | 0 | $xfer += $output->writeSetEnd(); | |||||||||||||
| 1699 | } | ||||||||||||||
| 1700 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1701 | } | ||||||||||||||
| 1702 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1703 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1704 | 0 | return $xfer; | |||||||||||||
| 1705 | } | ||||||||||||||
| 1706 | |||||||||||||||
| 1707 | package ThriftTest::ThriftTest_testSet_result; | ||||||||||||||
| 1708 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1709 | 1 | ThriftTest::ThriftTest_testSet_result->mk_accessors( qw( success ) ); | |||||||||||||
| 1710 | |||||||||||||||
| 1711 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1712 | 0 | my $classname = shift; | |||||||||||||
| 1713 | 0 | my $self = {}; | |||||||||||||
| 1714 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1715 | 0 | $self->{success} = undef; | |||||||||||||
| 1716 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1717 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1718 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 1719 | } | ||||||||||||||
| 1720 | } | ||||||||||||||
| 1721 | 0 | return bless ($self, $classname); | |||||||||||||
| 1722 | } | ||||||||||||||
| 1723 | |||||||||||||||
| 1724 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1725 | 0 | return 'ThriftTest_testSet_result'; | |||||||||||||
| 1726 | } | ||||||||||||||
| 1727 | |||||||||||||||
| 1728 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=6 SCAR=37.4
| |||||||||||||||
| 1729 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1730 | 0 | my $xfer = 0; | |||||||||||||
| 1731 | 0 | my $fname; | |||||||||||||
| 1732 | 0 | my $ftype = 0; | |||||||||||||
| 1733 | 0 | my $fid = 0; | |||||||||||||
| 1734 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1735 | 0 | while (1) | |||||||||||||
| 1736 | { | ||||||||||||||
| 1737 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1738 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1739 | 0 | last; | |||||||||||||
| 1740 | } | ||||||||||||||
| 1741 | 0 | SWITCH: for($fid) | |||||||||||||
| 1742 | { | ||||||||||||||
| 1743 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::SET) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1744 | { | ||||||||||||||
| 1745 | 0 | my $_size329 = 0; | |||||||||||||
| 1746 | 0 | $self->{success} = {}; | |||||||||||||
| 1747 | 0 | my $_etype332 = 0; | |||||||||||||
| 1748 | 0 | $xfer += $input->readSetBegin(\$_etype332, \$_size329); | |||||||||||||
| 1749 | 0 | ▶ | for (my $_i333 = 0; $_i333 < $_size329; ++$_i333) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1750 | { | ||||||||||||||
| 1751 | 0 | my $elem334 = undef; | |||||||||||||
| 1752 | 0 | $xfer += $input->readI32(\$elem334); | |||||||||||||
| 1753 | 0 | $self->{success}->{$elem334} = 1; | |||||||||||||
| 1754 | } | ||||||||||||||
| 1755 | 0 | $xfer += $input->readSetEnd(); | |||||||||||||
| 1756 | } | ||||||||||||||
| 1757 | } else { | ||||||||||||||
| 1758 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1759 | } | ||||||||||||||
| 1760 | 0 | last; }; | |||||||||||||
| 1761 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1762 | } | ||||||||||||||
| 1763 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1764 | } | ||||||||||||||
| 1765 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1766 | 0 | return $xfer; | |||||||||||||
| 1767 | } | ||||||||||||||
| 1768 | |||||||||||||||
| 1769 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 1770 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1771 | 0 | my $xfer = 0; | |||||||||||||
| 1772 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testSet_result'); | |||||||||||||
| 1773 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1774 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::SET, 0); | |||||||||||||
| 1775 | { | ||||||||||||||
| 1776 | 0 | $xfer += $output->writeSetBegin(Thrift::TType::I32, scalar(@{$self->{success}})); | |||||||||||||
| 1777 | { | ||||||||||||||
| 1778 | 0 | foreach my $iter335 (@{$self->{success}}) | |||||||||||||
| 1779 | { | ||||||||||||||
| 1780 | 0 | $xfer += $output->writeI32($iter335); | |||||||||||||
| 1781 | } | ||||||||||||||
| 1782 | } | ||||||||||||||
| 1783 | 0 | $xfer += $output->writeSetEnd(); | |||||||||||||
| 1784 | } | ||||||||||||||
| 1785 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1786 | } | ||||||||||||||
| 1787 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1788 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1789 | 0 | return $xfer; | |||||||||||||
| 1790 | } | ||||||||||||||
| 1791 | |||||||||||||||
| 1792 | package ThriftTest::ThriftTest_testList_args; | ||||||||||||||
| 1793 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1794 | 1 | ThriftTest::ThriftTest_testList_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 1795 | |||||||||||||||
| 1796 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1797 | 0 | my $classname = shift; | |||||||||||||
| 1798 | 0 | my $self = {}; | |||||||||||||
| 1799 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1800 | 0 | $self->{thing} = undef; | |||||||||||||
| 1801 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1802 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1803 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 1804 | } | ||||||||||||||
| 1805 | } | ||||||||||||||
| 1806 | 0 | return bless ($self, $classname); | |||||||||||||
| 1807 | } | ||||||||||||||
| 1808 | |||||||||||||||
| 1809 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1810 | 0 | return 'ThriftTest_testList_args'; | |||||||||||||
| 1811 | } | ||||||||||||||
| 1812 | |||||||||||||||
| 1813 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=6 SCAR=37.4
| |||||||||||||||
| 1814 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1815 | 0 | my $xfer = 0; | |||||||||||||
| 1816 | 0 | my $fname; | |||||||||||||
| 1817 | 0 | my $ftype = 0; | |||||||||||||
| 1818 | 0 | my $fid = 0; | |||||||||||||
| 1819 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1820 | 0 | while (1) | |||||||||||||
| 1821 | { | ||||||||||||||
| 1822 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1823 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1824 | 0 | last; | |||||||||||||
| 1825 | } | ||||||||||||||
| 1826 | 0 | SWITCH: for($fid) | |||||||||||||
| 1827 | { | ||||||||||||||
| 1828 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::LIST) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1829 | { | ||||||||||||||
| 1830 | 0 | my $_size336 = 0; | |||||||||||||
| 1831 | 0 | $self->{thing} = []; | |||||||||||||
| 1832 | 0 | my $_etype339 = 0; | |||||||||||||
| 1833 | 0 | $xfer += $input->readListBegin(\$_etype339, \$_size336); | |||||||||||||
| 1834 | 0 | ▶ | for (my $_i340 = 0; $_i340 < $_size336; ++$_i340) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1835 | { | ||||||||||||||
| 1836 | 0 | my $elem341 = undef; | |||||||||||||
| 1837 | 0 | $xfer += $input->readI32(\$elem341); | |||||||||||||
| 1838 | 0 | push(@{$self->{thing}},$elem341); | |||||||||||||
| 1839 | } | ||||||||||||||
| 1840 | 0 | $xfer += $input->readListEnd(); | |||||||||||||
| 1841 | } | ||||||||||||||
| 1842 | } else { | ||||||||||||||
| 1843 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1844 | } | ||||||||||||||
| 1845 | 0 | last; }; | |||||||||||||
| 1846 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1847 | } | ||||||||||||||
| 1848 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1849 | } | ||||||||||||||
| 1850 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1851 | 0 | return $xfer; | |||||||||||||
| 1852 | } | ||||||||||||||
| 1853 | |||||||||||||||
| 1854 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 1855 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1856 | 0 | my $xfer = 0; | |||||||||||||
| 1857 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testList_args'); | |||||||||||||
| 1858 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1859 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::LIST, 1); | |||||||||||||
| 1860 | { | ||||||||||||||
| 1861 | 0 | $xfer += $output->writeListBegin(Thrift::TType::I32, scalar(@{$self->{thing}})); | |||||||||||||
| 1862 | { | ||||||||||||||
| 1863 | 0 | foreach my $iter342 (@{$self->{thing}}) | |||||||||||||
| 1864 | { | ||||||||||||||
| 1865 | 0 | $xfer += $output->writeI32($iter342); | |||||||||||||
| 1866 | } | ||||||||||||||
| 1867 | } | ||||||||||||||
| 1868 | 0 | $xfer += $output->writeListEnd(); | |||||||||||||
| 1869 | } | ||||||||||||||
| 1870 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1871 | } | ||||||||||||||
| 1872 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1873 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1874 | 0 | return $xfer; | |||||||||||||
| 1875 | } | ||||||||||||||
| 1876 | |||||||||||||||
| 1877 | package ThriftTest::ThriftTest_testList_result; | ||||||||||||||
| 1878 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1879 | 1 | ThriftTest::ThriftTest_testList_result->mk_accessors( qw( success ) ); | |||||||||||||
| 1880 | |||||||||||||||
| 1881 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1882 | 0 | my $classname = shift; | |||||||||||||
| 1883 | 0 | my $self = {}; | |||||||||||||
| 1884 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1885 | 0 | $self->{success} = undef; | |||||||||||||
| 1886 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1887 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1888 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 1889 | } | ||||||||||||||
| 1890 | } | ||||||||||||||
| 1891 | 0 | return bless ($self, $classname); | |||||||||||||
| 1892 | } | ||||||||||||||
| 1893 | |||||||||||||||
| 1894 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1895 | 0 | return 'ThriftTest_testList_result'; | |||||||||||||
| 1896 | } | ||||||||||||||
| 1897 | |||||||||||||||
| 1898 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=6 SCAR=37.4
| |||||||||||||||
| 1899 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1900 | 0 | my $xfer = 0; | |||||||||||||
| 1901 | 0 | my $fname; | |||||||||||||
| 1902 | 0 | my $ftype = 0; | |||||||||||||
| 1903 | 0 | my $fid = 0; | |||||||||||||
| 1904 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1905 | 0 | while (1) | |||||||||||||
| 1906 | { | ||||||||||||||
| 1907 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1908 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1909 | 0 | last; | |||||||||||||
| 1910 | } | ||||||||||||||
| 1911 | 0 | SWITCH: for($fid) | |||||||||||||
| 1912 | { | ||||||||||||||
| 1913 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::LIST) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1914 | { | ||||||||||||||
| 1915 | 0 | my $_size343 = 0; | |||||||||||||
| 1916 | 0 | $self->{success} = []; | |||||||||||||
| 1917 | 0 | my $_etype346 = 0; | |||||||||||||
| 1918 | 0 | $xfer += $input->readListBegin(\$_etype346, \$_size343); | |||||||||||||
| 1919 | 0 | ▶ | for (my $_i347 = 0; $_i347 < $_size343; ++$_i347) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1920 | { | ||||||||||||||
| 1921 | 0 | my $elem348 = undef; | |||||||||||||
| 1922 | 0 | $xfer += $input->readI32(\$elem348); | |||||||||||||
| 1923 | 0 | push(@{$self->{success}},$elem348); | |||||||||||||
| 1924 | } | ||||||||||||||
| 1925 | 0 | $xfer += $input->readListEnd(); | |||||||||||||
| 1926 | } | ||||||||||||||
| 1927 | } else { | ||||||||||||||
| 1928 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1929 | } | ||||||||||||||
| 1930 | 0 | last; }; | |||||||||||||
| 1931 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 1932 | } | ||||||||||||||
| 1933 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 1934 | } | ||||||||||||||
| 1935 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 1936 | 0 | return $xfer; | |||||||||||||
| 1937 | } | ||||||||||||||
| 1938 | |||||||||||||||
| 1939 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 1940 | 0 | my ($self, $output) = @_; | |||||||||||||
| 1941 | 0 | my $xfer = 0; | |||||||||||||
| 1942 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testList_result'); | |||||||||||||
| 1943 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1944 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::LIST, 0); | |||||||||||||
| 1945 | { | ||||||||||||||
| 1946 | 0 | $xfer += $output->writeListBegin(Thrift::TType::I32, scalar(@{$self->{success}})); | |||||||||||||
| 1947 | { | ||||||||||||||
| 1948 | 0 | foreach my $iter349 (@{$self->{success}}) | |||||||||||||
| 1949 | { | ||||||||||||||
| 1950 | 0 | $xfer += $output->writeI32($iter349); | |||||||||||||
| 1951 | } | ||||||||||||||
| 1952 | } | ||||||||||||||
| 1953 | 0 | $xfer += $output->writeListEnd(); | |||||||||||||
| 1954 | } | ||||||||||||||
| 1955 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 1956 | } | ||||||||||||||
| 1957 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 1958 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 1959 | 0 | return $xfer; | |||||||||||||
| 1960 | } | ||||||||||||||
| 1961 | |||||||||||||||
| 1962 | package ThriftTest::ThriftTest_testEnum_args; | ||||||||||||||
| 1963 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 1964 | 1 | ThriftTest::ThriftTest_testEnum_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 1965 | |||||||||||||||
| 1966 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 1967 | 0 | my $classname = shift; | |||||||||||||
| 1968 | 0 | my $self = {}; | |||||||||||||
| 1969 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 1970 | 0 | $self->{thing} = undef; | |||||||||||||
| 1971 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1972 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1973 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 1974 | } | ||||||||||||||
| 1975 | } | ||||||||||||||
| 1976 | 0 | return bless ($self, $classname); | |||||||||||||
| 1977 | } | ||||||||||||||
| 1978 | |||||||||||||||
| 1979 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 1980 | 0 | return 'ThriftTest_testEnum_args'; | |||||||||||||
| 1981 | } | ||||||||||||||
| 1982 | |||||||||||||||
| 1983 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 1984 | 0 | my ($self, $input) = @_; | |||||||||||||
| 1985 | 0 | my $xfer = 0; | |||||||||||||
| 1986 | 0 | my $fname; | |||||||||||||
| 1987 | 0 | my $ftype = 0; | |||||||||||||
| 1988 | 0 | my $fid = 0; | |||||||||||||
| 1989 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 1990 | 0 | while (1) | |||||||||||||
| 1991 | { | ||||||||||||||
| 1992 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 1993 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 1994 | 0 | last; | |||||||||||||
| 1995 | } | ||||||||||||||
| 1996 | 0 | SWITCH: for($fid) | |||||||||||||
| 1997 | { | ||||||||||||||
| 1998 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::I32) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 1999 | 0 | $xfer += $input->readI32(\$self->{thing}); | |||||||||||||
| 2000 | } else { | ||||||||||||||
| 2001 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2002 | } | ||||||||||||||
| 2003 | 0 | last; }; | |||||||||||||
| 2004 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2005 | } | ||||||||||||||
| 2006 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2007 | } | ||||||||||||||
| 2008 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2009 | 0 | return $xfer; | |||||||||||||
| 2010 | } | ||||||||||||||
| 2011 | |||||||||||||||
| 2012 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2013 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2014 | 0 | my $xfer = 0; | |||||||||||||
| 2015 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testEnum_args'); | |||||||||||||
| 2016 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2017 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::I32, 1); | |||||||||||||
| 2018 | 0 | $xfer += $output->writeI32($self->{thing}); | |||||||||||||
| 2019 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2020 | } | ||||||||||||||
| 2021 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2022 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2023 | 0 | return $xfer; | |||||||||||||
| 2024 | } | ||||||||||||||
| 2025 | |||||||||||||||
| 2026 | package ThriftTest::ThriftTest_testEnum_result; | ||||||||||||||
| 2027 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2028 | 1 | ThriftTest::ThriftTest_testEnum_result->mk_accessors( qw( success ) ); | |||||||||||||
| 2029 | |||||||||||||||
| 2030 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2031 | 0 | my $classname = shift; | |||||||||||||
| 2032 | 0 | my $self = {}; | |||||||||||||
| 2033 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2034 | 0 | $self->{success} = undef; | |||||||||||||
| 2035 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2036 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2037 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 2038 | } | ||||||||||||||
| 2039 | } | ||||||||||||||
| 2040 | 0 | return bless ($self, $classname); | |||||||||||||
| 2041 | } | ||||||||||||||
| 2042 | |||||||||||||||
| 2043 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2044 | 0 | return 'ThriftTest_testEnum_result'; | |||||||||||||
| 2045 | } | ||||||||||||||
| 2046 | |||||||||||||||
| 2047 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2048 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2049 | 0 | my $xfer = 0; | |||||||||||||
| 2050 | 0 | my $fname; | |||||||||||||
| 2051 | 0 | my $ftype = 0; | |||||||||||||
| 2052 | 0 | my $fid = 0; | |||||||||||||
| 2053 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2054 | 0 | while (1) | |||||||||||||
| 2055 | { | ||||||||||||||
| 2056 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2057 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2058 | 0 | last; | |||||||||||||
| 2059 | } | ||||||||||||||
| 2060 | 0 | SWITCH: for($fid) | |||||||||||||
| 2061 | { | ||||||||||||||
| 2062 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::I32) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2063 | 0 | $xfer += $input->readI32(\$self->{success}); | |||||||||||||
| 2064 | } else { | ||||||||||||||
| 2065 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2066 | } | ||||||||||||||
| 2067 | 0 | last; }; | |||||||||||||
| 2068 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2069 | } | ||||||||||||||
| 2070 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2071 | } | ||||||||||||||
| 2072 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2073 | 0 | return $xfer; | |||||||||||||
| 2074 | } | ||||||||||||||
| 2075 | |||||||||||||||
| 2076 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2077 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2078 | 0 | my $xfer = 0; | |||||||||||||
| 2079 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testEnum_result'); | |||||||||||||
| 2080 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2081 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::I32, 0); | |||||||||||||
| 2082 | 0 | $xfer += $output->writeI32($self->{success}); | |||||||||||||
| 2083 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2084 | } | ||||||||||||||
| 2085 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2086 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2087 | 0 | return $xfer; | |||||||||||||
| 2088 | } | ||||||||||||||
| 2089 | |||||||||||||||
| 2090 | package ThriftTest::ThriftTest_testTypedef_args; | ||||||||||||||
| 2091 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2092 | 1 | ThriftTest::ThriftTest_testTypedef_args->mk_accessors( qw( thing ) ); | |||||||||||||
| 2093 | |||||||||||||||
| 2094 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2095 | 0 | my $classname = shift; | |||||||||||||
| 2096 | 0 | my $self = {}; | |||||||||||||
| 2097 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2098 | 0 | $self->{thing} = undef; | |||||||||||||
| 2099 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2100 | 0 | ▶ | if (defined $vals->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2101 | 0 | $self->{thing} = $vals->{thing}; | |||||||||||||
| 2102 | } | ||||||||||||||
| 2103 | } | ||||||||||||||
| 2104 | 0 | return bless ($self, $classname); | |||||||||||||
| 2105 | } | ||||||||||||||
| 2106 | |||||||||||||||
| 2107 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2108 | 0 | return 'ThriftTest_testTypedef_args'; | |||||||||||||
| 2109 | } | ||||||||||||||
| 2110 | |||||||||||||||
| 2111 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2112 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2113 | 0 | my $xfer = 0; | |||||||||||||
| 2114 | 0 | my $fname; | |||||||||||||
| 2115 | 0 | my $ftype = 0; | |||||||||||||
| 2116 | 0 | my $fid = 0; | |||||||||||||
| 2117 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2118 | 0 | while (1) | |||||||||||||
| 2119 | { | ||||||||||||||
| 2120 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2121 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2122 | 0 | last; | |||||||||||||
| 2123 | } | ||||||||||||||
| 2124 | 0 | SWITCH: for($fid) | |||||||||||||
| 2125 | { | ||||||||||||||
| 2126 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::I64) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2127 | 0 | $xfer += $input->readI64(\$self->{thing}); | |||||||||||||
| 2128 | } else { | ||||||||||||||
| 2129 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2130 | } | ||||||||||||||
| 2131 | 0 | last; }; | |||||||||||||
| 2132 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2133 | } | ||||||||||||||
| 2134 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2135 | } | ||||||||||||||
| 2136 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2137 | 0 | return $xfer; | |||||||||||||
| 2138 | } | ||||||||||||||
| 2139 | |||||||||||||||
| 2140 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2141 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2142 | 0 | my $xfer = 0; | |||||||||||||
| 2143 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testTypedef_args'); | |||||||||||||
| 2144 | 0 | ▶ | if (defined $self->{thing}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2145 | 0 | $xfer += $output->writeFieldBegin('thing', Thrift::TType::I64, 1); | |||||||||||||
| 2146 | 0 | $xfer += $output->writeI64($self->{thing}); | |||||||||||||
| 2147 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2148 | } | ||||||||||||||
| 2149 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2150 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2151 | 0 | return $xfer; | |||||||||||||
| 2152 | } | ||||||||||||||
| 2153 | |||||||||||||||
| 2154 | package ThriftTest::ThriftTest_testTypedef_result; | ||||||||||||||
| 2155 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2156 | 1 | ThriftTest::ThriftTest_testTypedef_result->mk_accessors( qw( success ) ); | |||||||||||||
| 2157 | |||||||||||||||
| 2158 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2159 | 0 | my $classname = shift; | |||||||||||||
| 2160 | 0 | my $self = {}; | |||||||||||||
| 2161 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2162 | 0 | $self->{success} = undef; | |||||||||||||
| 2163 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2164 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2165 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 2166 | } | ||||||||||||||
| 2167 | } | ||||||||||||||
| 2168 | 0 | return bless ($self, $classname); | |||||||||||||
| 2169 | } | ||||||||||||||
| 2170 | |||||||||||||||
| 2171 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2172 | 0 | return 'ThriftTest_testTypedef_result'; | |||||||||||||
| 2173 | } | ||||||||||||||
| 2174 | |||||||||||||||
| 2175 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2176 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2177 | 0 | my $xfer = 0; | |||||||||||||
| 2178 | 0 | my $fname; | |||||||||||||
| 2179 | 0 | my $ftype = 0; | |||||||||||||
| 2180 | 0 | my $fid = 0; | |||||||||||||
| 2181 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2182 | 0 | while (1) | |||||||||||||
| 2183 | { | ||||||||||||||
| 2184 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2185 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2186 | 0 | last; | |||||||||||||
| 2187 | } | ||||||||||||||
| 2188 | 0 | SWITCH: for($fid) | |||||||||||||
| 2189 | { | ||||||||||||||
| 2190 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::I64) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2191 | 0 | $xfer += $input->readI64(\$self->{success}); | |||||||||||||
| 2192 | } else { | ||||||||||||||
| 2193 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2194 | } | ||||||||||||||
| 2195 | 0 | last; }; | |||||||||||||
| 2196 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2197 | } | ||||||||||||||
| 2198 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2199 | } | ||||||||||||||
| 2200 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2201 | 0 | return $xfer; | |||||||||||||
| 2202 | } | ||||||||||||||
| 2203 | |||||||||||||||
| 2204 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2205 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2206 | 0 | my $xfer = 0; | |||||||||||||
| 2207 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testTypedef_result'); | |||||||||||||
| 2208 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2209 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::I64, 0); | |||||||||||||
| 2210 | 0 | $xfer += $output->writeI64($self->{success}); | |||||||||||||
| 2211 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2212 | } | ||||||||||||||
| 2213 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2214 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2215 | 0 | return $xfer; | |||||||||||||
| 2216 | } | ||||||||||||||
| 2217 | |||||||||||||||
| 2218 | package ThriftTest::ThriftTest_testMapMap_args; | ||||||||||||||
| 2219 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2220 | 1 | ThriftTest::ThriftTest_testMapMap_args->mk_accessors( qw( hello ) ); | |||||||||||||
| 2221 | |||||||||||||||
| 2222 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2223 | 0 | my $classname = shift; | |||||||||||||
| 2224 | 0 | my $self = {}; | |||||||||||||
| 2225 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2226 | 0 | $self->{hello} = undef; | |||||||||||||
| 2227 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2228 | 0 | ▶ | if (defined $vals->{hello}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2229 | 0 | $self->{hello} = $vals->{hello}; | |||||||||||||
| 2230 | } | ||||||||||||||
| 2231 | } | ||||||||||||||
| 2232 | 0 | return bless ($self, $classname); | |||||||||||||
| 2233 | } | ||||||||||||||
| 2234 | |||||||||||||||
| 2235 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2236 | 0 | return 'ThriftTest_testMapMap_args'; | |||||||||||||
| 2237 | } | ||||||||||||||
| 2238 | |||||||||||||||
| 2239 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2240 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2241 | 0 | my $xfer = 0; | |||||||||||||
| 2242 | 0 | my $fname; | |||||||||||||
| 2243 | 0 | my $ftype = 0; | |||||||||||||
| 2244 | 0 | my $fid = 0; | |||||||||||||
| 2245 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2246 | 0 | while (1) | |||||||||||||
| 2247 | { | ||||||||||||||
| 2248 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2249 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2250 | 0 | last; | |||||||||||||
| 2251 | } | ||||||||||||||
| 2252 | 0 | SWITCH: for($fid) | |||||||||||||
| 2253 | { | ||||||||||||||
| 2254 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::I32) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2255 | 0 | $xfer += $input->readI32(\$self->{hello}); | |||||||||||||
| 2256 | } else { | ||||||||||||||
| 2257 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2258 | } | ||||||||||||||
| 2259 | 0 | last; }; | |||||||||||||
| 2260 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2261 | } | ||||||||||||||
| 2262 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2263 | } | ||||||||||||||
| 2264 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2265 | 0 | return $xfer; | |||||||||||||
| 2266 | } | ||||||||||||||
| 2267 | |||||||||||||||
| 2268 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2269 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2270 | 0 | my $xfer = 0; | |||||||||||||
| 2271 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testMapMap_args'); | |||||||||||||
| 2272 | 0 | ▶ | if (defined $self->{hello}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2273 | 0 | $xfer += $output->writeFieldBegin('hello', Thrift::TType::I32, 1); | |||||||||||||
| 2274 | 0 | $xfer += $output->writeI32($self->{hello}); | |||||||||||||
| 2275 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2276 | } | ||||||||||||||
| 2277 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2278 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2279 | 0 | return $xfer; | |||||||||||||
| 2280 | } | ||||||||||||||
| 2281 | |||||||||||||||
| 2282 | package ThriftTest::ThriftTest_testMapMap_result; | ||||||||||||||
| 2283 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2284 | 1 | ThriftTest::ThriftTest_testMapMap_result->mk_accessors( qw( success ) ); | |||||||||||||
| 2285 | |||||||||||||||
| 2286 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2287 | 0 | my $classname = shift; | |||||||||||||
| 2288 | 0 | my $self = {}; | |||||||||||||
| 2289 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2290 | 0 | $self->{success} = undef; | |||||||||||||
| 2291 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2292 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2293 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 2294 | } | ||||||||||||||
| 2295 | } | ||||||||||||||
| 2296 | 0 | return bless ($self, $classname); | |||||||||||||
| 2297 | } | ||||||||||||||
| 2298 | |||||||||||||||
| 2299 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2300 | 0 | return 'ThriftTest_testMapMap_result'; | |||||||||||||
| 2301 | } | ||||||||||||||
| 2302 | |||||||||||||||
| 2303 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=7 SCAR=40.3
| |||||||||||||||
| 2304 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2305 | 0 | my $xfer = 0; | |||||||||||||
| 2306 | 0 | my $fname; | |||||||||||||
| 2307 | 0 | my $ftype = 0; | |||||||||||||
| 2308 | 0 | my $fid = 0; | |||||||||||||
| 2309 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2310 | 0 | while (1) | |||||||||||||
| 2311 | { | ||||||||||||||
| 2312 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2313 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2314 | 0 | last; | |||||||||||||
| 2315 | } | ||||||||||||||
| 2316 | 0 | SWITCH: for($fid) | |||||||||||||
| 2317 | { | ||||||||||||||
| 2318 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::MAP) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2319 | { | ||||||||||||||
| 2320 | 0 | my $_size350 = 0; | |||||||||||||
| 2321 | 0 | $self->{success} = {}; | |||||||||||||
| 2322 | 0 | my $_ktype351 = 0; | |||||||||||||
| 2323 | 0 | my $_vtype352 = 0; | |||||||||||||
| 2324 | 0 | $xfer += $input->readMapBegin(\$_ktype351, \$_vtype352, \$_size350); | |||||||||||||
| 2325 | 0 | ▶ | for (my $_i354 = 0; $_i354 < $_size350; ++$_i354) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2326 | { | ||||||||||||||
| 2327 | 0 | my $key355 = 0; | |||||||||||||
| 2328 | 0 | my $val356 = []; | |||||||||||||
| 2329 | 0 | $xfer += $input->readI32(\$key355); | |||||||||||||
| 2330 | { | ||||||||||||||
| 2331 | 0 | my $_size357 = 0; | |||||||||||||
| 2332 | 0 | $val356 = {}; | |||||||||||||
| 2333 | 0 | my $_ktype358 = 0; | |||||||||||||
| 2334 | 0 | my $_vtype359 = 0; | |||||||||||||
| 2335 | 0 | $xfer += $input->readMapBegin(\$_ktype358, \$_vtype359, \$_size357); | |||||||||||||
| 2336 | 0 | ▶ | for (my $_i361 = 0; $_i361 < $_size357; ++$_i361) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2337 | { | ||||||||||||||
| 2338 | 0 | my $key362 = 0; | |||||||||||||
| 2339 | 0 | my $val363 = 0; | |||||||||||||
| 2340 | 0 | $xfer += $input->readI32(\$key362); | |||||||||||||
| 2341 | 0 | $xfer += $input->readI32(\$val363); | |||||||||||||
| 2342 | 0 | $val356->{$key362} = $val363; | |||||||||||||
| 2343 | } | ||||||||||||||
| 2344 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 2345 | } | ||||||||||||||
| 2346 | 0 | $self->{success}->{$key355} = $val356; | |||||||||||||
| 2347 | } | ||||||||||||||
| 2348 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 2349 | } | ||||||||||||||
| 2350 | } else { | ||||||||||||||
| 2351 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2352 | } | ||||||||||||||
| 2353 | 0 | last; }; | |||||||||||||
| 2354 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2355 | } | ||||||||||||||
| 2356 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2357 | } | ||||||||||||||
| 2358 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2359 | 0 | return $xfer; | |||||||||||||
| 2360 | } | ||||||||||||||
| 2361 | |||||||||||||||
| 2362 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2363 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2364 | 0 | my $xfer = 0; | |||||||||||||
| 2365 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testMapMap_result'); | |||||||||||||
| 2366 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2367 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::MAP, 0); | |||||||||||||
| 2368 | { | ||||||||||||||
| 2369 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::I32, Thrift::TType::MAP, scalar(keys %{$self->{success}})); | |||||||||||||
| 2370 | { | ||||||||||||||
| 2371 | 0 | ▶ | while( my ($kiter364,$viter365) = each %{$self->{success}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2372 | { | ||||||||||||||
| 2373 | 0 | $xfer += $output->writeI32($kiter364); | |||||||||||||
| 2374 | { | ||||||||||||||
| 2375 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::I32, Thrift::TType::I32, scalar(keys %{${viter365}})); | |||||||||||||
| 2376 | { | ||||||||||||||
| 2377 | 0 | ▶ | while( my ($kiter366,$viter367) = each %{${viter365}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2378 | { | ||||||||||||||
| 2379 | 0 | $xfer += $output->writeI32($kiter366); | |||||||||||||
| 2380 | 0 | $xfer += $output->writeI32($viter367); | |||||||||||||
| 2381 | } | ||||||||||||||
| 2382 | } | ||||||||||||||
| 2383 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 2384 | } | ||||||||||||||
| 2385 | } | ||||||||||||||
| 2386 | } | ||||||||||||||
| 2387 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 2388 | } | ||||||||||||||
| 2389 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2390 | } | ||||||||||||||
| 2391 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2392 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2393 | 0 | return $xfer; | |||||||||||||
| 2394 | } | ||||||||||||||
| 2395 | |||||||||||||||
| 2396 | package ThriftTest::ThriftTest_testInsanity_args; | ||||||||||||||
| 2397 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2398 | 1 | ThriftTest::ThriftTest_testInsanity_args->mk_accessors( qw( argument ) ); | |||||||||||||
| 2399 | |||||||||||||||
| 2400 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2401 | 0 | my $classname = shift; | |||||||||||||
| 2402 | 0 | my $self = {}; | |||||||||||||
| 2403 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2404 | 0 | $self->{argument} = undef; | |||||||||||||
| 2405 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2406 | 0 | ▶ | if (defined $vals->{argument}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2407 | 0 | $self->{argument} = $vals->{argument}; | |||||||||||||
| 2408 | } | ||||||||||||||
| 2409 | } | ||||||||||||||
| 2410 | 0 | return bless ($self, $classname); | |||||||||||||
| 2411 | } | ||||||||||||||
| 2412 | |||||||||||||||
| 2413 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2414 | 0 | return 'ThriftTest_testInsanity_args'; | |||||||||||||
| 2415 | } | ||||||||||||||
| 2416 | |||||||||||||||
| 2417 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2418 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2419 | 0 | my $xfer = 0; | |||||||||||||
| 2420 | 0 | my $fname; | |||||||||||||
| 2421 | 0 | my $ftype = 0; | |||||||||||||
| 2422 | 0 | my $fid = 0; | |||||||||||||
| 2423 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2424 | 0 | while (1) | |||||||||||||
| 2425 | { | ||||||||||||||
| 2426 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2427 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2428 | 0 | last; | |||||||||||||
| 2429 | } | ||||||||||||||
| 2430 | 0 | SWITCH: for($fid) | |||||||||||||
| 2431 | { | ||||||||||||||
| 2432 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2433 | 0 | $self->{argument} = ThriftTest::Insanity->new(); | |||||||||||||
| 2434 | 0 | $xfer += $self->{argument}->read($input); | |||||||||||||
| 2435 | } else { | ||||||||||||||
| 2436 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2437 | } | ||||||||||||||
| 2438 | 0 | last; }; | |||||||||||||
| 2439 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2440 | } | ||||||||||||||
| 2441 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2442 | } | ||||||||||||||
| 2443 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2444 | 0 | return $xfer; | |||||||||||||
| 2445 | } | ||||||||||||||
| 2446 | |||||||||||||||
| 2447 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2448 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2449 | 0 | my $xfer = 0; | |||||||||||||
| 2450 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testInsanity_args'); | |||||||||||||
| 2451 | 0 | ▶ | if (defined $self->{argument}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2452 | 0 | $xfer += $output->writeFieldBegin('argument', Thrift::TType::STRUCT, 1); | |||||||||||||
| 2453 | 0 | $xfer += $self->{argument}->write($output); | |||||||||||||
| 2454 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2455 | } | ||||||||||||||
| 2456 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2457 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2458 | 0 | return $xfer; | |||||||||||||
| 2459 | } | ||||||||||||||
| 2460 | |||||||||||||||
| 2461 | package ThriftTest::ThriftTest_testInsanity_result; | ||||||||||||||
| 2462 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2463 | 1 | ThriftTest::ThriftTest_testInsanity_result->mk_accessors( qw( success ) ); | |||||||||||||
| 2464 | |||||||||||||||
| 2465 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2466 | 0 | my $classname = shift; | |||||||||||||
| 2467 | 0 | my $self = {}; | |||||||||||||
| 2468 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2469 | 0 | $self->{success} = undef; | |||||||||||||
| 2470 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2471 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2472 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 2473 | } | ||||||||||||||
| 2474 | } | ||||||||||||||
| 2475 | 0 | return bless ($self, $classname); | |||||||||||||
| 2476 | } | ||||||||||||||
| 2477 | |||||||||||||||
| 2478 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2479 | 0 | return 'ThriftTest_testInsanity_result'; | |||||||||||||
| 2480 | } | ||||||||||||||
| 2481 | |||||||||||||||
| 2482 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=7 SCAR=40.3
| |||||||||||||||
| 2483 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2484 | 0 | my $xfer = 0; | |||||||||||||
| 2485 | 0 | my $fname; | |||||||||||||
| 2486 | 0 | my $ftype = 0; | |||||||||||||
| 2487 | 0 | my $fid = 0; | |||||||||||||
| 2488 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2489 | 0 | while (1) | |||||||||||||
| 2490 | { | ||||||||||||||
| 2491 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2492 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2493 | 0 | last; | |||||||||||||
| 2494 | } | ||||||||||||||
| 2495 | 0 | SWITCH: for($fid) | |||||||||||||
| 2496 | { | ||||||||||||||
| 2497 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::MAP) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2498 | { | ||||||||||||||
| 2499 | 0 | my $_size368 = 0; | |||||||||||||
| 2500 | 0 | $self->{success} = {}; | |||||||||||||
| 2501 | 0 | my $_ktype369 = 0; | |||||||||||||
| 2502 | 0 | my $_vtype370 = 0; | |||||||||||||
| 2503 | 0 | $xfer += $input->readMapBegin(\$_ktype369, \$_vtype370, \$_size368); | |||||||||||||
| 2504 | 0 | ▶ | for (my $_i372 = 0; $_i372 < $_size368; ++$_i372) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2505 | { | ||||||||||||||
| 2506 | 0 | my $key373 = 0; | |||||||||||||
| 2507 | 0 | my $val374 = []; | |||||||||||||
| 2508 | 0 | $xfer += $input->readI64(\$key373); | |||||||||||||
| 2509 | { | ||||||||||||||
| 2510 | 0 | my $_size375 = 0; | |||||||||||||
| 2511 | 0 | $val374 = {}; | |||||||||||||
| 2512 | 0 | my $_ktype376 = 0; | |||||||||||||
| 2513 | 0 | my $_vtype377 = 0; | |||||||||||||
| 2514 | 0 | $xfer += $input->readMapBegin(\$_ktype376, \$_vtype377, \$_size375); | |||||||||||||
| 2515 | 0 | ▶ | for (my $_i379 = 0; $_i379 < $_size375; ++$_i379) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2516 | { | ||||||||||||||
| 2517 | 0 | my $key380 = 0; | |||||||||||||
| 2518 | 0 | my $val381 = ThriftTest::Insanity->new(); | |||||||||||||
| 2519 | 0 | $xfer += $input->readI32(\$key380); | |||||||||||||
| 2520 | 0 | $val381 = ThriftTest::Insanity->new(); | |||||||||||||
| 2521 | 0 | $xfer += $val381->read($input); | |||||||||||||
| 2522 | 0 | $val374->{$key380} = $val381; | |||||||||||||
| 2523 | } | ||||||||||||||
| 2524 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 2525 | } | ||||||||||||||
| 2526 | 0 | $self->{success}->{$key373} = $val374; | |||||||||||||
| 2527 | } | ||||||||||||||
| 2528 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 2529 | } | ||||||||||||||
| 2530 | } else { | ||||||||||||||
| 2531 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2532 | } | ||||||||||||||
| 2533 | 0 | last; }; | |||||||||||||
| 2534 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2535 | } | ||||||||||||||
| 2536 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2537 | } | ||||||||||||||
| 2538 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2539 | 0 | return $xfer; | |||||||||||||
| 2540 | } | ||||||||||||||
| 2541 | |||||||||||||||
| 2542 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2543 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2544 | 0 | my $xfer = 0; | |||||||||||||
| 2545 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testInsanity_result'); | |||||||||||||
| 2546 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2547 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::MAP, 0); | |||||||||||||
| 2548 | { | ||||||||||||||
| 2549 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::I64, Thrift::TType::MAP, scalar(keys %{$self->{success}})); | |||||||||||||
| 2550 | { | ||||||||||||||
| 2551 | 0 | ▶ | while( my ($kiter382,$viter383) = each %{$self->{success}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2552 | { | ||||||||||||||
| 2553 | 0 | $xfer += $output->writeI64($kiter382); | |||||||||||||
| 2554 | { | ||||||||||||||
| 2555 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::I32, Thrift::TType::STRUCT, scalar(keys %{${viter383}})); | |||||||||||||
| 2556 | { | ||||||||||||||
| 2557 | 0 | ▶ | while( my ($kiter384,$viter385) = each %{${viter383}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2558 | { | ||||||||||||||
| 2559 | 0 | $xfer += $output->writeI32($kiter384); | |||||||||||||
| 2560 | 0 | $xfer += ${viter385}->write($output); | |||||||||||||
| 2561 | } | ||||||||||||||
| 2562 | } | ||||||||||||||
| 2563 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 2564 | } | ||||||||||||||
| 2565 | } | ||||||||||||||
| 2566 | } | ||||||||||||||
| 2567 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 2568 | } | ||||||||||||||
| 2569 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2570 | } | ||||||||||||||
| 2571 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2572 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2573 | 0 | return $xfer; | |||||||||||||
| 2574 | } | ||||||||||||||
| 2575 | |||||||||||||||
| 2576 | package ThriftTest::ThriftTest_testMulti_args; | ||||||||||||||
| 2577 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2578 | 1 | ThriftTest::ThriftTest_testMulti_args->mk_accessors( qw( arg0 arg1 arg2 arg3 arg4 arg5 ) ); | |||||||||||||
| 2579 | |||||||||||||||
| 2580 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=9 SCAR=45.0
| |||||||||||||||
| 2581 | 0 | my $classname = shift; | |||||||||||||
| 2582 | 0 | my $self = {}; | |||||||||||||
| 2583 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2584 | 0 | $self->{arg0} = undef; | |||||||||||||
| 2585 | 0 | $self->{arg1} = undef; | |||||||||||||
| 2586 | 0 | $self->{arg2} = undef; | |||||||||||||
| 2587 | 0 | $self->{arg3} = undef; | |||||||||||||
| 2588 | 0 | $self->{arg4} = undef; | |||||||||||||
| 2589 | 0 | $self->{arg5} = undef; | |||||||||||||
| 2590 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2591 | 0 | ▶ | if (defined $vals->{arg0}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2592 | 0 | $self->{arg0} = $vals->{arg0}; | |||||||||||||
| 2593 | } | ||||||||||||||
| 2594 | 0 | ▶ | if (defined $vals->{arg1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2595 | 0 | $self->{arg1} = $vals->{arg1}; | |||||||||||||
| 2596 | } | ||||||||||||||
| 2597 | 0 | ▶ | if (defined $vals->{arg2}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2598 | 0 | $self->{arg2} = $vals->{arg2}; | |||||||||||||
| 2599 | } | ||||||||||||||
| 2600 | 0 | ▶ | if (defined $vals->{arg3}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2601 | 0 | $self->{arg3} = $vals->{arg3}; | |||||||||||||
| 2602 | } | ||||||||||||||
| 2603 | 0 | ▶ | if (defined $vals->{arg4}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2604 | 0 | $self->{arg4} = $vals->{arg4}; | |||||||||||||
| 2605 | } | ||||||||||||||
| 2606 | 0 | ▶ | if (defined $vals->{arg5}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2607 | 0 | $self->{arg5} = $vals->{arg5}; | |||||||||||||
| 2608 | } | ||||||||||||||
| 2609 | } | ||||||||||||||
| 2610 | 0 | return bless ($self, $classname); | |||||||||||||
| 2611 | } | ||||||||||||||
| 2612 | |||||||||||||||
| 2613 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2614 | 0 | return 'ThriftTest_testMulti_args'; | |||||||||||||
| 2615 | } | ||||||||||||||
| 2616 | |||||||||||||||
| 2617 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=16 SCAR=56.1
| |||||||||||||||
| 2618 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2619 | 0 | my $xfer = 0; | |||||||||||||
| 2620 | 0 | my $fname; | |||||||||||||
| 2621 | 0 | my $ftype = 0; | |||||||||||||
| 2622 | 0 | my $fid = 0; | |||||||||||||
| 2623 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2624 | 0 | while (1) | |||||||||||||
| 2625 | { | ||||||||||||||
| 2626 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2627 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2628 | 0 | last; | |||||||||||||
| 2629 | } | ||||||||||||||
| 2630 | 0 | SWITCH: for($fid) | |||||||||||||
| 2631 | { | ||||||||||||||
| 2632 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::BYTE) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2633 | 0 | $xfer += $input->readByte(\$self->{arg0}); | |||||||||||||
| 2634 | } else { | ||||||||||||||
| 2635 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2636 | } | ||||||||||||||
| 2637 | 0 | last; }; | |||||||||||||
| 2638 | 0 | ▶ | /^2$/ && do{ if ($ftype == Thrift::TType::I32) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2639 | 0 | $xfer += $input->readI32(\$self->{arg1}); | |||||||||||||
| 2640 | } else { | ||||||||||||||
| 2641 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2642 | } | ||||||||||||||
| 2643 | 0 | last; }; | |||||||||||||
| 2644 | 0 | ▶ | /^3$/ && do{ if ($ftype == Thrift::TType::I64) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2645 | 0 | $xfer += $input->readI64(\$self->{arg2}); | |||||||||||||
| 2646 | } else { | ||||||||||||||
| 2647 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2648 | } | ||||||||||||||
| 2649 | 0 | last; }; | |||||||||||||
| 2650 | 0 | ▶ | /^4$/ && do{ if ($ftype == Thrift::TType::MAP) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2651 | { | ||||||||||||||
| 2652 | 0 | my $_size386 = 0; | |||||||||||||
| 2653 | 0 | $self->{arg3} = {}; | |||||||||||||
| 2654 | 0 | my $_ktype387 = 0; | |||||||||||||
| 2655 | 0 | my $_vtype388 = 0; | |||||||||||||
| 2656 | 0 | $xfer += $input->readMapBegin(\$_ktype387, \$_vtype388, \$_size386); | |||||||||||||
| 2657 | 0 | ▶ | for (my $_i390 = 0; $_i390 < $_size386; ++$_i390) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2658 | { | ||||||||||||||
| 2659 | 0 | my $key391 = 0; | |||||||||||||
| 2660 | 0 | my $val392 = ''; | |||||||||||||
| 2661 | 0 | $xfer += $input->readI16(\$key391); | |||||||||||||
| 2662 | 0 | $xfer += $input->readString(\$val392); | |||||||||||||
| 2663 | 0 | $self->{arg3}->{$key391} = $val392; | |||||||||||||
| 2664 | } | ||||||||||||||
| 2665 | 0 | $xfer += $input->readMapEnd(); | |||||||||||||
| 2666 | } | ||||||||||||||
| 2667 | } else { | ||||||||||||||
| 2668 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2669 | } | ||||||||||||||
| 2670 | 0 | last; }; | |||||||||||||
| 2671 | 0 | ▶ | /^5$/ && do{ if ($ftype == Thrift::TType::I32) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2672 | 0 | $xfer += $input->readI32(\$self->{arg4}); | |||||||||||||
| 2673 | } else { | ||||||||||||||
| 2674 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2675 | } | ||||||||||||||
| 2676 | 0 | last; }; | |||||||||||||
| 2677 | 0 | ▶ | /^6$/ && do{ if ($ftype == Thrift::TType::I64) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2678 | 0 | $xfer += $input->readI64(\$self->{arg5}); | |||||||||||||
| 2679 | } else { | ||||||||||||||
| 2680 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2681 | } | ||||||||||||||
| 2682 | 0 | last; }; | |||||||||||||
| 2683 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2684 | } | ||||||||||||||
| 2685 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2686 | } | ||||||||||||||
| 2687 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2688 | 0 | return $xfer; | |||||||||||||
| 2689 | } | ||||||||||||||
| 2690 | |||||||||||||||
| 2691 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=8 SCAR=42.8
| |||||||||||||||
| 2692 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2693 | 0 | my $xfer = 0; | |||||||||||||
| 2694 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testMulti_args'); | |||||||||||||
| 2695 | 0 | ▶ | if (defined $self->{arg0}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2696 | 0 | $xfer += $output->writeFieldBegin('arg0', Thrift::TType::BYTE, 1); | |||||||||||||
| 2697 | 0 | $xfer += $output->writeByte($self->{arg0}); | |||||||||||||
| 2698 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2699 | } | ||||||||||||||
| 2700 | 0 | ▶ | if (defined $self->{arg1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2701 | 0 | $xfer += $output->writeFieldBegin('arg1', Thrift::TType::I32, 2); | |||||||||||||
| 2702 | 0 | $xfer += $output->writeI32($self->{arg1}); | |||||||||||||
| 2703 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2704 | } | ||||||||||||||
| 2705 | 0 | ▶ | if (defined $self->{arg2}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2706 | 0 | $xfer += $output->writeFieldBegin('arg2', Thrift::TType::I64, 3); | |||||||||||||
| 2707 | 0 | $xfer += $output->writeI64($self->{arg2}); | |||||||||||||
| 2708 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2709 | } | ||||||||||||||
| 2710 | 0 | ▶ | if (defined $self->{arg3}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2711 | 0 | $xfer += $output->writeFieldBegin('arg3', Thrift::TType::MAP, 4); | |||||||||||||
| 2712 | { | ||||||||||||||
| 2713 | 0 | $xfer += $output->writeMapBegin(Thrift::TType::I16, Thrift::TType::STRING, scalar(keys %{$self->{arg3}})); | |||||||||||||
| 2714 | { | ||||||||||||||
| 2715 | 0 | ▶ | while( my ($kiter393,$viter394) = each %{$self->{arg3}}) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2716 | { | ||||||||||||||
| 2717 | 0 | $xfer += $output->writeI16($kiter393); | |||||||||||||
| 2718 | 0 | $xfer += $output->writeString($viter394); | |||||||||||||
| 2719 | } | ||||||||||||||
| 2720 | } | ||||||||||||||
| 2721 | 0 | $xfer += $output->writeMapEnd(); | |||||||||||||
| 2722 | } | ||||||||||||||
| 2723 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2724 | } | ||||||||||||||
| 2725 | 0 | ▶ | if (defined $self->{arg4}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2726 | 0 | $xfer += $output->writeFieldBegin('arg4', Thrift::TType::I32, 5); | |||||||||||||
| 2727 | 0 | $xfer += $output->writeI32($self->{arg4}); | |||||||||||||
| 2728 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2729 | } | ||||||||||||||
| 2730 | 0 | ▶ | if (defined $self->{arg5}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2731 | 0 | $xfer += $output->writeFieldBegin('arg5', Thrift::TType::I64, 6); | |||||||||||||
| 2732 | 0 | $xfer += $output->writeI64($self->{arg5}); | |||||||||||||
| 2733 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2734 | } | ||||||||||||||
| 2735 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2736 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2737 | 0 | return $xfer; | |||||||||||||
| 2738 | } | ||||||||||||||
| 2739 | |||||||||||||||
| 2740 | package ThriftTest::ThriftTest_testMulti_result; | ||||||||||||||
| 2741 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2742 | 1 | ThriftTest::ThriftTest_testMulti_result->mk_accessors( qw( success ) ); | |||||||||||||
| 2743 | |||||||||||||||
| 2744 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2745 | 0 | my $classname = shift; | |||||||||||||
| 2746 | 0 | my $self = {}; | |||||||||||||
| 2747 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2748 | 0 | $self->{success} = undef; | |||||||||||||
| 2749 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2750 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2751 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 2752 | } | ||||||||||||||
| 2753 | } | ||||||||||||||
| 2754 | 0 | return bless ($self, $classname); | |||||||||||||
| 2755 | } | ||||||||||||||
| 2756 | |||||||||||||||
| 2757 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2758 | 0 | return 'ThriftTest_testMulti_result'; | |||||||||||||
| 2759 | } | ||||||||||||||
| 2760 | |||||||||||||||
| 2761 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2762 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2763 | 0 | my $xfer = 0; | |||||||||||||
| 2764 | 0 | my $fname; | |||||||||||||
| 2765 | 0 | my $ftype = 0; | |||||||||||||
| 2766 | 0 | my $fid = 0; | |||||||||||||
| 2767 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2768 | 0 | while (1) | |||||||||||||
| 2769 | { | ||||||||||||||
| 2770 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2771 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2772 | 0 | last; | |||||||||||||
| 2773 | } | ||||||||||||||
| 2774 | 0 | SWITCH: for($fid) | |||||||||||||
| 2775 | { | ||||||||||||||
| 2776 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2777 | 0 | $self->{success} = ThriftTest::Xtruct->new(); | |||||||||||||
| 2778 | 0 | $xfer += $self->{success}->read($input); | |||||||||||||
| 2779 | } else { | ||||||||||||||
| 2780 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2781 | } | ||||||||||||||
| 2782 | 0 | last; }; | |||||||||||||
| 2783 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2784 | } | ||||||||||||||
| 2785 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2786 | } | ||||||||||||||
| 2787 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2788 | 0 | return $xfer; | |||||||||||||
| 2789 | } | ||||||||||||||
| 2790 | |||||||||||||||
| 2791 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2792 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2793 | 0 | my $xfer = 0; | |||||||||||||
| 2794 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testMulti_result'); | |||||||||||||
| 2795 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2796 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::STRUCT, 0); | |||||||||||||
| 2797 | 0 | $xfer += $self->{success}->write($output); | |||||||||||||
| 2798 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2799 | } | ||||||||||||||
| 2800 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2801 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2802 | 0 | return $xfer; | |||||||||||||
| 2803 | } | ||||||||||||||
| 2804 | |||||||||||||||
| 2805 | package ThriftTest::ThriftTest_testException_args; | ||||||||||||||
| 2806 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2807 | 1 | ThriftTest::ThriftTest_testException_args->mk_accessors( qw( arg ) ); | |||||||||||||
| 2808 | |||||||||||||||
| 2809 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2810 | 0 | my $classname = shift; | |||||||||||||
| 2811 | 0 | my $self = {}; | |||||||||||||
| 2812 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2813 | 0 | $self->{arg} = undef; | |||||||||||||
| 2814 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2815 | 0 | ▶ | if (defined $vals->{arg}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2816 | 0 | $self->{arg} = $vals->{arg}; | |||||||||||||
| 2817 | } | ||||||||||||||
| 2818 | } | ||||||||||||||
| 2819 | 0 | return bless ($self, $classname); | |||||||||||||
| 2820 | } | ||||||||||||||
| 2821 | |||||||||||||||
| 2822 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2823 | 0 | return 'ThriftTest_testException_args'; | |||||||||||||
| 2824 | } | ||||||||||||||
| 2825 | |||||||||||||||
| 2826 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2827 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2828 | 0 | my $xfer = 0; | |||||||||||||
| 2829 | 0 | my $fname; | |||||||||||||
| 2830 | 0 | my $ftype = 0; | |||||||||||||
| 2831 | 0 | my $fid = 0; | |||||||||||||
| 2832 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2833 | 0 | while (1) | |||||||||||||
| 2834 | { | ||||||||||||||
| 2835 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2836 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2837 | 0 | last; | |||||||||||||
| 2838 | } | ||||||||||||||
| 2839 | 0 | SWITCH: for($fid) | |||||||||||||
| 2840 | { | ||||||||||||||
| 2841 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRING) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2842 | 0 | $xfer += $input->readString(\$self->{arg}); | |||||||||||||
| 2843 | } else { | ||||||||||||||
| 2844 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2845 | } | ||||||||||||||
| 2846 | 0 | last; }; | |||||||||||||
| 2847 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2848 | } | ||||||||||||||
| 2849 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2850 | } | ||||||||||||||
| 2851 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2852 | 0 | return $xfer; | |||||||||||||
| 2853 | } | ||||||||||||||
| 2854 | |||||||||||||||
| 2855 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2856 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2857 | 0 | my $xfer = 0; | |||||||||||||
| 2858 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testException_args'); | |||||||||||||
| 2859 | 0 | ▶ | if (defined $self->{arg}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2860 | 0 | $xfer += $output->writeFieldBegin('arg', Thrift::TType::STRING, 1); | |||||||||||||
| 2861 | 0 | $xfer += $output->writeString($self->{arg}); | |||||||||||||
| 2862 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2863 | } | ||||||||||||||
| 2864 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2865 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2866 | 0 | return $xfer; | |||||||||||||
| 2867 | } | ||||||||||||||
| 2868 | |||||||||||||||
| 2869 | package ThriftTest::ThriftTest_testException_result; | ||||||||||||||
| 2870 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2871 | 1 | ThriftTest::ThriftTest_testException_result->mk_accessors( qw( ) ); | |||||||||||||
| 2872 | |||||||||||||||
| 2873 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 2874 | 0 | my $classname = shift; | |||||||||||||
| 2875 | 0 | my $self = {}; | |||||||||||||
| 2876 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2877 | 0 | $self->{err1} = undef; | |||||||||||||
| 2878 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2879 | 0 | ▶ | if (defined $vals->{err1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2880 | 0 | $self->{err1} = $vals->{err1}; | |||||||||||||
| 2881 | } | ||||||||||||||
| 2882 | } | ||||||||||||||
| 2883 | 0 | return bless ($self, $classname); | |||||||||||||
| 2884 | } | ||||||||||||||
| 2885 | |||||||||||||||
| 2886 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2887 | 0 | return 'ThriftTest_testException_result'; | |||||||||||||
| 2888 | } | ||||||||||||||
| 2889 | |||||||||||||||
| 2890 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2891 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2892 | 0 | my $xfer = 0; | |||||||||||||
| 2893 | 0 | my $fname; | |||||||||||||
| 2894 | 0 | my $ftype = 0; | |||||||||||||
| 2895 | 0 | my $fid = 0; | |||||||||||||
| 2896 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2897 | 0 | while (1) | |||||||||||||
| 2898 | { | ||||||||||||||
| 2899 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2900 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2901 | 0 | last; | |||||||||||||
| 2902 | } | ||||||||||||||
| 2903 | 0 | SWITCH: for($fid) | |||||||||||||
| 2904 | { | ||||||||||||||
| 2905 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2906 | 0 | $self->{err1} = ThriftTest::Xception->new(); | |||||||||||||
| 2907 | 0 | $xfer += $self->{err1}->read($input); | |||||||||||||
| 2908 | } else { | ||||||||||||||
| 2909 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2910 | } | ||||||||||||||
| 2911 | 0 | last; }; | |||||||||||||
| 2912 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2913 | } | ||||||||||||||
| 2914 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2915 | } | ||||||||||||||
| 2916 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2917 | 0 | return $xfer; | |||||||||||||
| 2918 | } | ||||||||||||||
| 2919 | |||||||||||||||
| 2920 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 2921 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2922 | 0 | my $xfer = 0; | |||||||||||||
| 2923 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testException_result'); | |||||||||||||
| 2924 | 0 | ▶ | if (defined $self->{err1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2925 | 0 | $xfer += $output->writeFieldBegin('err1', Thrift::TType::STRUCT, 1); | |||||||||||||
| 2926 | 0 | $xfer += $self->{err1}->write($output); | |||||||||||||
| 2927 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 2928 | } | ||||||||||||||
| 2929 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 2930 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 2931 | 0 | return $xfer; | |||||||||||||
| 2932 | } | ||||||||||||||
| 2933 | |||||||||||||||
| 2934 | package ThriftTest::ThriftTest_testMultiException_args; | ||||||||||||||
| 2935 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2936 | 1 | ThriftTest::ThriftTest_testMultiException_args->mk_accessors( qw( arg0 arg1 ) ); | |||||||||||||
| 2937 | |||||||||||||||
| 2938 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=5 SCAR=34.0
| |||||||||||||||
| 2939 | 0 | my $classname = shift; | |||||||||||||
| 2940 | 0 | my $self = {}; | |||||||||||||
| 2941 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 2942 | 0 | $self->{arg0} = undef; | |||||||||||||
| 2943 | 0 | $self->{arg1} = undef; | |||||||||||||
| 2944 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2945 | 0 | ▶ | if (defined $vals->{arg0}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2946 | 0 | $self->{arg0} = $vals->{arg0}; | |||||||||||||
| 2947 | } | ||||||||||||||
| 2948 | 0 | ▶ | if (defined $vals->{arg1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2949 | 0 | $self->{arg1} = $vals->{arg1}; | |||||||||||||
| 2950 | } | ||||||||||||||
| 2951 | } | ||||||||||||||
| 2952 | 0 | return bless ($self, $classname); | |||||||||||||
| 2953 | } | ||||||||||||||
| 2954 | |||||||||||||||
| 2955 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 2956 | 0 | return 'ThriftTest_testMultiException_args'; | |||||||||||||
| 2957 | } | ||||||||||||||
| 2958 | |||||||||||||||
| 2959 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=7 SCAR=40.3
| |||||||||||||||
| 2960 | 0 | my ($self, $input) = @_; | |||||||||||||
| 2961 | 0 | my $xfer = 0; | |||||||||||||
| 2962 | 0 | my $fname; | |||||||||||||
| 2963 | 0 | my $ftype = 0; | |||||||||||||
| 2964 | 0 | my $fid = 0; | |||||||||||||
| 2965 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 2966 | 0 | while (1) | |||||||||||||
| 2967 | { | ||||||||||||||
| 2968 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 2969 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2970 | 0 | last; | |||||||||||||
| 2971 | } | ||||||||||||||
| 2972 | 0 | SWITCH: for($fid) | |||||||||||||
| 2973 | { | ||||||||||||||
| 2974 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRING) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2975 | 0 | $xfer += $input->readString(\$self->{arg0}); | |||||||||||||
| 2976 | } else { | ||||||||||||||
| 2977 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2978 | } | ||||||||||||||
| 2979 | 0 | last; }; | |||||||||||||
| 2980 | 0 | ▶ | /^2$/ && do{ if ($ftype == Thrift::TType::STRING) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 2981 | 0 | $xfer += $input->readString(\$self->{arg1}); | |||||||||||||
| 2982 | } else { | ||||||||||||||
| 2983 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2984 | } | ||||||||||||||
| 2985 | 0 | last; }; | |||||||||||||
| 2986 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 2987 | } | ||||||||||||||
| 2988 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 2989 | } | ||||||||||||||
| 2990 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 2991 | 0 | return $xfer; | |||||||||||||
| 2992 | } | ||||||||||||||
| 2993 | |||||||||||||||
| 2994 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=3 SCAR=24.8
| |||||||||||||||
| 2995 | 0 | my ($self, $output) = @_; | |||||||||||||
| 2996 | 0 | my $xfer = 0; | |||||||||||||
| 2997 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testMultiException_args'); | |||||||||||||
| 2998 | 0 | ▶ | if (defined $self->{arg0}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 2999 | 0 | $xfer += $output->writeFieldBegin('arg0', Thrift::TType::STRING, 1); | |||||||||||||
| 3000 | 0 | $xfer += $output->writeString($self->{arg0}); | |||||||||||||
| 3001 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 3002 | } | ||||||||||||||
| 3003 | 0 | ▶ | if (defined $self->{arg1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3004 | 0 | $xfer += $output->writeFieldBegin('arg1', Thrift::TType::STRING, 2); | |||||||||||||
| 3005 | 0 | $xfer += $output->writeString($self->{arg1}); | |||||||||||||
| 3006 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 3007 | } | ||||||||||||||
| 3008 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 3009 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 3010 | 0 | return $xfer; | |||||||||||||
| 3011 | } | ||||||||||||||
| 3012 | |||||||||||||||
| 3013 | package ThriftTest::ThriftTest_testMultiException_result; | ||||||||||||||
| 3014 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3015 | 1 | ThriftTest::ThriftTest_testMultiException_result->mk_accessors( qw( success ) ); | |||||||||||||
| 3016 | |||||||||||||||
| 3017 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=6 SCAR=37.4
| |||||||||||||||
| 3018 | 0 | my $classname = shift; | |||||||||||||
| 3019 | 0 | my $self = {}; | |||||||||||||
| 3020 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 3021 | 0 | $self->{success} = undef; | |||||||||||||
| 3022 | 0 | $self->{err1} = undef; | |||||||||||||
| 3023 | 0 | $self->{err2} = undef; | |||||||||||||
| 3024 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3025 | 0 | ▶ | if (defined $vals->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3026 | 0 | $self->{success} = $vals->{success}; | |||||||||||||
| 3027 | } | ||||||||||||||
| 3028 | 0 | ▶ | if (defined $vals->{err1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3029 | 0 | $self->{err1} = $vals->{err1}; | |||||||||||||
| 3030 | } | ||||||||||||||
| 3031 | 0 | ▶ | if (defined $vals->{err2}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3032 | 0 | $self->{err2} = $vals->{err2}; | |||||||||||||
| 3033 | } | ||||||||||||||
| 3034 | } | ||||||||||||||
| 3035 | 0 | return bless ($self, $classname); | |||||||||||||
| 3036 | } | ||||||||||||||
| 3037 | |||||||||||||||
| 3038 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3039 | 0 | return 'ThriftTest_testMultiException_result'; | |||||||||||||
| 3040 | } | ||||||||||||||
| 3041 | |||||||||||||||
| 3042 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=9 SCAR=45.0
| |||||||||||||||
| 3043 | 0 | my ($self, $input) = @_; | |||||||||||||
| 3044 | 0 | my $xfer = 0; | |||||||||||||
| 3045 | 0 | my $fname; | |||||||||||||
| 3046 | 0 | my $ftype = 0; | |||||||||||||
| 3047 | 0 | my $fid = 0; | |||||||||||||
| 3048 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 3049 | 0 | while (1) | |||||||||||||
| 3050 | { | ||||||||||||||
| 3051 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 3052 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3053 | 0 | last; | |||||||||||||
| 3054 | } | ||||||||||||||
| 3055 | 0 | SWITCH: for($fid) | |||||||||||||
| 3056 | { | ||||||||||||||
| 3057 | 0 | ▶ | /^0$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 3058 | 0 | $self->{success} = ThriftTest::Xtruct->new(); | |||||||||||||
| 3059 | 0 | $xfer += $self->{success}->read($input); | |||||||||||||
| 3060 | } else { | ||||||||||||||
| 3061 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 3062 | } | ||||||||||||||
| 3063 | 0 | last; }; | |||||||||||||
| 3064 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 3065 | 0 | $self->{err1} = ThriftTest::Xception->new(); | |||||||||||||
| 3066 | 0 | $xfer += $self->{err1}->read($input); | |||||||||||||
| 3067 | } else { | ||||||||||||||
| 3068 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 3069 | } | ||||||||||||||
| 3070 | 0 | last; }; | |||||||||||||
| 3071 | 0 | ▶ | /^2$/ && do{ if ($ftype == Thrift::TType::STRUCT) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 3072 | 0 | $self->{err2} = ThriftTest::Xception2->new(); | |||||||||||||
| 3073 | 0 | $xfer += $self->{err2}->read($input); | |||||||||||||
| 3074 | } else { | ||||||||||||||
| 3075 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 3076 | } | ||||||||||||||
| 3077 | 0 | last; }; | |||||||||||||
| 3078 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 3079 | } | ||||||||||||||
| 3080 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 3081 | } | ||||||||||||||
| 3082 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 3083 | 0 | return $xfer; | |||||||||||||
| 3084 | } | ||||||||||||||
| 3085 | |||||||||||||||
| 3086 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=4 SCAR=30.0
| |||||||||||||||
| 3087 | 0 | my ($self, $output) = @_; | |||||||||||||
| 3088 | 0 | my $xfer = 0; | |||||||||||||
| 3089 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testMultiException_result'); | |||||||||||||
| 3090 | 0 | ▶ | if (defined $self->{success}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3091 | 0 | $xfer += $output->writeFieldBegin('success', Thrift::TType::STRUCT, 0); | |||||||||||||
| 3092 | 0 | $xfer += $self->{success}->write($output); | |||||||||||||
| 3093 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 3094 | } | ||||||||||||||
| 3095 | 0 | ▶ | if (defined $self->{err1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3096 | 0 | $xfer += $output->writeFieldBegin('err1', Thrift::TType::STRUCT, 1); | |||||||||||||
| 3097 | 0 | $xfer += $self->{err1}->write($output); | |||||||||||||
| 3098 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 3099 | } | ||||||||||||||
| 3100 | 0 | ▶ | if (defined $self->{err2}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3101 | 0 | $xfer += $output->writeFieldBegin('err2', Thrift::TType::STRUCT, 2); | |||||||||||||
| 3102 | 0 | $xfer += $self->{err2}->write($output); | |||||||||||||
| 3103 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 3104 | } | ||||||||||||||
| 3105 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 3106 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 3107 | 0 | return $xfer; | |||||||||||||
| 3108 | } | ||||||||||||||
| 3109 | |||||||||||||||
| 3110 | package ThriftTest::ThriftTest_testOneway_args; | ||||||||||||||
| 3111 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3112 | 1 | ThriftTest::ThriftTest_testOneway_args->mk_accessors( qw( secondsToSleep ) ); | |||||||||||||
| 3113 | |||||||||||||||
| 3114 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
| |||||||||||||||
| 3115 | 0 | my $classname = shift; | |||||||||||||
| 3116 | 0 | my $self = {}; | |||||||||||||
| 3117 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 3118 | 0 | $self->{secondsToSleep} = undef; | |||||||||||||
| 3119 | 0 | ▶ | if (UNIVERSAL::isa($vals,'HASH')) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3120 | 0 | ▶ | if (defined $vals->{secondsToSleep}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3121 | 0 | $self->{secondsToSleep} = $vals->{secondsToSleep}; | |||||||||||||
| 3122 | } | ||||||||||||||
| 3123 | } | ||||||||||||||
| 3124 | 0 | return bless ($self, $classname); | |||||||||||||
| 3125 | } | ||||||||||||||
| 3126 | |||||||||||||||
| 3127 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3128 | 0 | return 'ThriftTest_testOneway_args'; | |||||||||||||
| 3129 | } | ||||||||||||||
| 3130 | |||||||||||||||
| 3131 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=5 SCAR=34.0
| |||||||||||||||
| 3132 | 0 | my ($self, $input) = @_; | |||||||||||||
| 3133 | 0 | my $xfer = 0; | |||||||||||||
| 3134 | 0 | my $fname; | |||||||||||||
| 3135 | 0 | my $ftype = 0; | |||||||||||||
| 3136 | 0 | my $fid = 0; | |||||||||||||
| 3137 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 3138 | 0 | while (1) | |||||||||||||
| 3139 | { | ||||||||||||||
| 3140 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 3141 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3142 | 0 | last; | |||||||||||||
| 3143 | } | ||||||||||||||
| 3144 | 0 | SWITCH: for($fid) | |||||||||||||
| 3145 | { | ||||||||||||||
| 3146 | 0 | ▶ | /^1$/ && do{ if ($ftype == Thrift::TType::I32) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 3147 | 0 | $xfer += $input->readI32(\$self->{secondsToSleep}); | |||||||||||||
| 3148 | } else { | ||||||||||||||
| 3149 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 3150 | } | ||||||||||||||
| 3151 | 0 | last; }; | |||||||||||||
| 3152 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 3153 | } | ||||||||||||||
| 3154 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 3155 | } | ||||||||||||||
| 3156 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 3157 | 0 | return $xfer; | |||||||||||||
| 3158 | } | ||||||||||||||
| 3159 | |||||||||||||||
| 3160 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3161 | 0 | my ($self, $output) = @_; | |||||||||||||
| 3162 | 0 | my $xfer = 0; | |||||||||||||
| 3163 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testOneway_args'); | |||||||||||||
| 3164 | 0 | ▶ | if (defined $self->{secondsToSleep}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3165 | 0 | $xfer += $output->writeFieldBegin('secondsToSleep', Thrift::TType::I32, 1); | |||||||||||||
| 3166 | 0 | $xfer += $output->writeI32($self->{secondsToSleep}); | |||||||||||||
| 3167 | 0 | $xfer += $output->writeFieldEnd(); | |||||||||||||
| 3168 | } | ||||||||||||||
| 3169 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 3170 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 3171 | 0 | return $xfer; | |||||||||||||
| 3172 | } | ||||||||||||||
| 3173 | |||||||||||||||
| 3174 | package ThriftTest::ThriftTest_testOneway_result; | ||||||||||||||
| 3175 | 1 | ▶ | use base qw(Class::Accessor); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3176 | |||||||||||||||
| 3177 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3178 | 0 | my $classname = shift; | |||||||||||||
| 3179 | 0 | my $self = {}; | |||||||||||||
| 3180 | 0 | ▶ | my $vals = shift || {}; | ||||||||||||
|
Condition0%0/2
shift() || {}
MC/DC0%0/1
shift() || {}
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||||
| 3181 | 0 | return bless ($self, $classname); | |||||||||||||
| 3182 | } | ||||||||||||||
| 3183 | |||||||||||||||
| 3184 | 0 | ▶ | sub getName { | ||||||||||||
|
Subroutine
getName: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3185 | 0 | return 'ThriftTest_testOneway_result'; | |||||||||||||
| 3186 | } | ||||||||||||||
| 3187 | |||||||||||||||
| 3188 | 0 | ▶ | sub read { | ||||||||||||
|
Subroutine
read: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3189 | 0 | my ($self, $input) = @_; | |||||||||||||
| 3190 | 0 | my $xfer = 0; | |||||||||||||
| 3191 | 0 | my $fname; | |||||||||||||
| 3192 | 0 | my $ftype = 0; | |||||||||||||
| 3193 | 0 | my $fid = 0; | |||||||||||||
| 3194 | 0 | $xfer += $input->readStructBegin(\$fname); | |||||||||||||
| 3195 | 0 | while (1) | |||||||||||||
| 3196 | { | ||||||||||||||
| 3197 | 0 | $xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid); | |||||||||||||
| 3198 | 0 | ▶ | if ($ftype == Thrift::TType::STOP) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3199 | 0 | last; | |||||||||||||
| 3200 | } | ||||||||||||||
| 3201 | 0 | SWITCH: for($fid) | |||||||||||||
| 3202 | { | ||||||||||||||
| 3203 | 0 | $xfer += $input->skip($ftype); | |||||||||||||
| 3204 | } | ||||||||||||||
| 3205 | 0 | $xfer += $input->readFieldEnd(); | |||||||||||||
| 3206 | } | ||||||||||||||
| 3207 | 0 | $xfer += $input->readStructEnd(); | |||||||||||||
| 3208 | 0 | return $xfer; | |||||||||||||
| 3209 | } | ||||||||||||||
| 3210 | |||||||||||||||
| 3211 | 0 | ▶ | sub write { | ||||||||||||
|
Subroutine
write: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3212 | 0 | my ($self, $output) = @_; | |||||||||||||
| 3213 | 0 | my $xfer = 0; | |||||||||||||
| 3214 | 0 | $xfer += $output->writeStructBegin('ThriftTest_testOneway_result'); | |||||||||||||
| 3215 | 0 | $xfer += $output->writeFieldStop(); | |||||||||||||
| 3216 | 0 | $xfer += $output->writeStructEnd(); | |||||||||||||
| 3217 | 0 | return $xfer; | |||||||||||||
| 3218 | } | ||||||||||||||
| 3219 | |||||||||||||||
| 3220 | package ThriftTest::ThriftTestIf; | ||||||||||||||
| 3221 | |||||||||||||||
| 3222 | 1 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3223 | |||||||||||||||
| 3224 | |||||||||||||||
| 3225 | 0 | ▶ | sub testVoid{ | ||||||||||||
|
Subroutine
testVoid: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3226 | 0 | my $self = shift; | |||||||||||||
| 3227 | |||||||||||||||
| 3228 | 0 | die 'implement interface'; | |||||||||||||
| 3229 | } | ||||||||||||||
| 3230 | |||||||||||||||
| 3231 | 0 | ▶ | sub testString{ | ||||||||||||
|
Subroutine
testString: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3232 | 0 | my $self = shift; | |||||||||||||
| 3233 | 0 | my $thing = shift; | |||||||||||||
| 3234 | |||||||||||||||
| 3235 | 0 | die 'implement interface'; | |||||||||||||
| 3236 | } | ||||||||||||||
| 3237 | |||||||||||||||
| 3238 | 0 | ▶ | sub testBool{ | ||||||||||||
|
Subroutine
testBool: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3239 | 0 | my $self = shift; | |||||||||||||
| 3240 | 0 | my $thing = shift; | |||||||||||||
| 3241 | |||||||||||||||
| 3242 | 0 | die 'implement interface'; | |||||||||||||
| 3243 | } | ||||||||||||||
| 3244 | |||||||||||||||
| 3245 | 0 | ▶ | sub testByte{ | ||||||||||||
|
Subroutine
testByte: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3246 | 0 | my $self = shift; | |||||||||||||
| 3247 | 0 | my $thing = shift; | |||||||||||||
| 3248 | |||||||||||||||
| 3249 | 0 | die 'implement interface'; | |||||||||||||
| 3250 | } | ||||||||||||||
| 3251 | |||||||||||||||
| 3252 | 0 | ▶ | sub testI32{ | ||||||||||||
|
Subroutine
testI32: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3253 | 0 | my $self = shift; | |||||||||||||
| 3254 | 0 | my $thing = shift; | |||||||||||||
| 3255 | |||||||||||||||
| 3256 | 0 | die 'implement interface'; | |||||||||||||
| 3257 | } | ||||||||||||||
| 3258 | |||||||||||||||
| 3259 | 0 | ▶ | sub testI64{ | ||||||||||||
|
Subroutine
testI64: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3260 | 0 | my $self = shift; | |||||||||||||
| 3261 | 0 | my $thing = shift; | |||||||||||||
| 3262 | |||||||||||||||
| 3263 | 0 | die 'implement interface'; | |||||||||||||
| 3264 | } | ||||||||||||||
| 3265 | |||||||||||||||
| 3266 | 0 | ▶ | sub testDouble{ | ||||||||||||
|
Subroutine
testDouble: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3267 | 0 | my $self = shift; | |||||||||||||
| 3268 | 0 | my $thing = shift; | |||||||||||||
| 3269 | |||||||||||||||
| 3270 | 0 | die 'implement interface'; | |||||||||||||
| 3271 | } | ||||||||||||||
| 3272 | |||||||||||||||
| 3273 | 0 | ▶ | sub testBinary{ | ||||||||||||
|
Subroutine
testBinary: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3274 | 0 | my $self = shift; | |||||||||||||
| 3275 | 0 | my $thing = shift; | |||||||||||||
| 3276 | |||||||||||||||
| 3277 | 0 | die 'implement interface'; | |||||||||||||
| 3278 | } | ||||||||||||||
| 3279 | |||||||||||||||
| 3280 | 0 | ▶ | sub testStruct{ | ||||||||||||
|
Subroutine
testStruct: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3281 | 0 | my $self = shift; | |||||||||||||
| 3282 | 0 | my $thing = shift; | |||||||||||||
| 3283 | |||||||||||||||
| 3284 | 0 | die 'implement interface'; | |||||||||||||
| 3285 | } | ||||||||||||||
| 3286 | |||||||||||||||
| 3287 | 0 | ▶ | sub testNest{ | ||||||||||||
|
Subroutine
testNest: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3288 | 0 | my $self = shift; | |||||||||||||
| 3289 | 0 | my $thing = shift; | |||||||||||||
| 3290 | |||||||||||||||
| 3291 | 0 | die 'implement interface'; | |||||||||||||
| 3292 | } | ||||||||||||||
| 3293 | |||||||||||||||
| 3294 | 0 | ▶ | sub testMap{ | ||||||||||||
|
Subroutine
testMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3295 | 0 | my $self = shift; | |||||||||||||
| 3296 | 0 | my $thing = shift; | |||||||||||||
| 3297 | |||||||||||||||
| 3298 | 0 | die 'implement interface'; | |||||||||||||
| 3299 | } | ||||||||||||||
| 3300 | |||||||||||||||
| 3301 | 0 | ▶ | sub testStringMap{ | ||||||||||||
|
Subroutine
testStringMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3302 | 0 | my $self = shift; | |||||||||||||
| 3303 | 0 | my $thing = shift; | |||||||||||||
| 3304 | |||||||||||||||
| 3305 | 0 | die 'implement interface'; | |||||||||||||
| 3306 | } | ||||||||||||||
| 3307 | |||||||||||||||
| 3308 | 0 | ▶ | sub testSet{ | ||||||||||||
|
Subroutine
testSet: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3309 | 0 | my $self = shift; | |||||||||||||
| 3310 | 0 | my $thing = shift; | |||||||||||||
| 3311 | |||||||||||||||
| 3312 | 0 | die 'implement interface'; | |||||||||||||
| 3313 | } | ||||||||||||||
| 3314 | |||||||||||||||
| 3315 | 0 | ▶ | sub testList{ | ||||||||||||
|
Subroutine
testList: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3316 | 0 | my $self = shift; | |||||||||||||
| 3317 | 0 | my $thing = shift; | |||||||||||||
| 3318 | |||||||||||||||
| 3319 | 0 | die 'implement interface'; | |||||||||||||
| 3320 | } | ||||||||||||||
| 3321 | |||||||||||||||
| 3322 | 0 | ▶ | sub testEnum{ | ||||||||||||
|
Subroutine
testEnum: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3323 | 0 | my $self = shift; | |||||||||||||
| 3324 | 0 | my $thing = shift; | |||||||||||||
| 3325 | |||||||||||||||
| 3326 | 0 | die 'implement interface'; | |||||||||||||
| 3327 | } | ||||||||||||||
| 3328 | |||||||||||||||
| 3329 | 0 | ▶ | sub testTypedef{ | ||||||||||||
|
Subroutine
testTypedef: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3330 | 0 | my $self = shift; | |||||||||||||
| 3331 | 0 | my $thing = shift; | |||||||||||||
| 3332 | |||||||||||||||
| 3333 | 0 | die 'implement interface'; | |||||||||||||
| 3334 | } | ||||||||||||||
| 3335 | |||||||||||||||
| 3336 | 0 | ▶ | sub testMapMap{ | ||||||||||||
|
Subroutine
testMapMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3337 | 0 | my $self = shift; | |||||||||||||
| 3338 | 0 | my $hello = shift; | |||||||||||||
| 3339 | |||||||||||||||
| 3340 | 0 | die 'implement interface'; | |||||||||||||
| 3341 | } | ||||||||||||||
| 3342 | |||||||||||||||
| 3343 | 0 | ▶ | sub testInsanity{ | ||||||||||||
|
Subroutine
testInsanity: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3344 | 0 | my $self = shift; | |||||||||||||
| 3345 | 0 | my $argument = shift; | |||||||||||||
| 3346 | |||||||||||||||
| 3347 | 0 | die 'implement interface'; | |||||||||||||
| 3348 | } | ||||||||||||||
| 3349 | |||||||||||||||
| 3350 | 0 | ▶ | sub testMulti{ | ||||||||||||
|
Subroutine
testMulti: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3351 | 0 | my $self = shift; | |||||||||||||
| 3352 | 0 | my $arg0 = shift; | |||||||||||||
| 3353 | 0 | my $arg1 = shift; | |||||||||||||
| 3354 | 0 | my $arg2 = shift; | |||||||||||||
| 3355 | 0 | my $arg3 = shift; | |||||||||||||
| 3356 | 0 | my $arg4 = shift; | |||||||||||||
| 3357 | 0 | my $arg5 = shift; | |||||||||||||
| 3358 | |||||||||||||||
| 3359 | 0 | die 'implement interface'; | |||||||||||||
| 3360 | } | ||||||||||||||
| 3361 | |||||||||||||||
| 3362 | 0 | ▶ | sub testException{ | ||||||||||||
|
Subroutine
testException: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3363 | 0 | my $self = shift; | |||||||||||||
| 3364 | 0 | my $arg = shift; | |||||||||||||
| 3365 | |||||||||||||||
| 3366 | 0 | die 'implement interface'; | |||||||||||||
| 3367 | } | ||||||||||||||
| 3368 | |||||||||||||||
| 3369 | 0 | ▶ | sub testMultiException{ | ||||||||||||
|
Subroutine
testMultiException: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3370 | 0 | my $self = shift; | |||||||||||||
| 3371 | 0 | my $arg0 = shift; | |||||||||||||
| 3372 | 0 | my $arg1 = shift; | |||||||||||||
| 3373 | |||||||||||||||
| 3374 | 0 | die 'implement interface'; | |||||||||||||
| 3375 | } | ||||||||||||||
| 3376 | |||||||||||||||
| 3377 | 0 | ▶ | sub testOneway{ | ||||||||||||
|
Subroutine
testOneway: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3378 | 0 | my $self = shift; | |||||||||||||
| 3379 | 0 | my $secondsToSleep = shift; | |||||||||||||
| 3380 | |||||||||||||||
| 3381 | 0 | die 'implement interface'; | |||||||||||||
| 3382 | } | ||||||||||||||
| 3383 | |||||||||||||||
| 3384 | package ThriftTest::ThriftTestRest; | ||||||||||||||
| 3385 | |||||||||||||||
| 3386 | 1 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3387 | |||||||||||||||
| 3388 | |||||||||||||||
| 3389 | 0 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3390 | 0 | my ($classname, $impl) = @_; | |||||||||||||
| 3391 | 0 | my $self ={ impl => $impl }; | |||||||||||||
| 3392 | |||||||||||||||
| 3393 | 0 | return bless($self,$classname); | |||||||||||||
| 3394 | } | ||||||||||||||
| 3395 | |||||||||||||||
| 3396 | 0 | ▶ | sub testVoid{ | ||||||||||||
|
Subroutine
testVoid: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3397 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3398 | |||||||||||||||
| 3399 | 0 | return $self->{impl}->testVoid(); | |||||||||||||
| 3400 | } | ||||||||||||||
| 3401 | |||||||||||||||
| 3402 | 0 | ▶ | sub testString{ | ||||||||||||
|
Subroutine
testString: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3403 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3404 | |||||||||||||||
| 3405 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3406 | 0 | return $self->{impl}->testString($thing); | |||||||||||||
| 3407 | } | ||||||||||||||
| 3408 | |||||||||||||||
| 3409 | 0 | ▶ | sub testBool{ | ||||||||||||
|
Subroutine
testBool: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3410 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3411 | |||||||||||||||
| 3412 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3413 | 0 | return $self->{impl}->testBool($thing); | |||||||||||||
| 3414 | } | ||||||||||||||
| 3415 | |||||||||||||||
| 3416 | 0 | ▶ | sub testByte{ | ||||||||||||
|
Subroutine
testByte: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3417 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3418 | |||||||||||||||
| 3419 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3420 | 0 | return $self->{impl}->testByte($thing); | |||||||||||||
| 3421 | } | ||||||||||||||
| 3422 | |||||||||||||||
| 3423 | 0 | ▶ | sub testI32{ | ||||||||||||
|
Subroutine
testI32: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3424 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3425 | |||||||||||||||
| 3426 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3427 | 0 | return $self->{impl}->testI32($thing); | |||||||||||||
| 3428 | } | ||||||||||||||
| 3429 | |||||||||||||||
| 3430 | 0 | ▶ | sub testI64{ | ||||||||||||
|
Subroutine
testI64: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3431 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3432 | |||||||||||||||
| 3433 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3434 | 0 | return $self->{impl}->testI64($thing); | |||||||||||||
| 3435 | } | ||||||||||||||
| 3436 | |||||||||||||||
| 3437 | 0 | ▶ | sub testDouble{ | ||||||||||||
|
Subroutine
testDouble: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3438 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3439 | |||||||||||||||
| 3440 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3441 | 0 | return $self->{impl}->testDouble($thing); | |||||||||||||
| 3442 | } | ||||||||||||||
| 3443 | |||||||||||||||
| 3444 | 0 | ▶ | sub testBinary{ | ||||||||||||
|
Subroutine
testBinary: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3445 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3446 | |||||||||||||||
| 3447 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3448 | 0 | return $self->{impl}->testBinary($thing); | |||||||||||||
| 3449 | } | ||||||||||||||
| 3450 | |||||||||||||||
| 3451 | 0 | ▶ | sub testStruct{ | ||||||||||||
|
Subroutine
testStruct: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3452 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3453 | |||||||||||||||
| 3454 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3455 | 0 | return $self->{impl}->testStruct($thing); | |||||||||||||
| 3456 | } | ||||||||||||||
| 3457 | |||||||||||||||
| 3458 | 0 | ▶ | sub testNest{ | ||||||||||||
|
Subroutine
testNest: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3459 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3460 | |||||||||||||||
| 3461 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3462 | 0 | return $self->{impl}->testNest($thing); | |||||||||||||
| 3463 | } | ||||||||||||||
| 3464 | |||||||||||||||
| 3465 | 0 | ▶ | sub testMap{ | ||||||||||||
|
Subroutine
testMap: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3466 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3467 | |||||||||||||||
| 3468 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3469 | 0 | return $self->{impl}->testMap($thing); | |||||||||||||
| 3470 | } | ||||||||||||||
| 3471 | |||||||||||||||
| 3472 | 0 | ▶ | sub testStringMap{ | ||||||||||||
|
Subroutine
testStringMap: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3473 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3474 | |||||||||||||||
| 3475 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3476 | 0 | return $self->{impl}->testStringMap($thing); | |||||||||||||
| 3477 | } | ||||||||||||||
| 3478 | |||||||||||||||
| 3479 | 0 | ▶ | sub testSet{ | ||||||||||||
|
Subroutine
testSet: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3480 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3481 | |||||||||||||||
| 3482 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3483 | 0 | return $self->{impl}->testSet($thing); | |||||||||||||
| 3484 | } | ||||||||||||||
| 3485 | |||||||||||||||
| 3486 | 0 | ▶ | sub testList{ | ||||||||||||
|
Subroutine
testList: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3487 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3488 | |||||||||||||||
| 3489 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3490 | 0 | return $self->{impl}->testList($thing); | |||||||||||||
| 3491 | } | ||||||||||||||
| 3492 | |||||||||||||||
| 3493 | 0 | ▶ | sub testEnum{ | ||||||||||||
|
Subroutine
testEnum: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3494 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3495 | |||||||||||||||
| 3496 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3497 | 0 | return $self->{impl}->testEnum($thing); | |||||||||||||
| 3498 | } | ||||||||||||||
| 3499 | |||||||||||||||
| 3500 | 0 | ▶ | sub testTypedef{ | ||||||||||||
|
Subroutine
testTypedef: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3501 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3502 | |||||||||||||||
| 3503 | 0 | ▶ | my $thing = ($request->{'thing'}) ? $request->{'thing'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3504 | 0 | return $self->{impl}->testTypedef($thing); | |||||||||||||
| 3505 | } | ||||||||||||||
| 3506 | |||||||||||||||
| 3507 | 0 | ▶ | sub testMapMap{ | ||||||||||||
|
Subroutine
testMapMap: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3508 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3509 | |||||||||||||||
| 3510 | 0 | ▶ | my $hello = ($request->{'hello'}) ? $request->{'hello'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3511 | 0 | return $self->{impl}->testMapMap($hello); | |||||||||||||
| 3512 | } | ||||||||||||||
| 3513 | |||||||||||||||
| 3514 | 0 | ▶ | sub testInsanity{ | ||||||||||||
|
Subroutine
testInsanity: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3515 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3516 | |||||||||||||||
| 3517 | 0 | ▶ | my $argument = ($request->{'argument'}) ? $request->{'argument'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3518 | 0 | return $self->{impl}->testInsanity($argument); | |||||||||||||
| 3519 | } | ||||||||||||||
| 3520 | |||||||||||||||
| 3521 | 0 | ▶ | sub testMulti{ | ||||||||||||
|
Subroutine
testMulti: not called CC=7 SCAR=40.3
| |||||||||||||||
| 3522 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3523 | |||||||||||||||
| 3524 | 0 | ▶ | my $arg0 = ($request->{'arg0'}) ? $request->{'arg0'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3525 | 0 | ▶ | my $arg1 = ($request->{'arg1'}) ? $request->{'arg1'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3526 | 0 | ▶ | my $arg2 = ($request->{'arg2'}) ? $request->{'arg2'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3527 | 0 | ▶ | my $arg3 = ($request->{'arg3'}) ? $request->{'arg3'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3528 | 0 | ▶ | my $arg4 = ($request->{'arg4'}) ? $request->{'arg4'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3529 | 0 | ▶ | my $arg5 = ($request->{'arg5'}) ? $request->{'arg5'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3530 | 0 | return $self->{impl}->testMulti($arg0, $arg1, $arg2, $arg3, $arg4, $arg5); | |||||||||||||
| 3531 | } | ||||||||||||||
| 3532 | |||||||||||||||
| 3533 | 0 | ▶ | sub testException{ | ||||||||||||
|
Subroutine
testException: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3534 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3535 | |||||||||||||||
| 3536 | 0 | ▶ | my $arg = ($request->{'arg'}) ? $request->{'arg'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3537 | 0 | return $self->{impl}->testException($arg); | |||||||||||||
| 3538 | } | ||||||||||||||
| 3539 | |||||||||||||||
| 3540 | 0 | ▶ | sub testMultiException{ | ||||||||||||
|
Subroutine
testMultiException: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3541 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3542 | |||||||||||||||
| 3543 | 0 | ▶ | my $arg0 = ($request->{'arg0'}) ? $request->{'arg0'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3544 | 0 | ▶ | my $arg1 = ($request->{'arg1'}) ? $request->{'arg1'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3545 | 0 | return $self->{impl}->testMultiException($arg0, $arg1); | |||||||||||||
| 3546 | } | ||||||||||||||
| 3547 | |||||||||||||||
| 3548 | 0 | ▶ | sub testOneway{ | ||||||||||||
|
Subroutine
testOneway: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3549 | 0 | my ($self, $request) = @_; | |||||||||||||
| 3550 | |||||||||||||||
| 3551 | 0 | ▶ | my $secondsToSleep = ($request->{'secondsToSleep'}) ? $request->{'secondsToSleep'} : undef; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3552 | 0 | return $self->{impl}->testOneway($secondsToSleep); | |||||||||||||
| 3553 | } | ||||||||||||||
| 3554 | |||||||||||||||
| 3555 | package ThriftTest::ThriftTestClient; | ||||||||||||||
| 3556 | |||||||||||||||
| 3557 | |||||||||||||||
| 3558 | 1 | ▶ | use base qw(ThriftTest::ThriftTestIf); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3559 | 1 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
| |||||||||||||||
| 3560 | 1 | my ($classname, $input, $output) = @_; | |||||||||||||
| 3561 | 1 | my $self = {}; | |||||||||||||
| 3562 | 1 | $self->{input} = $input; | |||||||||||||
| 3563 | 1 | ▶ | $self->{output} = defined $output ? $output : $input; | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3564 | 1 | $self->{seqid} = 0; | |||||||||||||
| 3565 | 1 | return bless($self,$classname); | |||||||||||||
| 3566 | } | ||||||||||||||
| 3567 | |||||||||||||||
| 3568 | 0 | ▶ | sub testVoid{ | ||||||||||||
|
Subroutine
testVoid: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3569 | 0 | my $self = shift; | |||||||||||||
| 3570 | |||||||||||||||
| 3571 | 0 | $self->send_testVoid(); | |||||||||||||
| 3572 | 0 | $self->recv_testVoid(); | |||||||||||||
| 3573 | } | ||||||||||||||
| 3574 | |||||||||||||||
| 3575 | 0 | ▶ | sub send_testVoid{ | ||||||||||||
|
Subroutine
send_testVoid: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3576 | 0 | my $self = shift; | |||||||||||||
| 3577 | |||||||||||||||
| 3578 | 0 | $self->{output}->writeMessageBegin('testVoid', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3579 | 0 | my $args = ThriftTest::ThriftTest_testVoid_args->new(); | |||||||||||||
| 3580 | 0 | $args->write($self->{output}); | |||||||||||||
| 3581 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3582 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3583 | } | ||||||||||||||
| 3584 | |||||||||||||||
| 3585 | 0 | ▶ | sub recv_testVoid{ | ||||||||||||
|
Subroutine
recv_testVoid: not called CC=2 SCAR=17.9
| |||||||||||||||
| 3586 | 0 | my $self = shift; | |||||||||||||
| 3587 | |||||||||||||||
| 3588 | 0 | my $rseqid = 0; | |||||||||||||
| 3589 | 0 | my $fname; | |||||||||||||
| 3590 | 0 | my $mtype = 0; | |||||||||||||
| 3591 | |||||||||||||||
| 3592 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3593 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3594 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3595 | 0 | $x->read($self->{input}); | |||||||||||||
| 3596 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3597 | 0 | die $x; | |||||||||||||
| 3598 | } | ||||||||||||||
| 3599 | 0 | my $result = ThriftTest::ThriftTest_testVoid_result->new(); | |||||||||||||
| 3600 | 0 | $result->read($self->{input}); | |||||||||||||
| 3601 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3602 | |||||||||||||||
| 3603 | 0 | return; | |||||||||||||
| 3604 | } | ||||||||||||||
| 3605 | 0 | ▶ | sub testString{ | ||||||||||||
|
Subroutine
testString: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3606 | 0 | my $self = shift; | |||||||||||||
| 3607 | 0 | my $thing = shift; | |||||||||||||
| 3608 | |||||||||||||||
| 3609 | 0 | $self->send_testString($thing); | |||||||||||||
| 3610 | 0 | return $self->recv_testString(); | |||||||||||||
| 3611 | } | ||||||||||||||
| 3612 | |||||||||||||||
| 3613 | 2 | ▶ | sub send_testString{ | ||||||||||||
|
Subroutine
send_testString: called CC=1 SCAR=0.0
| |||||||||||||||
| 3614 | 2 | my $self = shift; | |||||||||||||
| 3615 | 2 | my $thing = shift; | |||||||||||||
| 3616 | |||||||||||||||
| 3617 | 2 | $self->{output}->writeMessageBegin('testString', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3618 | 2 | my $args = ThriftTest::ThriftTest_testString_args->new(); | |||||||||||||
| 3619 | 2 | $args->{thing} = $thing; | |||||||||||||
| 3620 | 2 | $args->write($self->{output}); | |||||||||||||
| 3621 | 2 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3622 | 2 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3623 | } | ||||||||||||||
| 3624 | |||||||||||||||
| 3625 | 0 | ▶ | sub recv_testString{ | ||||||||||||
|
Subroutine
recv_testString: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3626 | 0 | my $self = shift; | |||||||||||||
| 3627 | |||||||||||||||
| 3628 | 0 | my $rseqid = 0; | |||||||||||||
| 3629 | 0 | my $fname; | |||||||||||||
| 3630 | 0 | my $mtype = 0; | |||||||||||||
| 3631 | |||||||||||||||
| 3632 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3633 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3634 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3635 | 0 | $x->read($self->{input}); | |||||||||||||
| 3636 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3637 | 0 | die $x; | |||||||||||||
| 3638 | } | ||||||||||||||
| 3639 | 0 | my $result = ThriftTest::ThriftTest_testString_result->new(); | |||||||||||||
| 3640 | 0 | $result->read($self->{input}); | |||||||||||||
| 3641 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3642 | |||||||||||||||
| 3643 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3644 | 0 | return $result->{success}; | |||||||||||||
| 3645 | } | ||||||||||||||
| 3646 | 0 | die "testString failed: unknown result"; | |||||||||||||
| 3647 | } | ||||||||||||||
| 3648 | 0 | ▶ | sub testBool{ | ||||||||||||
|
Subroutine
testBool: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3649 | 0 | my $self = shift; | |||||||||||||
| 3650 | 0 | my $thing = shift; | |||||||||||||
| 3651 | |||||||||||||||
| 3652 | 0 | $self->send_testBool($thing); | |||||||||||||
| 3653 | 0 | return $self->recv_testBool(); | |||||||||||||
| 3654 | } | ||||||||||||||
| 3655 | |||||||||||||||
| 3656 | 0 | ▶ | sub send_testBool{ | ||||||||||||
|
Subroutine
send_testBool: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3657 | 0 | my $self = shift; | |||||||||||||
| 3658 | 0 | my $thing = shift; | |||||||||||||
| 3659 | |||||||||||||||
| 3660 | 0 | $self->{output}->writeMessageBegin('testBool', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3661 | 0 | my $args = ThriftTest::ThriftTest_testBool_args->new(); | |||||||||||||
| 3662 | 0 | $args->{thing} = $thing; | |||||||||||||
| 3663 | 0 | $args->write($self->{output}); | |||||||||||||
| 3664 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3665 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3666 | } | ||||||||||||||
| 3667 | |||||||||||||||
| 3668 | 0 | ▶ | sub recv_testBool{ | ||||||||||||
|
Subroutine
recv_testBool: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3669 | 0 | my $self = shift; | |||||||||||||
| 3670 | |||||||||||||||
| 3671 | 0 | my $rseqid = 0; | |||||||||||||
| 3672 | 0 | my $fname; | |||||||||||||
| 3673 | 0 | my $mtype = 0; | |||||||||||||
| 3674 | |||||||||||||||
| 3675 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3676 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3677 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3678 | 0 | $x->read($self->{input}); | |||||||||||||
| 3679 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3680 | 0 | die $x; | |||||||||||||
| 3681 | } | ||||||||||||||
| 3682 | 0 | my $result = ThriftTest::ThriftTest_testBool_result->new(); | |||||||||||||
| 3683 | 0 | $result->read($self->{input}); | |||||||||||||
| 3684 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3685 | |||||||||||||||
| 3686 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3687 | 0 | return $result->{success}; | |||||||||||||
| 3688 | } | ||||||||||||||
| 3689 | 0 | die "testBool failed: unknown result"; | |||||||||||||
| 3690 | } | ||||||||||||||
| 3691 | 0 | ▶ | sub testByte{ | ||||||||||||
|
Subroutine
testByte: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3692 | 0 | my $self = shift; | |||||||||||||
| 3693 | 0 | my $thing = shift; | |||||||||||||
| 3694 | |||||||||||||||
| 3695 | 0 | $self->send_testByte($thing); | |||||||||||||
| 3696 | 0 | return $self->recv_testByte(); | |||||||||||||
| 3697 | } | ||||||||||||||
| 3698 | |||||||||||||||
| 3699 | 0 | ▶ | sub send_testByte{ | ||||||||||||
|
Subroutine
send_testByte: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3700 | 0 | my $self = shift; | |||||||||||||
| 3701 | 0 | my $thing = shift; | |||||||||||||
| 3702 | |||||||||||||||
| 3703 | 0 | $self->{output}->writeMessageBegin('testByte', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3704 | 0 | my $args = ThriftTest::ThriftTest_testByte_args->new(); | |||||||||||||
| 3705 | 0 | $args->{thing} = $thing; | |||||||||||||
| 3706 | 0 | $args->write($self->{output}); | |||||||||||||
| 3707 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3708 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3709 | } | ||||||||||||||
| 3710 | |||||||||||||||
| 3711 | 0 | ▶ | sub recv_testByte{ | ||||||||||||
|
Subroutine
recv_testByte: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3712 | 0 | my $self = shift; | |||||||||||||
| 3713 | |||||||||||||||
| 3714 | 0 | my $rseqid = 0; | |||||||||||||
| 3715 | 0 | my $fname; | |||||||||||||
| 3716 | 0 | my $mtype = 0; | |||||||||||||
| 3717 | |||||||||||||||
| 3718 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3719 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3720 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3721 | 0 | $x->read($self->{input}); | |||||||||||||
| 3722 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3723 | 0 | die $x; | |||||||||||||
| 3724 | } | ||||||||||||||
| 3725 | 0 | my $result = ThriftTest::ThriftTest_testByte_result->new(); | |||||||||||||
| 3726 | 0 | $result->read($self->{input}); | |||||||||||||
| 3727 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3728 | |||||||||||||||
| 3729 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3730 | 0 | return $result->{success}; | |||||||||||||
| 3731 | } | ||||||||||||||
| 3732 | 0 | die "testByte failed: unknown result"; | |||||||||||||
| 3733 | } | ||||||||||||||
| 3734 | 0 | ▶ | sub testI32{ | ||||||||||||
|
Subroutine
testI32: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3735 | 0 | my $self = shift; | |||||||||||||
| 3736 | 0 | my $thing = shift; | |||||||||||||
| 3737 | |||||||||||||||
| 3738 | 0 | $self->send_testI32($thing); | |||||||||||||
| 3739 | 0 | return $self->recv_testI32(); | |||||||||||||
| 3740 | } | ||||||||||||||
| 3741 | |||||||||||||||
| 3742 | 0 | ▶ | sub send_testI32{ | ||||||||||||
|
Subroutine
send_testI32: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3743 | 0 | my $self = shift; | |||||||||||||
| 3744 | 0 | my $thing = shift; | |||||||||||||
| 3745 | |||||||||||||||
| 3746 | 0 | $self->{output}->writeMessageBegin('testI32', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3747 | 0 | my $args = ThriftTest::ThriftTest_testI32_args->new(); | |||||||||||||
| 3748 | 0 | $args->{thing} = $thing; | |||||||||||||
| 3749 | 0 | $args->write($self->{output}); | |||||||||||||
| 3750 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3751 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3752 | } | ||||||||||||||
| 3753 | |||||||||||||||
| 3754 | 0 | ▶ | sub recv_testI32{ | ||||||||||||
|
Subroutine
recv_testI32: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3755 | 0 | my $self = shift; | |||||||||||||
| 3756 | |||||||||||||||
| 3757 | 0 | my $rseqid = 0; | |||||||||||||
| 3758 | 0 | my $fname; | |||||||||||||
| 3759 | 0 | my $mtype = 0; | |||||||||||||
| 3760 | |||||||||||||||
| 3761 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3762 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3763 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3764 | 0 | $x->read($self->{input}); | |||||||||||||
| 3765 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3766 | 0 | die $x; | |||||||||||||
| 3767 | } | ||||||||||||||
| 3768 | 0 | my $result = ThriftTest::ThriftTest_testI32_result->new(); | |||||||||||||
| 3769 | 0 | $result->read($self->{input}); | |||||||||||||
| 3770 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3771 | |||||||||||||||
| 3772 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3773 | 0 | return $result->{success}; | |||||||||||||
| 3774 | } | ||||||||||||||
| 3775 | 0 | die "testI32 failed: unknown result"; | |||||||||||||
| 3776 | } | ||||||||||||||
| 3777 | 0 | ▶ | sub testI64{ | ||||||||||||
|
Subroutine
testI64: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3778 | 0 | my $self = shift; | |||||||||||||
| 3779 | 0 | my $thing = shift; | |||||||||||||
| 3780 | |||||||||||||||
| 3781 | 0 | $self->send_testI64($thing); | |||||||||||||
| 3782 | 0 | return $self->recv_testI64(); | |||||||||||||
| 3783 | } | ||||||||||||||
| 3784 | |||||||||||||||
| 3785 | 0 | ▶ | sub send_testI64{ | ||||||||||||
|
Subroutine
send_testI64: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3786 | 0 | my $self = shift; | |||||||||||||
| 3787 | 0 | my $thing = shift; | |||||||||||||
| 3788 | |||||||||||||||
| 3789 | 0 | $self->{output}->writeMessageBegin('testI64', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3790 | 0 | my $args = ThriftTest::ThriftTest_testI64_args->new(); | |||||||||||||
| 3791 | 0 | $args->{thing} = $thing; | |||||||||||||
| 3792 | 0 | $args->write($self->{output}); | |||||||||||||
| 3793 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3794 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3795 | } | ||||||||||||||
| 3796 | |||||||||||||||
| 3797 | 0 | ▶ | sub recv_testI64{ | ||||||||||||
|
Subroutine
recv_testI64: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3798 | 0 | my $self = shift; | |||||||||||||
| 3799 | |||||||||||||||
| 3800 | 0 | my $rseqid = 0; | |||||||||||||
| 3801 | 0 | my $fname; | |||||||||||||
| 3802 | 0 | my $mtype = 0; | |||||||||||||
| 3803 | |||||||||||||||
| 3804 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3805 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3806 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3807 | 0 | $x->read($self->{input}); | |||||||||||||
| 3808 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3809 | 0 | die $x; | |||||||||||||
| 3810 | } | ||||||||||||||
| 3811 | 0 | my $result = ThriftTest::ThriftTest_testI64_result->new(); | |||||||||||||
| 3812 | 0 | $result->read($self->{input}); | |||||||||||||
| 3813 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3814 | |||||||||||||||
| 3815 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3816 | 0 | return $result->{success}; | |||||||||||||
| 3817 | } | ||||||||||||||
| 3818 | 0 | die "testI64 failed: unknown result"; | |||||||||||||
| 3819 | } | ||||||||||||||
| 3820 | 0 | ▶ | sub testDouble{ | ||||||||||||
|
Subroutine
testDouble: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3821 | 0 | my $self = shift; | |||||||||||||
| 3822 | 0 | my $thing = shift; | |||||||||||||
| 3823 | |||||||||||||||
| 3824 | 0 | $self->send_testDouble($thing); | |||||||||||||
| 3825 | 0 | return $self->recv_testDouble(); | |||||||||||||
| 3826 | } | ||||||||||||||
| 3827 | |||||||||||||||
| 3828 | 0 | ▶ | sub send_testDouble{ | ||||||||||||
|
Subroutine
send_testDouble: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3829 | 0 | my $self = shift; | |||||||||||||
| 3830 | 0 | my $thing = shift; | |||||||||||||
| 3831 | |||||||||||||||
| 3832 | 0 | $self->{output}->writeMessageBegin('testDouble', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3833 | 0 | my $args = ThriftTest::ThriftTest_testDouble_args->new(); | |||||||||||||
| 3834 | 0 | $args->{thing} = $thing; | |||||||||||||
| 3835 | 0 | $args->write($self->{output}); | |||||||||||||
| 3836 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3837 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3838 | } | ||||||||||||||
| 3839 | |||||||||||||||
| 3840 | 0 | ▶ | sub recv_testDouble{ | ||||||||||||
|
Subroutine
recv_testDouble: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3841 | 0 | my $self = shift; | |||||||||||||
| 3842 | |||||||||||||||
| 3843 | 0 | my $rseqid = 0; | |||||||||||||
| 3844 | 0 | my $fname; | |||||||||||||
| 3845 | 0 | my $mtype = 0; | |||||||||||||
| 3846 | |||||||||||||||
| 3847 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3848 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3849 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3850 | 0 | $x->read($self->{input}); | |||||||||||||
| 3851 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3852 | 0 | die $x; | |||||||||||||
| 3853 | } | ||||||||||||||
| 3854 | 0 | my $result = ThriftTest::ThriftTest_testDouble_result->new(); | |||||||||||||
| 3855 | 0 | $result->read($self->{input}); | |||||||||||||
| 3856 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3857 | |||||||||||||||
| 3858 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3859 | 0 | return $result->{success}; | |||||||||||||
| 3860 | } | ||||||||||||||
| 3861 | 0 | die "testDouble failed: unknown result"; | |||||||||||||
| 3862 | } | ||||||||||||||
| 3863 | 0 | ▶ | sub testBinary{ | ||||||||||||
|
Subroutine
testBinary: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3864 | 0 | my $self = shift; | |||||||||||||
| 3865 | 0 | my $thing = shift; | |||||||||||||
| 3866 | |||||||||||||||
| 3867 | 0 | $self->send_testBinary($thing); | |||||||||||||
| 3868 | 0 | return $self->recv_testBinary(); | |||||||||||||
| 3869 | } | ||||||||||||||
| 3870 | |||||||||||||||
| 3871 | 0 | ▶ | sub send_testBinary{ | ||||||||||||
|
Subroutine
send_testBinary: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3872 | 0 | my $self = shift; | |||||||||||||
| 3873 | 0 | my $thing = shift; | |||||||||||||
| 3874 | |||||||||||||||
| 3875 | 0 | $self->{output}->writeMessageBegin('testBinary', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3876 | 0 | my $args = ThriftTest::ThriftTest_testBinary_args->new(); | |||||||||||||
| 3877 | 0 | $args->{thing} = $thing; | |||||||||||||
| 3878 | 0 | $args->write($self->{output}); | |||||||||||||
| 3879 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3880 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3881 | } | ||||||||||||||
| 3882 | |||||||||||||||
| 3883 | 0 | ▶ | sub recv_testBinary{ | ||||||||||||
|
Subroutine
recv_testBinary: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3884 | 0 | my $self = shift; | |||||||||||||
| 3885 | |||||||||||||||
| 3886 | 0 | my $rseqid = 0; | |||||||||||||
| 3887 | 0 | my $fname; | |||||||||||||
| 3888 | 0 | my $mtype = 0; | |||||||||||||
| 3889 | |||||||||||||||
| 3890 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3891 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3892 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3893 | 0 | $x->read($self->{input}); | |||||||||||||
| 3894 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3895 | 0 | die $x; | |||||||||||||
| 3896 | } | ||||||||||||||
| 3897 | 0 | my $result = ThriftTest::ThriftTest_testBinary_result->new(); | |||||||||||||
| 3898 | 0 | $result->read($self->{input}); | |||||||||||||
| 3899 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3900 | |||||||||||||||
| 3901 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3902 | 0 | return $result->{success}; | |||||||||||||
| 3903 | } | ||||||||||||||
| 3904 | 0 | die "testBinary failed: unknown result"; | |||||||||||||
| 3905 | } | ||||||||||||||
| 3906 | 0 | ▶ | sub testStruct{ | ||||||||||||
|
Subroutine
testStruct: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3907 | 0 | my $self = shift; | |||||||||||||
| 3908 | 0 | my $thing = shift; | |||||||||||||
| 3909 | |||||||||||||||
| 3910 | 0 | $self->send_testStruct($thing); | |||||||||||||
| 3911 | 0 | return $self->recv_testStruct(); | |||||||||||||
| 3912 | } | ||||||||||||||
| 3913 | |||||||||||||||
| 3914 | 0 | ▶ | sub send_testStruct{ | ||||||||||||
|
Subroutine
send_testStruct: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3915 | 0 | my $self = shift; | |||||||||||||
| 3916 | 0 | my $thing = shift; | |||||||||||||
| 3917 | |||||||||||||||
| 3918 | 0 | $self->{output}->writeMessageBegin('testStruct', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3919 | 0 | my $args = ThriftTest::ThriftTest_testStruct_args->new(); | |||||||||||||
| 3920 | 0 | $args->{thing} = $thing; | |||||||||||||
| 3921 | 0 | $args->write($self->{output}); | |||||||||||||
| 3922 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3923 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3924 | } | ||||||||||||||
| 3925 | |||||||||||||||
| 3926 | 0 | ▶ | sub recv_testStruct{ | ||||||||||||
|
Subroutine
recv_testStruct: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3927 | 0 | my $self = shift; | |||||||||||||
| 3928 | |||||||||||||||
| 3929 | 0 | my $rseqid = 0; | |||||||||||||
| 3930 | 0 | my $fname; | |||||||||||||
| 3931 | 0 | my $mtype = 0; | |||||||||||||
| 3932 | |||||||||||||||
| 3933 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3934 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3935 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3936 | 0 | $x->read($self->{input}); | |||||||||||||
| 3937 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3938 | 0 | die $x; | |||||||||||||
| 3939 | } | ||||||||||||||
| 3940 | 0 | my $result = ThriftTest::ThriftTest_testStruct_result->new(); | |||||||||||||
| 3941 | 0 | $result->read($self->{input}); | |||||||||||||
| 3942 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3943 | |||||||||||||||
| 3944 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3945 | 0 | return $result->{success}; | |||||||||||||
| 3946 | } | ||||||||||||||
| 3947 | 0 | die "testStruct failed: unknown result"; | |||||||||||||
| 3948 | } | ||||||||||||||
| 3949 | 0 | ▶ | sub testNest{ | ||||||||||||
|
Subroutine
testNest: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3950 | 0 | my $self = shift; | |||||||||||||
| 3951 | 0 | my $thing = shift; | |||||||||||||
| 3952 | |||||||||||||||
| 3953 | 0 | $self->send_testNest($thing); | |||||||||||||
| 3954 | 0 | return $self->recv_testNest(); | |||||||||||||
| 3955 | } | ||||||||||||||
| 3956 | |||||||||||||||
| 3957 | 0 | ▶ | sub send_testNest{ | ||||||||||||
|
Subroutine
send_testNest: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3958 | 0 | my $self = shift; | |||||||||||||
| 3959 | 0 | my $thing = shift; | |||||||||||||
| 3960 | |||||||||||||||
| 3961 | 0 | $self->{output}->writeMessageBegin('testNest', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 3962 | 0 | my $args = ThriftTest::ThriftTest_testNest_args->new(); | |||||||||||||
| 3963 | 0 | $args->{thing} = $thing; | |||||||||||||
| 3964 | 0 | $args->write($self->{output}); | |||||||||||||
| 3965 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 3966 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 3967 | } | ||||||||||||||
| 3968 | |||||||||||||||
| 3969 | 0 | ▶ | sub recv_testNest{ | ||||||||||||
|
Subroutine
recv_testNest: not called CC=3 SCAR=24.8
| |||||||||||||||
| 3970 | 0 | my $self = shift; | |||||||||||||
| 3971 | |||||||||||||||
| 3972 | 0 | my $rseqid = 0; | |||||||||||||
| 3973 | 0 | my $fname; | |||||||||||||
| 3974 | 0 | my $mtype = 0; | |||||||||||||
| 3975 | |||||||||||||||
| 3976 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 3977 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3978 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 3979 | 0 | $x->read($self->{input}); | |||||||||||||
| 3980 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3981 | 0 | die $x; | |||||||||||||
| 3982 | } | ||||||||||||||
| 3983 | 0 | my $result = ThriftTest::ThriftTest_testNest_result->new(); | |||||||||||||
| 3984 | 0 | $result->read($self->{input}); | |||||||||||||
| 3985 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 3986 | |||||||||||||||
| 3987 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 3988 | 0 | return $result->{success}; | |||||||||||||
| 3989 | } | ||||||||||||||
| 3990 | 0 | die "testNest failed: unknown result"; | |||||||||||||
| 3991 | } | ||||||||||||||
| 3992 | 0 | ▶ | sub testMap{ | ||||||||||||
|
Subroutine
testMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 3993 | 0 | my $self = shift; | |||||||||||||
| 3994 | 0 | my $thing = shift; | |||||||||||||
| 3995 | |||||||||||||||
| 3996 | 0 | $self->send_testMap($thing); | |||||||||||||
| 3997 | 0 | return $self->recv_testMap(); | |||||||||||||
| 3998 | } | ||||||||||||||
| 3999 | |||||||||||||||
| 4000 | 0 | ▶ | sub send_testMap{ | ||||||||||||
|
Subroutine
send_testMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4001 | 0 | my $self = shift; | |||||||||||||
| 4002 | 0 | my $thing = shift; | |||||||||||||
| 4003 | |||||||||||||||
| 4004 | 0 | $self->{output}->writeMessageBegin('testMap', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4005 | 0 | my $args = ThriftTest::ThriftTest_testMap_args->new(); | |||||||||||||
| 4006 | 0 | $args->{thing} = $thing; | |||||||||||||
| 4007 | 0 | $args->write($self->{output}); | |||||||||||||
| 4008 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4009 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4010 | } | ||||||||||||||
| 4011 | |||||||||||||||
| 4012 | 0 | ▶ | sub recv_testMap{ | ||||||||||||
|
Subroutine
recv_testMap: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4013 | 0 | my $self = shift; | |||||||||||||
| 4014 | |||||||||||||||
| 4015 | 0 | my $rseqid = 0; | |||||||||||||
| 4016 | 0 | my $fname; | |||||||||||||
| 4017 | 0 | my $mtype = 0; | |||||||||||||
| 4018 | |||||||||||||||
| 4019 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4020 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4021 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4022 | 0 | $x->read($self->{input}); | |||||||||||||
| 4023 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4024 | 0 | die $x; | |||||||||||||
| 4025 | } | ||||||||||||||
| 4026 | 0 | my $result = ThriftTest::ThriftTest_testMap_result->new(); | |||||||||||||
| 4027 | 0 | $result->read($self->{input}); | |||||||||||||
| 4028 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4029 | |||||||||||||||
| 4030 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4031 | 0 | return $result->{success}; | |||||||||||||
| 4032 | } | ||||||||||||||
| 4033 | 0 | die "testMap failed: unknown result"; | |||||||||||||
| 4034 | } | ||||||||||||||
| 4035 | 0 | ▶ | sub testStringMap{ | ||||||||||||
|
Subroutine
testStringMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4036 | 0 | my $self = shift; | |||||||||||||
| 4037 | 0 | my $thing = shift; | |||||||||||||
| 4038 | |||||||||||||||
| 4039 | 0 | $self->send_testStringMap($thing); | |||||||||||||
| 4040 | 0 | return $self->recv_testStringMap(); | |||||||||||||
| 4041 | } | ||||||||||||||
| 4042 | |||||||||||||||
| 4043 | 0 | ▶ | sub send_testStringMap{ | ||||||||||||
|
Subroutine
send_testStringMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4044 | 0 | my $self = shift; | |||||||||||||
| 4045 | 0 | my $thing = shift; | |||||||||||||
| 4046 | |||||||||||||||
| 4047 | 0 | $self->{output}->writeMessageBegin('testStringMap', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4048 | 0 | my $args = ThriftTest::ThriftTest_testStringMap_args->new(); | |||||||||||||
| 4049 | 0 | $args->{thing} = $thing; | |||||||||||||
| 4050 | 0 | $args->write($self->{output}); | |||||||||||||
| 4051 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4052 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4053 | } | ||||||||||||||
| 4054 | |||||||||||||||
| 4055 | 0 | ▶ | sub recv_testStringMap{ | ||||||||||||
|
Subroutine
recv_testStringMap: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4056 | 0 | my $self = shift; | |||||||||||||
| 4057 | |||||||||||||||
| 4058 | 0 | my $rseqid = 0; | |||||||||||||
| 4059 | 0 | my $fname; | |||||||||||||
| 4060 | 0 | my $mtype = 0; | |||||||||||||
| 4061 | |||||||||||||||
| 4062 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4063 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4064 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4065 | 0 | $x->read($self->{input}); | |||||||||||||
| 4066 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4067 | 0 | die $x; | |||||||||||||
| 4068 | } | ||||||||||||||
| 4069 | 0 | my $result = ThriftTest::ThriftTest_testStringMap_result->new(); | |||||||||||||
| 4070 | 0 | $result->read($self->{input}); | |||||||||||||
| 4071 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4072 | |||||||||||||||
| 4073 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4074 | 0 | return $result->{success}; | |||||||||||||
| 4075 | } | ||||||||||||||
| 4076 | 0 | die "testStringMap failed: unknown result"; | |||||||||||||
| 4077 | } | ||||||||||||||
| 4078 | 0 | ▶ | sub testSet{ | ||||||||||||
|
Subroutine
testSet: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4079 | 0 | my $self = shift; | |||||||||||||
| 4080 | 0 | my $thing = shift; | |||||||||||||
| 4081 | |||||||||||||||
| 4082 | 0 | $self->send_testSet($thing); | |||||||||||||
| 4083 | 0 | return $self->recv_testSet(); | |||||||||||||
| 4084 | } | ||||||||||||||
| 4085 | |||||||||||||||
| 4086 | 0 | ▶ | sub send_testSet{ | ||||||||||||
|
Subroutine
send_testSet: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4087 | 0 | my $self = shift; | |||||||||||||
| 4088 | 0 | my $thing = shift; | |||||||||||||
| 4089 | |||||||||||||||
| 4090 | 0 | $self->{output}->writeMessageBegin('testSet', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4091 | 0 | my $args = ThriftTest::ThriftTest_testSet_args->new(); | |||||||||||||
| 4092 | 0 | $args->{thing} = $thing; | |||||||||||||
| 4093 | 0 | $args->write($self->{output}); | |||||||||||||
| 4094 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4095 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4096 | } | ||||||||||||||
| 4097 | |||||||||||||||
| 4098 | 0 | ▶ | sub recv_testSet{ | ||||||||||||
|
Subroutine
recv_testSet: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4099 | 0 | my $self = shift; | |||||||||||||
| 4100 | |||||||||||||||
| 4101 | 0 | my $rseqid = 0; | |||||||||||||
| 4102 | 0 | my $fname; | |||||||||||||
| 4103 | 0 | my $mtype = 0; | |||||||||||||
| 4104 | |||||||||||||||
| 4105 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4106 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4107 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4108 | 0 | $x->read($self->{input}); | |||||||||||||
| 4109 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4110 | 0 | die $x; | |||||||||||||
| 4111 | } | ||||||||||||||
| 4112 | 0 | my $result = ThriftTest::ThriftTest_testSet_result->new(); | |||||||||||||
| 4113 | 0 | $result->read($self->{input}); | |||||||||||||
| 4114 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4115 | |||||||||||||||
| 4116 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4117 | 0 | return $result->{success}; | |||||||||||||
| 4118 | } | ||||||||||||||
| 4119 | 0 | die "testSet failed: unknown result"; | |||||||||||||
| 4120 | } | ||||||||||||||
| 4121 | 0 | ▶ | sub testList{ | ||||||||||||
|
Subroutine
testList: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4122 | 0 | my $self = shift; | |||||||||||||
| 4123 | 0 | my $thing = shift; | |||||||||||||
| 4124 | |||||||||||||||
| 4125 | 0 | $self->send_testList($thing); | |||||||||||||
| 4126 | 0 | return $self->recv_testList(); | |||||||||||||
| 4127 | } | ||||||||||||||
| 4128 | |||||||||||||||
| 4129 | 0 | ▶ | sub send_testList{ | ||||||||||||
|
Subroutine
send_testList: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4130 | 0 | my $self = shift; | |||||||||||||
| 4131 | 0 | my $thing = shift; | |||||||||||||
| 4132 | |||||||||||||||
| 4133 | 0 | $self->{output}->writeMessageBegin('testList', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4134 | 0 | my $args = ThriftTest::ThriftTest_testList_args->new(); | |||||||||||||
| 4135 | 0 | $args->{thing} = $thing; | |||||||||||||
| 4136 | 0 | $args->write($self->{output}); | |||||||||||||
| 4137 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4138 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4139 | } | ||||||||||||||
| 4140 | |||||||||||||||
| 4141 | 0 | ▶ | sub recv_testList{ | ||||||||||||
|
Subroutine
recv_testList: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4142 | 0 | my $self = shift; | |||||||||||||
| 4143 | |||||||||||||||
| 4144 | 0 | my $rseqid = 0; | |||||||||||||
| 4145 | 0 | my $fname; | |||||||||||||
| 4146 | 0 | my $mtype = 0; | |||||||||||||
| 4147 | |||||||||||||||
| 4148 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4149 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4150 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4151 | 0 | $x->read($self->{input}); | |||||||||||||
| 4152 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4153 | 0 | die $x; | |||||||||||||
| 4154 | } | ||||||||||||||
| 4155 | 0 | my $result = ThriftTest::ThriftTest_testList_result->new(); | |||||||||||||
| 4156 | 0 | $result->read($self->{input}); | |||||||||||||
| 4157 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4158 | |||||||||||||||
| 4159 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4160 | 0 | return $result->{success}; | |||||||||||||
| 4161 | } | ||||||||||||||
| 4162 | 0 | die "testList failed: unknown result"; | |||||||||||||
| 4163 | } | ||||||||||||||
| 4164 | 0 | ▶ | sub testEnum{ | ||||||||||||
|
Subroutine
testEnum: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4165 | 0 | my $self = shift; | |||||||||||||
| 4166 | 0 | my $thing = shift; | |||||||||||||
| 4167 | |||||||||||||||
| 4168 | 0 | $self->send_testEnum($thing); | |||||||||||||
| 4169 | 0 | return $self->recv_testEnum(); | |||||||||||||
| 4170 | } | ||||||||||||||
| 4171 | |||||||||||||||
| 4172 | 0 | ▶ | sub send_testEnum{ | ||||||||||||
|
Subroutine
send_testEnum: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4173 | 0 | my $self = shift; | |||||||||||||
| 4174 | 0 | my $thing = shift; | |||||||||||||
| 4175 | |||||||||||||||
| 4176 | 0 | $self->{output}->writeMessageBegin('testEnum', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4177 | 0 | my $args = ThriftTest::ThriftTest_testEnum_args->new(); | |||||||||||||
| 4178 | 0 | $args->{thing} = $thing; | |||||||||||||
| 4179 | 0 | $args->write($self->{output}); | |||||||||||||
| 4180 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4181 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4182 | } | ||||||||||||||
| 4183 | |||||||||||||||
| 4184 | 0 | ▶ | sub recv_testEnum{ | ||||||||||||
|
Subroutine
recv_testEnum: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4185 | 0 | my $self = shift; | |||||||||||||
| 4186 | |||||||||||||||
| 4187 | 0 | my $rseqid = 0; | |||||||||||||
| 4188 | 0 | my $fname; | |||||||||||||
| 4189 | 0 | my $mtype = 0; | |||||||||||||
| 4190 | |||||||||||||||
| 4191 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4192 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4193 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4194 | 0 | $x->read($self->{input}); | |||||||||||||
| 4195 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4196 | 0 | die $x; | |||||||||||||
| 4197 | } | ||||||||||||||
| 4198 | 0 | my $result = ThriftTest::ThriftTest_testEnum_result->new(); | |||||||||||||
| 4199 | 0 | $result->read($self->{input}); | |||||||||||||
| 4200 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4201 | |||||||||||||||
| 4202 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4203 | 0 | return $result->{success}; | |||||||||||||
| 4204 | } | ||||||||||||||
| 4205 | 0 | die "testEnum failed: unknown result"; | |||||||||||||
| 4206 | } | ||||||||||||||
| 4207 | 0 | ▶ | sub testTypedef{ | ||||||||||||
|
Subroutine
testTypedef: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4208 | 0 | my $self = shift; | |||||||||||||
| 4209 | 0 | my $thing = shift; | |||||||||||||
| 4210 | |||||||||||||||
| 4211 | 0 | $self->send_testTypedef($thing); | |||||||||||||
| 4212 | 0 | return $self->recv_testTypedef(); | |||||||||||||
| 4213 | } | ||||||||||||||
| 4214 | |||||||||||||||
| 4215 | 0 | ▶ | sub send_testTypedef{ | ||||||||||||
|
Subroutine
send_testTypedef: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4216 | 0 | my $self = shift; | |||||||||||||
| 4217 | 0 | my $thing = shift; | |||||||||||||
| 4218 | |||||||||||||||
| 4219 | 0 | $self->{output}->writeMessageBegin('testTypedef', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4220 | 0 | my $args = ThriftTest::ThriftTest_testTypedef_args->new(); | |||||||||||||
| 4221 | 0 | $args->{thing} = $thing; | |||||||||||||
| 4222 | 0 | $args->write($self->{output}); | |||||||||||||
| 4223 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4224 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4225 | } | ||||||||||||||
| 4226 | |||||||||||||||
| 4227 | 0 | ▶ | sub recv_testTypedef{ | ||||||||||||
|
Subroutine
recv_testTypedef: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4228 | 0 | my $self = shift; | |||||||||||||
| 4229 | |||||||||||||||
| 4230 | 0 | my $rseqid = 0; | |||||||||||||
| 4231 | 0 | my $fname; | |||||||||||||
| 4232 | 0 | my $mtype = 0; | |||||||||||||
| 4233 | |||||||||||||||
| 4234 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4235 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4236 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4237 | 0 | $x->read($self->{input}); | |||||||||||||
| 4238 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4239 | 0 | die $x; | |||||||||||||
| 4240 | } | ||||||||||||||
| 4241 | 0 | my $result = ThriftTest::ThriftTest_testTypedef_result->new(); | |||||||||||||
| 4242 | 0 | $result->read($self->{input}); | |||||||||||||
| 4243 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4244 | |||||||||||||||
| 4245 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4246 | 0 | return $result->{success}; | |||||||||||||
| 4247 | } | ||||||||||||||
| 4248 | 0 | die "testTypedef failed: unknown result"; | |||||||||||||
| 4249 | } | ||||||||||||||
| 4250 | 0 | ▶ | sub testMapMap{ | ||||||||||||
|
Subroutine
testMapMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4251 | 0 | my $self = shift; | |||||||||||||
| 4252 | 0 | my $hello = shift; | |||||||||||||
| 4253 | |||||||||||||||
| 4254 | 0 | $self->send_testMapMap($hello); | |||||||||||||
| 4255 | 0 | return $self->recv_testMapMap(); | |||||||||||||
| 4256 | } | ||||||||||||||
| 4257 | |||||||||||||||
| 4258 | 0 | ▶ | sub send_testMapMap{ | ||||||||||||
|
Subroutine
send_testMapMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4259 | 0 | my $self = shift; | |||||||||||||
| 4260 | 0 | my $hello = shift; | |||||||||||||
| 4261 | |||||||||||||||
| 4262 | 0 | $self->{output}->writeMessageBegin('testMapMap', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4263 | 0 | my $args = ThriftTest::ThriftTest_testMapMap_args->new(); | |||||||||||||
| 4264 | 0 | $args->{hello} = $hello; | |||||||||||||
| 4265 | 0 | $args->write($self->{output}); | |||||||||||||
| 4266 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4267 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4268 | } | ||||||||||||||
| 4269 | |||||||||||||||
| 4270 | 0 | ▶ | sub recv_testMapMap{ | ||||||||||||
|
Subroutine
recv_testMapMap: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4271 | 0 | my $self = shift; | |||||||||||||
| 4272 | |||||||||||||||
| 4273 | 0 | my $rseqid = 0; | |||||||||||||
| 4274 | 0 | my $fname; | |||||||||||||
| 4275 | 0 | my $mtype = 0; | |||||||||||||
| 4276 | |||||||||||||||
| 4277 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4278 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4279 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4280 | 0 | $x->read($self->{input}); | |||||||||||||
| 4281 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4282 | 0 | die $x; | |||||||||||||
| 4283 | } | ||||||||||||||
| 4284 | 0 | my $result = ThriftTest::ThriftTest_testMapMap_result->new(); | |||||||||||||
| 4285 | 0 | $result->read($self->{input}); | |||||||||||||
| 4286 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4287 | |||||||||||||||
| 4288 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4289 | 0 | return $result->{success}; | |||||||||||||
| 4290 | } | ||||||||||||||
| 4291 | 0 | die "testMapMap failed: unknown result"; | |||||||||||||
| 4292 | } | ||||||||||||||
| 4293 | 0 | ▶ | sub testInsanity{ | ||||||||||||
|
Subroutine
testInsanity: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4294 | 0 | my $self = shift; | |||||||||||||
| 4295 | 0 | my $argument = shift; | |||||||||||||
| 4296 | |||||||||||||||
| 4297 | 0 | $self->send_testInsanity($argument); | |||||||||||||
| 4298 | 0 | return $self->recv_testInsanity(); | |||||||||||||
| 4299 | } | ||||||||||||||
| 4300 | |||||||||||||||
| 4301 | 0 | ▶ | sub send_testInsanity{ | ||||||||||||
|
Subroutine
send_testInsanity: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4302 | 0 | my $self = shift; | |||||||||||||
| 4303 | 0 | my $argument = shift; | |||||||||||||
| 4304 | |||||||||||||||
| 4305 | 0 | $self->{output}->writeMessageBegin('testInsanity', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4306 | 0 | my $args = ThriftTest::ThriftTest_testInsanity_args->new(); | |||||||||||||
| 4307 | 0 | $args->{argument} = $argument; | |||||||||||||
| 4308 | 0 | $args->write($self->{output}); | |||||||||||||
| 4309 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4310 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4311 | } | ||||||||||||||
| 4312 | |||||||||||||||
| 4313 | 0 | ▶ | sub recv_testInsanity{ | ||||||||||||
|
Subroutine
recv_testInsanity: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4314 | 0 | my $self = shift; | |||||||||||||
| 4315 | |||||||||||||||
| 4316 | 0 | my $rseqid = 0; | |||||||||||||
| 4317 | 0 | my $fname; | |||||||||||||
| 4318 | 0 | my $mtype = 0; | |||||||||||||
| 4319 | |||||||||||||||
| 4320 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4321 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4322 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4323 | 0 | $x->read($self->{input}); | |||||||||||||
| 4324 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4325 | 0 | die $x; | |||||||||||||
| 4326 | } | ||||||||||||||
| 4327 | 0 | my $result = ThriftTest::ThriftTest_testInsanity_result->new(); | |||||||||||||
| 4328 | 0 | $result->read($self->{input}); | |||||||||||||
| 4329 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4330 | |||||||||||||||
| 4331 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4332 | 0 | return $result->{success}; | |||||||||||||
| 4333 | } | ||||||||||||||
| 4334 | 0 | die "testInsanity failed: unknown result"; | |||||||||||||
| 4335 | } | ||||||||||||||
| 4336 | 0 | ▶ | sub testMulti{ | ||||||||||||
|
Subroutine
testMulti: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4337 | 0 | my $self = shift; | |||||||||||||
| 4338 | 0 | my $arg0 = shift; | |||||||||||||
| 4339 | 0 | my $arg1 = shift; | |||||||||||||
| 4340 | 0 | my $arg2 = shift; | |||||||||||||
| 4341 | 0 | my $arg3 = shift; | |||||||||||||
| 4342 | 0 | my $arg4 = shift; | |||||||||||||
| 4343 | 0 | my $arg5 = shift; | |||||||||||||
| 4344 | |||||||||||||||
| 4345 | 0 | $self->send_testMulti($arg0, $arg1, $arg2, $arg3, $arg4, $arg5); | |||||||||||||
| 4346 | 0 | return $self->recv_testMulti(); | |||||||||||||
| 4347 | } | ||||||||||||||
| 4348 | |||||||||||||||
| 4349 | 0 | ▶ | sub send_testMulti{ | ||||||||||||
|
Subroutine
send_testMulti: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4350 | 0 | my $self = shift; | |||||||||||||
| 4351 | 0 | my $arg0 = shift; | |||||||||||||
| 4352 | 0 | my $arg1 = shift; | |||||||||||||
| 4353 | 0 | my $arg2 = shift; | |||||||||||||
| 4354 | 0 | my $arg3 = shift; | |||||||||||||
| 4355 | 0 | my $arg4 = shift; | |||||||||||||
| 4356 | 0 | my $arg5 = shift; | |||||||||||||
| 4357 | |||||||||||||||
| 4358 | 0 | $self->{output}->writeMessageBegin('testMulti', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4359 | 0 | my $args = ThriftTest::ThriftTest_testMulti_args->new(); | |||||||||||||
| 4360 | 0 | $args->{arg0} = $arg0; | |||||||||||||
| 4361 | 0 | $args->{arg1} = $arg1; | |||||||||||||
| 4362 | 0 | $args->{arg2} = $arg2; | |||||||||||||
| 4363 | 0 | $args->{arg3} = $arg3; | |||||||||||||
| 4364 | 0 | $args->{arg4} = $arg4; | |||||||||||||
| 4365 | 0 | $args->{arg5} = $arg5; | |||||||||||||
| 4366 | 0 | $args->write($self->{output}); | |||||||||||||
| 4367 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4368 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4369 | } | ||||||||||||||
| 4370 | |||||||||||||||
| 4371 | 0 | ▶ | sub recv_testMulti{ | ||||||||||||
|
Subroutine
recv_testMulti: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4372 | 0 | my $self = shift; | |||||||||||||
| 4373 | |||||||||||||||
| 4374 | 0 | my $rseqid = 0; | |||||||||||||
| 4375 | 0 | my $fname; | |||||||||||||
| 4376 | 0 | my $mtype = 0; | |||||||||||||
| 4377 | |||||||||||||||
| 4378 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4379 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4380 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4381 | 0 | $x->read($self->{input}); | |||||||||||||
| 4382 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4383 | 0 | die $x; | |||||||||||||
| 4384 | } | ||||||||||||||
| 4385 | 0 | my $result = ThriftTest::ThriftTest_testMulti_result->new(); | |||||||||||||
| 4386 | 0 | $result->read($self->{input}); | |||||||||||||
| 4387 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4388 | |||||||||||||||
| 4389 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4390 | 0 | return $result->{success}; | |||||||||||||
| 4391 | } | ||||||||||||||
| 4392 | 0 | die "testMulti failed: unknown result"; | |||||||||||||
| 4393 | } | ||||||||||||||
| 4394 | 0 | ▶ | sub testException{ | ||||||||||||
|
Subroutine
testException: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4395 | 0 | my $self = shift; | |||||||||||||
| 4396 | 0 | my $arg = shift; | |||||||||||||
| 4397 | |||||||||||||||
| 4398 | 0 | $self->send_testException($arg); | |||||||||||||
| 4399 | 0 | $self->recv_testException(); | |||||||||||||
| 4400 | } | ||||||||||||||
| 4401 | |||||||||||||||
| 4402 | 0 | ▶ | sub send_testException{ | ||||||||||||
|
Subroutine
send_testException: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4403 | 0 | my $self = shift; | |||||||||||||
| 4404 | 0 | my $arg = shift; | |||||||||||||
| 4405 | |||||||||||||||
| 4406 | 0 | $self->{output}->writeMessageBegin('testException', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4407 | 0 | my $args = ThriftTest::ThriftTest_testException_args->new(); | |||||||||||||
| 4408 | 0 | $args->{arg} = $arg; | |||||||||||||
| 4409 | 0 | $args->write($self->{output}); | |||||||||||||
| 4410 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4411 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4412 | } | ||||||||||||||
| 4413 | |||||||||||||||
| 4414 | 0 | ▶ | sub recv_testException{ | ||||||||||||
|
Subroutine
recv_testException: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4415 | 0 | my $self = shift; | |||||||||||||
| 4416 | |||||||||||||||
| 4417 | 0 | my $rseqid = 0; | |||||||||||||
| 4418 | 0 | my $fname; | |||||||||||||
| 4419 | 0 | my $mtype = 0; | |||||||||||||
| 4420 | |||||||||||||||
| 4421 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4422 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4423 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4424 | 0 | $x->read($self->{input}); | |||||||||||||
| 4425 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4426 | 0 | die $x; | |||||||||||||
| 4427 | } | ||||||||||||||
| 4428 | 0 | my $result = ThriftTest::ThriftTest_testException_result->new(); | |||||||||||||
| 4429 | 0 | $result->read($self->{input}); | |||||||||||||
| 4430 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4431 | |||||||||||||||
| 4432 | 0 | ▶ | if (defined $result->{err1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4433 | 0 | die $result->{err1}; | |||||||||||||
| 4434 | } | ||||||||||||||
| 4435 | 0 | return; | |||||||||||||
| 4436 | } | ||||||||||||||
| 4437 | 0 | ▶ | sub testMultiException{ | ||||||||||||
|
Subroutine
testMultiException: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4438 | 0 | my $self = shift; | |||||||||||||
| 4439 | 0 | my $arg0 = shift; | |||||||||||||
| 4440 | 0 | my $arg1 = shift; | |||||||||||||
| 4441 | |||||||||||||||
| 4442 | 0 | $self->send_testMultiException($arg0, $arg1); | |||||||||||||
| 4443 | 0 | return $self->recv_testMultiException(); | |||||||||||||
| 4444 | } | ||||||||||||||
| 4445 | |||||||||||||||
| 4446 | 0 | ▶ | sub send_testMultiException{ | ||||||||||||
|
Subroutine
send_testMultiException: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4447 | 0 | my $self = shift; | |||||||||||||
| 4448 | 0 | my $arg0 = shift; | |||||||||||||
| 4449 | 0 | my $arg1 = shift; | |||||||||||||
| 4450 | |||||||||||||||
| 4451 | 0 | $self->{output}->writeMessageBegin('testMultiException', Thrift::TMessageType::CALL, $self->{seqid}); | |||||||||||||
| 4452 | 0 | my $args = ThriftTest::ThriftTest_testMultiException_args->new(); | |||||||||||||
| 4453 | 0 | $args->{arg0} = $arg0; | |||||||||||||
| 4454 | 0 | $args->{arg1} = $arg1; | |||||||||||||
| 4455 | 0 | $args->write($self->{output}); | |||||||||||||
| 4456 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4457 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4458 | } | ||||||||||||||
| 4459 | |||||||||||||||
| 4460 | 0 | ▶ | sub recv_testMultiException{ | ||||||||||||
|
Subroutine
recv_testMultiException: not called CC=5 SCAR=34.0
| |||||||||||||||
| 4461 | 0 | my $self = shift; | |||||||||||||
| 4462 | |||||||||||||||
| 4463 | 0 | my $rseqid = 0; | |||||||||||||
| 4464 | 0 | my $fname; | |||||||||||||
| 4465 | 0 | my $mtype = 0; | |||||||||||||
| 4466 | |||||||||||||||
| 4467 | 0 | $self->{input}->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4468 | 0 | ▶ | if ($mtype == Thrift::TMessageType::EXCEPTION) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4469 | 0 | my $x = Thrift::TApplicationException->new(); | |||||||||||||
| 4470 | 0 | $x->read($self->{input}); | |||||||||||||
| 4471 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4472 | 0 | die $x; | |||||||||||||
| 4473 | } | ||||||||||||||
| 4474 | 0 | my $result = ThriftTest::ThriftTest_testMultiException_result->new(); | |||||||||||||
| 4475 | 0 | $result->read($self->{input}); | |||||||||||||
| 4476 | 0 | $self->{input}->readMessageEnd(); | |||||||||||||
| 4477 | |||||||||||||||
| 4478 | 0 | ▶ | if (defined $result->{success} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4479 | 0 | return $result->{success}; | |||||||||||||
| 4480 | } | ||||||||||||||
| 4481 | 0 | ▶ | if (defined $result->{err1}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4482 | 0 | die $result->{err1}; | |||||||||||||
| 4483 | } | ||||||||||||||
| 4484 | 0 | ▶ | if (defined $result->{err2}) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4485 | 0 | die $result->{err2}; | |||||||||||||
| 4486 | } | ||||||||||||||
| 4487 | 0 | die "testMultiException failed: unknown result"; | |||||||||||||
| 4488 | } | ||||||||||||||
| 4489 | 0 | ▶ | sub testOneway{ | ||||||||||||
|
Subroutine
testOneway: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4490 | 0 | my $self = shift; | |||||||||||||
| 4491 | 0 | my $secondsToSleep = shift; | |||||||||||||
| 4492 | |||||||||||||||
| 4493 | 0 | $self->send_testOneway($secondsToSleep); | |||||||||||||
| 4494 | } | ||||||||||||||
| 4495 | |||||||||||||||
| 4496 | 0 | ▶ | sub send_testOneway{ | ||||||||||||
|
Subroutine
send_testOneway: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4497 | 0 | my $self = shift; | |||||||||||||
| 4498 | 0 | my $secondsToSleep = shift; | |||||||||||||
| 4499 | |||||||||||||||
| 4500 | 0 | $self->{output}->writeMessageBegin('testOneway', Thrift::TMessageType::ONEWAY, $self->{seqid}); | |||||||||||||
| 4501 | 0 | my $args = ThriftTest::ThriftTest_testOneway_args->new(); | |||||||||||||
| 4502 | 0 | $args->{secondsToSleep} = $secondsToSleep; | |||||||||||||
| 4503 | 0 | $args->write($self->{output}); | |||||||||||||
| 4504 | 0 | $self->{output}->writeMessageEnd(); | |||||||||||||
| 4505 | 0 | $self->{output}->getTransport()->flush(); | |||||||||||||
| 4506 | } | ||||||||||||||
| 4507 | package ThriftTest::ThriftTestProcessor; | ||||||||||||||
| 4508 | |||||||||||||||
| 4509 | 1 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4510 | |||||||||||||||
| 4511 | |||||||||||||||
| 4512 | 1 | ▶ | sub new { | ||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||
| 4513 | 1 | my ($classname, $handler) = @_; | |||||||||||||
| 4514 | 1 | my $self = {}; | |||||||||||||
| 4515 | 1 | $self->{handler} = $handler; | |||||||||||||
| 4516 | 1 | return bless ($self, $classname); | |||||||||||||
| 4517 | } | ||||||||||||||
| 4518 | |||||||||||||||
| 4519 | 2 | ▶ | sub process { | ||||||||||||
|
Subroutine
process: called CC=2 SCAR=8.9
| |||||||||||||||
| 4520 | 2 | my ($self, $input, $output) = @_; | |||||||||||||
| 4521 | 2 | my $rseqid = 0; | |||||||||||||
| 4522 | 2 | my $fname = undef; | |||||||||||||
| 4523 | 2 | my $mtype = 0; | |||||||||||||
| 4524 | |||||||||||||||
| 4525 | 2 | $input->readMessageBegin(\$fname, \$mtype, \$rseqid); | |||||||||||||
| 4526 | 2 | my $methodname = 'process_'.$fname; | |||||||||||||
| 4527 | 2 | ▶ | if (!$self->can($methodname)) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4528 | 0 | $input->skip(Thrift::TType::STRUCT); | |||||||||||||
| 4529 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4530 | 0 | my $x = Thrift::TApplicationException->new('Function '.$fname.' not implemented.', Thrift::TApplicationException::UNKNOWN_METHOD); | |||||||||||||
| 4531 | 0 | $output->writeMessageBegin($fname, Thrift::TMessageType::EXCEPTION, $rseqid); | |||||||||||||
| 4532 | 0 | $x->write($output); | |||||||||||||
| 4533 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4534 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4535 | 0 | return; | |||||||||||||
| 4536 | } | ||||||||||||||
| 4537 | 2 | $self->$methodname($rseqid, $input, $output); | |||||||||||||
| 4538 | 2 | return 1; | |||||||||||||
| 4539 | } | ||||||||||||||
| 4540 | |||||||||||||||
| 4541 | 0 | ▶ | sub process_testVoid { | ||||||||||||
|
Subroutine
process_testVoid: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4542 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4543 | 0 | my $args = ThriftTest::ThriftTest_testVoid_args->new(); | |||||||||||||
| 4544 | 0 | $args->read($input); | |||||||||||||
| 4545 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4546 | 0 | my $result = ThriftTest::ThriftTest_testVoid_result->new(); | |||||||||||||
| 4547 | 0 | $self->{handler}->testVoid(); | |||||||||||||
| 4548 | 0 | $output->writeMessageBegin('testVoid', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4549 | 0 | $result->write($output); | |||||||||||||
| 4550 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4551 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4552 | } | ||||||||||||||
| 4553 | |||||||||||||||
| 4554 | 2 | ▶ | sub process_testString { | ||||||||||||
|
Subroutine
process_testString: called CC=1 SCAR=0.0
| |||||||||||||||
| 4555 | 2 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4556 | 2 | my $args = ThriftTest::ThriftTest_testString_args->new(); | |||||||||||||
| 4557 | 2 | $args->read($input); | |||||||||||||
| 4558 | 2 | $input->readMessageEnd(); | |||||||||||||
| 4559 | 2 | my $result = ThriftTest::ThriftTest_testString_result->new(); | |||||||||||||
| 4560 | 2 | $result->{success} = $self->{handler}->testString($args->thing); | |||||||||||||
| 4561 | 2 | $output->writeMessageBegin('testString', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4562 | 2 | $result->write($output); | |||||||||||||
| 4563 | 2 | $output->writeMessageEnd(); | |||||||||||||
| 4564 | 2 | $output->getTransport()->flush(); | |||||||||||||
| 4565 | } | ||||||||||||||
| 4566 | |||||||||||||||
| 4567 | 0 | ▶ | sub process_testBool { | ||||||||||||
|
Subroutine
process_testBool: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4568 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4569 | 0 | my $args = ThriftTest::ThriftTest_testBool_args->new(); | |||||||||||||
| 4570 | 0 | $args->read($input); | |||||||||||||
| 4571 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4572 | 0 | my $result = ThriftTest::ThriftTest_testBool_result->new(); | |||||||||||||
| 4573 | 0 | $result->{success} = $self->{handler}->testBool($args->thing); | |||||||||||||
| 4574 | 0 | $output->writeMessageBegin('testBool', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4575 | 0 | $result->write($output); | |||||||||||||
| 4576 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4577 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4578 | } | ||||||||||||||
| 4579 | |||||||||||||||
| 4580 | 0 | ▶ | sub process_testByte { | ||||||||||||
|
Subroutine
process_testByte: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4581 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4582 | 0 | my $args = ThriftTest::ThriftTest_testByte_args->new(); | |||||||||||||
| 4583 | 0 | $args->read($input); | |||||||||||||
| 4584 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4585 | 0 | my $result = ThriftTest::ThriftTest_testByte_result->new(); | |||||||||||||
| 4586 | 0 | $result->{success} = $self->{handler}->testByte($args->thing); | |||||||||||||
| 4587 | 0 | $output->writeMessageBegin('testByte', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4588 | 0 | $result->write($output); | |||||||||||||
| 4589 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4590 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4591 | } | ||||||||||||||
| 4592 | |||||||||||||||
| 4593 | 0 | ▶ | sub process_testI32 { | ||||||||||||
|
Subroutine
process_testI32: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4594 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4595 | 0 | my $args = ThriftTest::ThriftTest_testI32_args->new(); | |||||||||||||
| 4596 | 0 | $args->read($input); | |||||||||||||
| 4597 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4598 | 0 | my $result = ThriftTest::ThriftTest_testI32_result->new(); | |||||||||||||
| 4599 | 0 | $result->{success} = $self->{handler}->testI32($args->thing); | |||||||||||||
| 4600 | 0 | $output->writeMessageBegin('testI32', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4601 | 0 | $result->write($output); | |||||||||||||
| 4602 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4603 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4604 | } | ||||||||||||||
| 4605 | |||||||||||||||
| 4606 | 0 | ▶ | sub process_testI64 { | ||||||||||||
|
Subroutine
process_testI64: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4607 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4608 | 0 | my $args = ThriftTest::ThriftTest_testI64_args->new(); | |||||||||||||
| 4609 | 0 | $args->read($input); | |||||||||||||
| 4610 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4611 | 0 | my $result = ThriftTest::ThriftTest_testI64_result->new(); | |||||||||||||
| 4612 | 0 | $result->{success} = $self->{handler}->testI64($args->thing); | |||||||||||||
| 4613 | 0 | $output->writeMessageBegin('testI64', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4614 | 0 | $result->write($output); | |||||||||||||
| 4615 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4616 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4617 | } | ||||||||||||||
| 4618 | |||||||||||||||
| 4619 | 0 | ▶ | sub process_testDouble { | ||||||||||||
|
Subroutine
process_testDouble: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4620 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4621 | 0 | my $args = ThriftTest::ThriftTest_testDouble_args->new(); | |||||||||||||
| 4622 | 0 | $args->read($input); | |||||||||||||
| 4623 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4624 | 0 | my $result = ThriftTest::ThriftTest_testDouble_result->new(); | |||||||||||||
| 4625 | 0 | $result->{success} = $self->{handler}->testDouble($args->thing); | |||||||||||||
| 4626 | 0 | $output->writeMessageBegin('testDouble', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4627 | 0 | $result->write($output); | |||||||||||||
| 4628 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4629 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4630 | } | ||||||||||||||
| 4631 | |||||||||||||||
| 4632 | 0 | ▶ | sub process_testBinary { | ||||||||||||
|
Subroutine
process_testBinary: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4633 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4634 | 0 | my $args = ThriftTest::ThriftTest_testBinary_args->new(); | |||||||||||||
| 4635 | 0 | $args->read($input); | |||||||||||||
| 4636 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4637 | 0 | my $result = ThriftTest::ThriftTest_testBinary_result->new(); | |||||||||||||
| 4638 | 0 | $result->{success} = $self->{handler}->testBinary($args->thing); | |||||||||||||
| 4639 | 0 | $output->writeMessageBegin('testBinary', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4640 | 0 | $result->write($output); | |||||||||||||
| 4641 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4642 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4643 | } | ||||||||||||||
| 4644 | |||||||||||||||
| 4645 | 0 | ▶ | sub process_testStruct { | ||||||||||||
|
Subroutine
process_testStruct: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4646 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4647 | 0 | my $args = ThriftTest::ThriftTest_testStruct_args->new(); | |||||||||||||
| 4648 | 0 | $args->read($input); | |||||||||||||
| 4649 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4650 | 0 | my $result = ThriftTest::ThriftTest_testStruct_result->new(); | |||||||||||||
| 4651 | 0 | $result->{success} = $self->{handler}->testStruct($args->thing); | |||||||||||||
| 4652 | 0 | $output->writeMessageBegin('testStruct', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4653 | 0 | $result->write($output); | |||||||||||||
| 4654 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4655 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4656 | } | ||||||||||||||
| 4657 | |||||||||||||||
| 4658 | 0 | ▶ | sub process_testNest { | ||||||||||||
|
Subroutine
process_testNest: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4659 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4660 | 0 | my $args = ThriftTest::ThriftTest_testNest_args->new(); | |||||||||||||
| 4661 | 0 | $args->read($input); | |||||||||||||
| 4662 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4663 | 0 | my $result = ThriftTest::ThriftTest_testNest_result->new(); | |||||||||||||
| 4664 | 0 | $result->{success} = $self->{handler}->testNest($args->thing); | |||||||||||||
| 4665 | 0 | $output->writeMessageBegin('testNest', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4666 | 0 | $result->write($output); | |||||||||||||
| 4667 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4668 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4669 | } | ||||||||||||||
| 4670 | |||||||||||||||
| 4671 | 0 | ▶ | sub process_testMap { | ||||||||||||
|
Subroutine
process_testMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4672 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4673 | 0 | my $args = ThriftTest::ThriftTest_testMap_args->new(); | |||||||||||||
| 4674 | 0 | $args->read($input); | |||||||||||||
| 4675 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4676 | 0 | my $result = ThriftTest::ThriftTest_testMap_result->new(); | |||||||||||||
| 4677 | 0 | $result->{success} = $self->{handler}->testMap($args->thing); | |||||||||||||
| 4678 | 0 | $output->writeMessageBegin('testMap', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4679 | 0 | $result->write($output); | |||||||||||||
| 4680 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4681 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4682 | } | ||||||||||||||
| 4683 | |||||||||||||||
| 4684 | 0 | ▶ | sub process_testStringMap { | ||||||||||||
|
Subroutine
process_testStringMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4685 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4686 | 0 | my $args = ThriftTest::ThriftTest_testStringMap_args->new(); | |||||||||||||
| 4687 | 0 | $args->read($input); | |||||||||||||
| 4688 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4689 | 0 | my $result = ThriftTest::ThriftTest_testStringMap_result->new(); | |||||||||||||
| 4690 | 0 | $result->{success} = $self->{handler}->testStringMap($args->thing); | |||||||||||||
| 4691 | 0 | $output->writeMessageBegin('testStringMap', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4692 | 0 | $result->write($output); | |||||||||||||
| 4693 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4694 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4695 | } | ||||||||||||||
| 4696 | |||||||||||||||
| 4697 | 0 | ▶ | sub process_testSet { | ||||||||||||
|
Subroutine
process_testSet: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4698 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4699 | 0 | my $args = ThriftTest::ThriftTest_testSet_args->new(); | |||||||||||||
| 4700 | 0 | $args->read($input); | |||||||||||||
| 4701 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4702 | 0 | my $result = ThriftTest::ThriftTest_testSet_result->new(); | |||||||||||||
| 4703 | 0 | $result->{success} = $self->{handler}->testSet($args->thing); | |||||||||||||
| 4704 | 0 | $output->writeMessageBegin('testSet', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4705 | 0 | $result->write($output); | |||||||||||||
| 4706 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4707 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4708 | } | ||||||||||||||
| 4709 | |||||||||||||||
| 4710 | 0 | ▶ | sub process_testList { | ||||||||||||
|
Subroutine
process_testList: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4711 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4712 | 0 | my $args = ThriftTest::ThriftTest_testList_args->new(); | |||||||||||||
| 4713 | 0 | $args->read($input); | |||||||||||||
| 4714 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4715 | 0 | my $result = ThriftTest::ThriftTest_testList_result->new(); | |||||||||||||
| 4716 | 0 | $result->{success} = $self->{handler}->testList($args->thing); | |||||||||||||
| 4717 | 0 | $output->writeMessageBegin('testList', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4718 | 0 | $result->write($output); | |||||||||||||
| 4719 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4720 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4721 | } | ||||||||||||||
| 4722 | |||||||||||||||
| 4723 | 0 | ▶ | sub process_testEnum { | ||||||||||||
|
Subroutine
process_testEnum: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4724 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4725 | 0 | my $args = ThriftTest::ThriftTest_testEnum_args->new(); | |||||||||||||
| 4726 | 0 | $args->read($input); | |||||||||||||
| 4727 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4728 | 0 | my $result = ThriftTest::ThriftTest_testEnum_result->new(); | |||||||||||||
| 4729 | 0 | $result->{success} = $self->{handler}->testEnum($args->thing); | |||||||||||||
| 4730 | 0 | $output->writeMessageBegin('testEnum', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4731 | 0 | $result->write($output); | |||||||||||||
| 4732 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4733 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4734 | } | ||||||||||||||
| 4735 | |||||||||||||||
| 4736 | 0 | ▶ | sub process_testTypedef { | ||||||||||||
|
Subroutine
process_testTypedef: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4737 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4738 | 0 | my $args = ThriftTest::ThriftTest_testTypedef_args->new(); | |||||||||||||
| 4739 | 0 | $args->read($input); | |||||||||||||
| 4740 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4741 | 0 | my $result = ThriftTest::ThriftTest_testTypedef_result->new(); | |||||||||||||
| 4742 | 0 | $result->{success} = $self->{handler}->testTypedef($args->thing); | |||||||||||||
| 4743 | 0 | $output->writeMessageBegin('testTypedef', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4744 | 0 | $result->write($output); | |||||||||||||
| 4745 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4746 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4747 | } | ||||||||||||||
| 4748 | |||||||||||||||
| 4749 | 0 | ▶ | sub process_testMapMap { | ||||||||||||
|
Subroutine
process_testMapMap: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4750 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4751 | 0 | my $args = ThriftTest::ThriftTest_testMapMap_args->new(); | |||||||||||||
| 4752 | 0 | $args->read($input); | |||||||||||||
| 4753 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4754 | 0 | my $result = ThriftTest::ThriftTest_testMapMap_result->new(); | |||||||||||||
| 4755 | 0 | $result->{success} = $self->{handler}->testMapMap($args->hello); | |||||||||||||
| 4756 | 0 | $output->writeMessageBegin('testMapMap', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4757 | 0 | $result->write($output); | |||||||||||||
| 4758 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4759 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4760 | } | ||||||||||||||
| 4761 | |||||||||||||||
| 4762 | 0 | ▶ | sub process_testInsanity { | ||||||||||||
|
Subroutine
process_testInsanity: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4763 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4764 | 0 | my $args = ThriftTest::ThriftTest_testInsanity_args->new(); | |||||||||||||
| 4765 | 0 | $args->read($input); | |||||||||||||
| 4766 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4767 | 0 | my $result = ThriftTest::ThriftTest_testInsanity_result->new(); | |||||||||||||
| 4768 | 0 | $result->{success} = $self->{handler}->testInsanity($args->argument); | |||||||||||||
| 4769 | 0 | $output->writeMessageBegin('testInsanity', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4770 | 0 | $result->write($output); | |||||||||||||
| 4771 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4772 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4773 | } | ||||||||||||||
| 4774 | |||||||||||||||
| 4775 | 0 | ▶ | sub process_testMulti { | ||||||||||||
|
Subroutine
process_testMulti: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4776 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4777 | 0 | my $args = ThriftTest::ThriftTest_testMulti_args->new(); | |||||||||||||
| 4778 | 0 | $args->read($input); | |||||||||||||
| 4779 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4780 | 0 | my $result = ThriftTest::ThriftTest_testMulti_result->new(); | |||||||||||||
| 4781 | 0 | $result->{success} = $self->{handler}->testMulti($args->arg0, $args->arg1, $args->arg2, $args->arg3, $args->arg4, $args->arg5); | |||||||||||||
| 4782 | 0 | $output->writeMessageBegin('testMulti', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4783 | 0 | $result->write($output); | |||||||||||||
| 4784 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4785 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4786 | } | ||||||||||||||
| 4787 | |||||||||||||||
| 4788 | 0 | ▶ | sub process_testException { | ||||||||||||
|
Subroutine
process_testException: not called CC=3 SCAR=24.8
| |||||||||||||||
| 4789 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4790 | 0 | my $args = ThriftTest::ThriftTest_testException_args->new(); | |||||||||||||
| 4791 | 0 | $args->read($input); | |||||||||||||
| 4792 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4793 | 0 | my $result = ThriftTest::ThriftTest_testException_result->new(); | |||||||||||||
| 4794 | 0 | eval { | |||||||||||||
| 4795 | 0 | $self->{handler}->testException($args->arg); | |||||||||||||
| 4796 | 0 | ▶ | }; if( UNIVERSAL::isa($@,'ThriftTest::Xception') ){ | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4797 | 0 | $result->{err1} = $@; | |||||||||||||
| 4798 | 0 | $@ = undef; | |||||||||||||
| 4799 | } | ||||||||||||||
| 4800 | 0 | ▶ | if ($@) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4801 | 0 | $@ =~ s/^\s+|\s+$//g; | |||||||||||||
| 4802 | 0 | my $err = Thrift::TApplicationException->new("Unexpected Exception: " . $@, Thrift::TApplicationException::INTERNAL_ERROR); | |||||||||||||
| 4803 | 0 | $output->writeMessageBegin('testException', Thrift::TMessageType::EXCEPTION, $seqid); | |||||||||||||
| 4804 | 0 | $err->write($output); | |||||||||||||
| 4805 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4806 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4807 | 0 | $@ = undef; | |||||||||||||
| 4808 | 0 | return; | |||||||||||||
| 4809 | } | ||||||||||||||
| 4810 | 0 | $output->writeMessageBegin('testException', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4811 | 0 | $result->write($output); | |||||||||||||
| 4812 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4813 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4814 | } | ||||||||||||||
| 4815 | |||||||||||||||
| 4816 | 0 | ▶ | sub process_testMultiException { | ||||||||||||
|
Subroutine
process_testMultiException: not called CC=4 SCAR=30.0
| |||||||||||||||
| 4817 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4818 | 0 | my $args = ThriftTest::ThriftTest_testMultiException_args->new(); | |||||||||||||
| 4819 | 0 | $args->read($input); | |||||||||||||
| 4820 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4821 | 0 | my $result = ThriftTest::ThriftTest_testMultiException_result->new(); | |||||||||||||
| 4822 | 0 | eval { | |||||||||||||
| 4823 | 0 | $result->{success} = $self->{handler}->testMultiException($args->arg0, $args->arg1); | |||||||||||||
| 4824 | 0 | ▶ | }; if( UNIVERSAL::isa($@,'ThriftTest::Xception') ){ | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4825 | 0 | $result->{err1} = $@; | |||||||||||||
| 4826 | 0 | $@ = undef; | |||||||||||||
| 4827 | 0 | ▶ | }; if( UNIVERSAL::isa($@,'ThriftTest::Xception2') ){ | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4828 | 0 | $result->{err2} = $@; | |||||||||||||
| 4829 | 0 | $@ = undef; | |||||||||||||
| 4830 | } | ||||||||||||||
| 4831 | 0 | ▶ | if ($@) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 4832 | 0 | $@ =~ s/^\s+|\s+$//g; | |||||||||||||
| 4833 | 0 | my $err = Thrift::TApplicationException->new("Unexpected Exception: " . $@, Thrift::TApplicationException::INTERNAL_ERROR); | |||||||||||||
| 4834 | 0 | $output->writeMessageBegin('testMultiException', Thrift::TMessageType::EXCEPTION, $seqid); | |||||||||||||
| 4835 | 0 | $err->write($output); | |||||||||||||
| 4836 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4837 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4838 | 0 | $@ = undef; | |||||||||||||
| 4839 | 0 | return; | |||||||||||||
| 4840 | } | ||||||||||||||
| 4841 | 0 | $output->writeMessageBegin('testMultiException', Thrift::TMessageType::REPLY, $seqid); | |||||||||||||
| 4842 | 0 | $result->write($output); | |||||||||||||
| 4843 | 0 | $output->writeMessageEnd(); | |||||||||||||
| 4844 | 0 | $output->getTransport()->flush(); | |||||||||||||
| 4845 | } | ||||||||||||||
| 4846 | |||||||||||||||
| 4847 | 0 | ▶ | sub process_testOneway { | ||||||||||||
|
Subroutine
process_testOneway: not called CC=1 SCAR=6.9
| |||||||||||||||
| 4848 | 0 | my ($self, $seqid, $input, $output) = @_; | |||||||||||||
| 4849 | 0 | my $args = ThriftTest::ThriftTest_testOneway_args->new(); | |||||||||||||
| 4850 | 0 | $args->read($input); | |||||||||||||
| 4851 | 0 | $input->readMessageEnd(); | |||||||||||||
| 4852 | 0 | $self->{handler}->testOneway($args->secondsToSleep); | |||||||||||||
| 4853 | 0 | return; | |||||||||||||
| 4854 | } | ||||||||||||||
| 4855 | 1 | 1; | |||||||||||||