Branch Coverage

blib/lib/Thrift/JSONProtocol.pm
Criterion Covered Total %
branch 16 112 14.2


line true false branch
107 2 0 if (my $typeName = $_getTypeNameForTypeID{$typeID})
117 0 0 if (int @name > 1)
118 0 0 if ($name[0] eq 'd') { }
0 0 elsif ($name[0] eq 'i') { }
0 0 elsif ($name[0] eq 'l') { }
0 0 elsif ($name[0] eq 'm') { }
0 0 elsif ($name[0] eq 'r') { }
0 0 elsif ($name[0] eq 's') { }
0 0 elsif ($name[0] eq 't') { }
120 0 0 if ($name[1] eq '8') { }
0 0 elsif ($name[1] eq '1') { }
0 0 elsif ($name[1] eq '3') { }
0 0 elsif ($name[1] eq '6') { }
129 0 0 if ($name[1] eq 't') { }
0 0 elsif ($name[1] eq 'e') { }
134 0 0 if ($result == 0)
143 8 0 unless utf8::is_utf8($$string_ref)
174 0 0 if ($got ne $expected)
205 9 0 if (($ord & 255) >= 48) { }
206 0 9 if ($b[$i] eq '\\') { }
215 0 0 if ($tmp eq '1') { }
0 0 elsif ($tmp eq '0') { }
240 0 0 unless $skipContext
249 0 0 if ($ch eq '"')
252 0 0 if ($ch eq substr('\\u00', 0, 1))
255 0 0 if ($ch eq substr('\\u00', 1, 1)) { }
264 0 0 if ($off == -1)
287 2 5 if $escapeNum
289 2 5 if $escapeNum
296 0 0 $char =~ /^[-+.0-9Ee]$/ ? :
309 0 0 if (my $ex = $@)
310 0 0 if ($ex->isa('TTransportException') and $$ex{'code'} == 4)
315 0 0 unless (isJSONNumeric($ch))
332 0 0 if $escapeNum
334 0 0 if $escapeNum
348 0 0 $str =~ /^-?(N|I)/ ? :
351 0 0 if $escapeNum
353 0 0 if $escapeNum
364 0 0 if ($self->reader_->peek eq '"') { }
367 0 0 $str =~ /^-?(N|I)/ ? :
368 0 0 unless ($self->context_->escapeNum or $special)
378 0 0 if ($self->context_->escapeNum)
499 0 0 if ($version != 1)
553 0 0 if ($ch eq '}') { }
670 0 0 $b ? :
676 0 0 $$b ? :
813 1 4 if ($self->first_) { }
825 0 0 if ($self->first_) { }
861 3 5 if ($self->first_) { }
867 4 1 $self->colon_ ? :
869 4 1 $self->colon_ ? :
877 0 0 if ($self->first_) { }
883 0 0 $self->colon_ ? :
885 0 0 $self->colon_ ? :
916 0 0 if ($self->hasData_) { }
929 0 0 unless ($self->hasData_)