t/typemap/container.xsi

filter: Statementstmt 100% 6 / 6 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 75.0% 9 / 12 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« src/xs/typemap/containers.h ↑ Summary t/typemap/typemap_xsgen.cc »
1 MODE: INLINE
2 #include <vector>
3 #include <map>
4  
5 using MapStringInt = std::map<std::string, int>;
6 using MapIntBool = std::map<int, bool>;
7  
8 MODULE = MyTest::Typemap PACKAGE = MyTest::Container
9 PROTOTYPES: DISABLE
10  
11 std::vector<int> std_vector_int(std::vector<int> val) {
12 1 RETVAL = val;
13 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
14  
15 MapStringInt std_map_string_int(MapStringInt val) {
16 1 RETVAL = val;
17 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
18  
19 MapIntBool std_map_int_bool(MapIntBool val){
20 1 RETVAL = val;
21 1 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 1 0 1
« src/xs/typemap/containers.h ↑ Summary t/typemap/typemap_xsgen.cc »