Branch Coverage

Error.xsi
Criterion Covered Total %
branch 33 94 35.1


line true false branch
14 0 1 RETVAL = std::error_code(ec, *category);
26 2 0 RETVAL = ec.message();
2 0 RETVAL = ec.message();
30 0 0 RETVAL = ec.message();
0 0 RETVAL = ec.message();
31 0 0 RETVAL += " (";
32 0 0 RETVAL += std::to_string(ec.value());
0 0 RETVAL += std::to_string(ec.value());
33 0 0 RETVAL += ":";
34 0 0 RETVAL += ec.category().name();
35 0 0 RETVAL += ")";
43 62 2 if (sv_ec2.is_object_ref()) {
44 62 0 Object ec2 = sv_ec2;
45 62 0 auto class_name = ec2.stash().name();
46 62 0 if (class_name == "XS::ErrorCode") {
0 62 if (class_name == "XS::ErrorCode") {
47 0 0 RETVAL = ec1 == xs::in(sv_ec2);
48 62 0 } else if (class_name == "XS::STL::ErrorCode") {
62 0 } else if (class_name == "XS::STL::ErrorCode") {
49 62 0 RETVAL = ec1 == xs::in(sv_ec2);
53 2 0 } else if (SvIOK(sv_ec2)) {
54 2 0 int code = Simple(sv_ec2);
2 0 int code = Simple(sv_ec2);
70 0 0 std::string std::error_category::message (int ec) : const
0 0 std::string std::error_category::message (int ec) : const
73 0 0 RETVAL = THIS->name();
85 0 0 else RETVAL = ErrorCode(c);
97 1 0 RETVAL = ec.message();
1 0 RETVAL = ec.message();
109 0 0 if (!ec) XSRETURN_UNDEF;
110 0 0 RETVAL = ec.what();
0 0 RETVAL = ec.what();
0 0 RETVAL = ec.what();
118 4 1 if (sv_ec2.is_object_ref()) {
119 4 0 Object ec2 = sv_ec2;
120 4 0 auto class_name = ec2.stash().name();
121 4 0 if (class_name == "XS::ErrorCode") {
1 3 if (class_name == "XS::ErrorCode") {
122 1 0 RETVAL = ec1 == xs::in(sv_ec2);
123 3 0 } else if (class_name == "XS::STL::ErrorCode") {
3 0 } else if (class_name == "XS::STL::ErrorCode") {
124 3 0 RETVAL = ec1 == xs::in(sv_ec2);
128 1 0 } else if (SvIOK(sv_ec2)) {
129 1 0 int code = Simple(sv_ec2);
1 0 int code = Simple(sv_ec2);
137 1 0 RETVAL = ec.contains(c);
141 3 0 RETVAL = ec.contains(c);