blib/lib/FFI/Platypus/Lang/V.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 77.7% 21 / 27 CC 2 SCAR 8.9
CC
2
Cov
79%
native_type_map
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« blib/lib/FFI/Build/File/VMod.pm ↑ Summary
1 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use experimental qw( signatures );
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use stable qw( postderef );
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use true;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 package FFI::Platypus::Lang::V 0.04 {
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 0 ▶ sub native_type_map {
Subroutine native_type_map: not called CC=2 SCAR=17.9
Pod documented
14 0 state $map;
15 0 ▶ return $map //= {
Condition0%0/2
$map //= {"u8", "uint8", "u16", "uint16", "u32", "uint32", "u64", "uint64", "i8", "sint8", "i16", "sint16", "i32", "sint32", "i64", "sint64", "f32", "float", "f64", "double"}
l!l
00
MC/DC0%0/1
$map //= {"u8", "uint8", "u16", "uint16", "u32", "uint32", "u64", "uint64", "i8", "sint8", "i16", "sint16", "i32", "sint32", "i64", "sint64", "f32", "float", "f64", "double"}
$map
Truth table0%0/2
A
A= $map
Aresult
11
00
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__
« blib/lib/FFI/Build/File/VMod.pm ↑ Summary