Branch Coverage

blib/lib/Thrift/Parser.pm
Criterion Covered Total %
branch 27 62 43.5


line true false branch
100 1 3 if $service->name ne $service_name
101 0 3 if ($basename)
102 0 0 if $$service{'header'}{'basename'} ne $basename
108 1 3 unless ($found_service)
109 0 1 $basename ? :
110 0 1 $$_{'header'}{'basename'} ? :
118 3 0 $namespace ? :
128 0 3 if ($service->extends)
159 2 0 defined $namespace ? :
1 1 $struct->isa('Thrift::IDL::Exception') ? :
169 1 0 defined $namespace ? :
179 3 0 defined $namespace ? :
197 0 9 if $@
228 0 1 unless ($idl)
233 1 0 if ($meta{'type'} == 1 or $meta{'type'} == 4) { }
0 0 elsif ($meta{'type'} == 2) { }
0 0 elsif ($meta{'type'} == 3) { }
286 0 0 if ($format eq 'pod') { }
0 0 elsif ($format eq 'pm') { }
294 0 0 if ($ignore_existing and -f $filename)
301 0 0 unless -d $base_path or mkpath($base_path)
303 0 0 unless open my $podfh, '>', $filename
337 1 2 if $meta{'type'} == 0
344 2 0 $meta{'idl'} ? :
369 2 0 if ($$meta{'idl'}) { }
375 0 0 unless (defined $type_name)
382 0 2 if ($typed_value->can('read'))
388 2 0 if ($input->can($read_method)) { }
410 3 5 if ($type->isa('Thrift::IDL::Type::Custom')) { }
412 0 3 unless ($referenced_type)
416 3 0 defined $namespace ? :