File Coverage

blib/lib/FFI/Platypus/Lang/V.pm
Criterion Covered Total %
statement 14 16 87.5
branch n/a
condition 0 2 0.0
subroutine 5 6 83.3
pod 1 1 100.0
total 20 25 80.0


line stmt bran cond sub pod time code
1 1     1   228812 use warnings;
  1         3  
  1         67  
2 1     1   21 use 5.020;
  1         5  
3 1     1   577 use experimental qw( signatures );
  1         5042  
  1         7  
4 1     1   810 use stable qw( postderef );
  1         510  
  1         7  
5 1     1   634 use true;
  1         10191  
  1         6  
6              
7             package FFI::Platypus::Lang::V 0.03 {
8              
9             # ABSTRACT: Documentation and tools for using Platypus with the V programming language
10              
11              
12             # https://docs.vlang.io/v-types.html#primitive-types
13             sub native_type_map {
14 0     0 1   state $map;
15 0   0       return $map //= {
16             u8 => 'uint8',
17             u16 => 'uint16',
18             u32 => 'uint32',
19             u64 => 'uint64',
20             i8 => 'sint8',
21             i16 => 'sint16',
22             i32 => 'sint32',
23             i64 => 'sint64',
24             f32 => 'float',
25             f64 => 'double',
26             };
27             }
28             }
29              
30             __END__