File Coverage

blib/lib/Thrift/Type.pm
Criterion Covered Total %
statement 65 65 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod n/a
total 87 87 100.0


line stmt bran cond sub pod time code
1             #
2             # Licensed to the Apache Software Foundation (ASF) under one
3             # or more contributor license agreements. See the NOTICE file
4             # distributed with this work for additional information
5             # regarding copyright ownership. The ASF licenses this file
6             # to you under the Apache License, Version 2.0 (the
7             # "License"); you may not use this file except in compliance
8             # with the License. You may obtain a copy of the License at
9             #
10             # http://www.apache.org/licenses/LICENSE-2.0
11             #
12             # Unless required by applicable law or agreed to in writing,
13             # software distributed under the License is distributed on an
14             # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15             # KIND, either express or implied. See the License for the
16             # specific language governing permissions and limitations
17             # under the License.
18             #
19              
20 3     3   29 use 5.10.0;
  3         8  
21 3     3   12 use strict;
  3         4  
  3         62  
22 3     3   29 use warnings;
  3         4  
  3         72  
23              
24 3     3   12 use Thrift;
  3         13  
  3         90  
25              
26             #
27             # Data types that can be sent via Thrift
28             #
29             package Thrift::TType;
30 3     3   13 use version 0.77; our $VERSION = version->declare("$Thrift::VERSION");
  3         43  
  3         15  
31              
32 3     3   273 use constant STOP => 0;
  3         6  
  3         160  
33 3     3   17 use constant VOID => 1;
  3         32  
  3         144  
34 3     3   15 use constant BOOL => 2;
  3         5  
  3         112  
35 3     3   14 use constant BYTE => 3;
  3         3  
  3         124  
36 3     3   15 use constant I08 => 3;
  3         4  
  3         116  
37 3     3   15 use constant DOUBLE => 4;
  3         3  
  3         121  
38 3     3   14 use constant I16 => 6;
  3         9  
  3         107  
39 3     3   19 use constant I32 => 8;
  3         5  
  3         191  
40 3     3   16 use constant I64 => 10;
  3         6  
  3         125  
41 3     3   15 use constant STRING => 11;
  3         3  
  3         124  
42 3     3   30 use constant UTF7 => 11;
  3         6  
  3         149  
43 3     3   16 use constant STRUCT => 12;
  3         5  
  3         112  
44 3     3   14 use constant MAP => 13;
  3         11  
  3         114  
45 3     3   13 use constant SET => 14;
  3         4  
  3         110  
46 3     3   15 use constant LIST => 15;
  3         4  
  3         124  
47 3     3   15 use constant UTF8 => 16;
  3         12  
  3         127  
48 3     3   16 use constant UTF16 => 17;
  3         4  
  3         124  
49              
50             1;