Branch Coverage

t/typemap/ref.cc
Criterion Covered Total %
branch 181 406 44.5


line true false branch
41 1 0 static RefOnly& in (const Simple& arg) { static RefOnly r(""); r.s = arg.as_string() + "iR&"; return r; }
1 0 static RefOnly& in (const Simple& arg) { static RefOnly r(""); r.s = arg.as_string() + "iR&"; return r; }
1 0 static RefOnly& in (const Simple& arg) { static RefOnly r(""); r.s = arg.as_string() + "iR&"; return r; }
1 0 static RefOnly& in (const Simple& arg) { static RefOnly r(""); r.s = arg.as_string() + "iR&"; return r; }
1 0 static RefOnly& in (const Simple& arg) { static RefOnly r(""); r.s = arg.as_string() + "iR&"; return r; }
0 0 static RefOnly& in (const Simple& arg) { static RefOnly r(""); r.s = arg.as_string() + "iR&"; return r; }
42 1 0 static Sv out (RefOnly& v, const Sv& = {}) { return Simple(v.s + "oR&"); }
46 2 0 static ValOnly in (const Simple& arg) { return ValOnly(arg.as_string() + "iV"); }
2 0 static ValOnly in (const Simple& arg) { return ValOnly(arg.as_string() + "iV"); }
47 2 0 static Sv out (const ValOnly& v, const Sv& = {}) { return Simple(v.s + "oV"); }
51 1 0 static RefAndVal in (const Simple& arg) { return RefAndVal(arg.as_string() + "iRV"); }
1 0 static RefAndVal in (const Simple& arg) { return RefAndVal(arg.as_string() + "iRV"); }
52 1 0 static Sv out (const RefAndVal& v, const Sv& = {}) { return Simple(v.s + "oRV"); }
55 1 0 static RefAndVal& in (const Simple& arg) { static RefAndVal r(""); r.s = arg.as_string() + "iRV&"; return r; }
1 0 static RefAndVal& in (const Simple& arg) { static RefAndVal r(""); r.s = arg.as_string() + "iRV&"; return r; }
1 0 static RefAndVal& in (const Simple& arg) { static RefAndVal r(""); r.s = arg.as_string() + "iRV&"; return r; }
1 0 static RefAndVal& in (const Simple& arg) { static RefAndVal r(""); r.s = arg.as_string() + "iRV&"; return r; }
1 0 static RefAndVal& in (const Simple& arg) { static RefAndVal r(""); r.s = arg.as_string() + "iRV&"; return r; }
0 0 static RefAndVal& in (const Simple& arg) { static RefAndVal r(""); r.s = arg.as_string() + "iRV&"; return r; }
56 1 0 static Sv out (RefAndVal& v, const Sv& = {}) { return Simple(v.s + "oRV&"); }
60 1 1 static PtrOnly* in (const Simple& arg) { static PtrOnly r(""); r.s = arg.as_string() + "iP*"; return &r; }
1 0 static PtrOnly* in (const Simple& arg) { static PtrOnly r(""); r.s = arg.as_string() + "iP*"; return &r; }
1 0 static PtrOnly* in (const Simple& arg) { static PtrOnly r(""); r.s = arg.as_string() + "iP*"; return &r; }
2 0 static PtrOnly* in (const Simple& arg) { static PtrOnly r(""); r.s = arg.as_string() + "iP*"; return &r; }
2 0 static PtrOnly* in (const Simple& arg) { static PtrOnly r(""); r.s = arg.as_string() + "iP*"; return &r; }
0 0 static PtrOnly* in (const Simple& arg) { static PtrOnly r(""); r.s = arg.as_string() + "iP*"; return &r; }
61 2 0 static Sv out (PtrOnly* v, const Sv& = {}) { return Simple(v->s + "oP*"); }
65 1 0 static PtrAndVal in (const Simple& arg) { return PtrAndVal(arg.as_string() + "iPV"); }
1 0 static PtrAndVal in (const Simple& arg) { return PtrAndVal(arg.as_string() + "iPV"); }
66 1 0 static Sv out (const PtrAndVal& v, const Sv& = {}) { return Simple(v.s + "oPV"); }
69 1 1 static PtrAndVal* in (const Simple& arg) { static PtrAndVal r(""); r.s = arg.as_string() + "iPV*"; return &r; }
1 0 static PtrAndVal* in (const Simple& arg) { static PtrAndVal r(""); r.s = arg.as_string() + "iPV*"; return &r; }
1 0 static PtrAndVal* in (const Simple& arg) { static PtrAndVal r(""); r.s = arg.as_string() + "iPV*"; return &r; }
2 0 static PtrAndVal* in (const Simple& arg) { static PtrAndVal r(""); r.s = arg.as_string() + "iPV*"; return &r; }
2 0 static PtrAndVal* in (const Simple& arg) { static PtrAndVal r(""); r.s = arg.as_string() + "iPV*"; return &r; }
0 0 static PtrAndVal* in (const Simple& arg) { static PtrAndVal r(""); r.s = arg.as_string() + "iPV*"; return &r; }
70 2 0 static Sv out (PtrAndVal* v, const Sv& = {}) { return Simple(v->s + "oPV*"); }
74 1 0 static RefAndPtr& in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP&"; return r; }
1 0 static RefAndPtr& in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP&"; return r; }
1 0 static RefAndPtr& in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP&"; return r; }
1 0 static RefAndPtr& in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP&"; return r; }
1 0 static RefAndPtr& in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP&"; return r; }
0 0 static RefAndPtr& in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP&"; return r; }
75 1 0 static Sv out (RefAndPtr& v, const Sv& = {}) { return Simple(v.s + "oRP&"); }
78 1 0 static RefAndPtr* in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP*"; return &r; }
1 0 static RefAndPtr* in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP*"; return &r; }
1 0 static RefAndPtr* in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP*"; return &r; }
1 0 static RefAndPtr* in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP*"; return &r; }
1 0 static RefAndPtr* in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP*"; return &r; }
0 0 static RefAndPtr* in (const Simple& arg) { static RefAndPtr r(""); r.s = arg.as_string() + "iRP*"; return &r; }
79 1 0 static Sv out (RefAndPtr* v, const Sv& = {}) { return Simple(v->s + "oRP*"); }
84 6 0 SECTION("ref only") {
6 0 SECTION("ref only") {
6 0 SECTION("ref only") {
6 0 SECTION("ref only") {
1 5 SECTION("ref only") {
85 1 0 auto ret = out(in(Sv()));
1 0 auto ret = out(in(Sv()));
86 1 0 CHECK(Simple(ret) == "iR&oR&");
1 0 CHECK(Simple(ret) == "iR&oR&");
1 0 CHECK(Simple(ret) == "iR&oR&");
1 0 CHECK(Simple(ret) == "iR&oR&");
1 0 CHECK(Simple(ret) == "iR&oR&");
1 0 CHECK(Simple(ret) == "iR&oR&");
0 0 CHECK(Simple(ret) == "iR&oR&");
0 0 CHECK(Simple(ret) == "iR&oR&");
88 6 0 SECTION("val only") {
6 0 SECTION("val only") {
6 0 SECTION("val only") {
6 0 SECTION("val only") {
1 5 SECTION("val only") {
89 1 0 auto ret = out(in(Sv()));
1 0 auto ret = out(in(Sv()));
90 1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
0 0 CHECK(Simple(ret) == "iVoV");
0 0 CHECK(Simple(ret) == "iVoV");
91 1 0 ret = out(in(Sv()));
1 0 ret = out(in(Sv()));
92 1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
1 0 CHECK(Simple(ret) == "iVoV");
0 0 CHECK(Simple(ret) == "iVoV");
0 0 CHECK(Simple(ret) == "iVoV");
94 6 0 SECTION("ref and val") {
6 0 SECTION("ref and val") {
6 0 SECTION("ref and val") {
6 0 SECTION("ref and val") {
1 5 SECTION("ref and val") {
95 1 0 auto ret = out(in(Sv()));
1 0 auto ret = out(in(Sv()));
96 1 0 CHECK(Simple(ret) == "iRVoRV");
1 0 CHECK(Simple(ret) == "iRVoRV");
1 0 CHECK(Simple(ret) == "iRVoRV");
1 0 CHECK(Simple(ret) == "iRVoRV");
1 0 CHECK(Simple(ret) == "iRVoRV");
1 0 CHECK(Simple(ret) == "iRVoRV");
0 0 CHECK(Simple(ret) == "iRVoRV");
0 0 CHECK(Simple(ret) == "iRVoRV");
97 1 0 ret = out(in(Sv()));
1 0 ret = out(in(Sv()));
98 1 0 CHECK(Simple(ret) == "iRV&oRV&");
1 0 CHECK(Simple(ret) == "iRV&oRV&");
1 0 CHECK(Simple(ret) == "iRV&oRV&");
1 0 CHECK(Simple(ret) == "iRV&oRV&");
1 0 CHECK(Simple(ret) == "iRV&oRV&");
1 0 CHECK(Simple(ret) == "iRV&oRV&");
0 0 CHECK(Simple(ret) == "iRV&oRV&");
0 0 CHECK(Simple(ret) == "iRV&oRV&");
100 6 0 SECTION("ptr only") {
6 0 SECTION("ptr only") {
6 0 SECTION("ptr only") {
6 0 SECTION("ptr only") {
1 5 SECTION("ptr only") {
101 1 0 auto ret = out(in(Sv()));
1 0 auto ret = out(in(Sv()));
102 1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
0 0 CHECK(Simple(ret) == "iP*oP*");
0 0 CHECK(Simple(ret) == "iP*oP*");
103 1 0 ret = out(&in(Sv()));
1 0 ret = out(&in(Sv()));
104 1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
1 0 CHECK(Simple(ret) == "iP*oP*");
0 0 CHECK(Simple(ret) == "iP*oP*");
0 0 CHECK(Simple(ret) == "iP*oP*");
106 6 0 SECTION("ptr and val") {
6 0 SECTION("ptr and val") {
6 0 SECTION("ptr and val") {
6 0 SECTION("ptr and val") {
1 5 SECTION("ptr and val") {
107 1 0 auto ret = out(in(Sv()));
1 0 auto ret = out(in(Sv()));
108 1 0 CHECK(Simple(ret) == "iPVoPV");
1 0 CHECK(Simple(ret) == "iPVoPV");
1 0 CHECK(Simple(ret) == "iPVoPV");
1 0 CHECK(Simple(ret) == "iPVoPV");
1 0 CHECK(Simple(ret) == "iPVoPV");
1 0 CHECK(Simple(ret) == "iPVoPV");
0 0 CHECK(Simple(ret) == "iPVoPV");
0 0 CHECK(Simple(ret) == "iPVoPV");
109 1 0 ret = out(in(Sv()));
1 0 ret = out(in(Sv()));
110 1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
0 0 CHECK(Simple(ret) == "iPV*oPV*");
0 0 CHECK(Simple(ret) == "iPV*oPV*");
111 1 0 ret = out(&in(Sv()));
1 0 ret = out(&in(Sv()));
112 1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
1 0 CHECK(Simple(ret) == "iPV*oPV*");
0 0 CHECK(Simple(ret) == "iPV*oPV*");
0 0 CHECK(Simple(ret) == "iPV*oPV*");
114 6 0 SECTION("ref and ptr") {
6 0 SECTION("ref and ptr") {
6 0 SECTION("ref and ptr") {
6 0 SECTION("ref and ptr") {
1 5 SECTION("ref and ptr") {
115 1 0 auto ret = out(in(Sv()));
1 0 auto ret = out(in(Sv()));
116 1 0 CHECK(Simple(ret) == "iRP*oRP*");
1 0 CHECK(Simple(ret) == "iRP*oRP*");
1 0 CHECK(Simple(ret) == "iRP*oRP*");
1 0 CHECK(Simple(ret) == "iRP*oRP*");
1 0 CHECK(Simple(ret) == "iRP*oRP*");
1 0 CHECK(Simple(ret) == "iRP*oRP*");
0 0 CHECK(Simple(ret) == "iRP*oRP*");
0 0 CHECK(Simple(ret) == "iRP*oRP*");
117 1 0 ret = out(in(Sv()));
1 0 ret = out(in(Sv()));
118 1 0 CHECK(Simple(ret) == "iRP&oRP&");
1 0 CHECK(Simple(ret) == "iRP&oRP&");
1 0 CHECK(Simple(ret) == "iRP&oRP&");
1 0 CHECK(Simple(ret) == "iRP&oRP&");
1 0 CHECK(Simple(ret) == "iRP&oRP&");
1 0 CHECK(Simple(ret) == "iRP&oRP&");
0 0 CHECK(Simple(ret) == "iRP&oRP&");
0 0 CHECK(Simple(ret) == "iRP&oRP&");
120 34 0 }
34 0 }