Skip to content

Commit

Permalink
Remove all but 3 BAKEIN_BREAK in test_class_sh_basic.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Jul 4, 2024
1 parent 391d772 commit 0eb23f2
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions tests/test_class_sh_basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,31 +176,31 @@ TEST_SUBMODULE(class_sh_basic, m) {
m.def("rtrn_uqcp", rtrn_uqcp);

m.def("pass_uqmp", pass_uqmp);
// BAKEIN_BREAK m.def("pass_uqcp", pass_uqcp);
m.def("pass_uqcp", pass_uqcp);

m.def("rtrn_udmp", rtrn_udmp);
m.def("rtrn_udcp", rtrn_udcp);

// BAKEIN_BREAK m.def("pass_udmp", pass_udmp);
// BAKEIN_BREAK m.def("pass_udcp", pass_udcp);
m.def("pass_udmp", pass_udmp);
m.def("pass_udcp", pass_udcp);

m.def("rtrn_udmp_del", rtrn_udmp_del);
m.def("rtrn_udcp_del", rtrn_udcp_del);

// BAKEIN_BREAK m.def("pass_udmp_del", pass_udmp_del);
// BAKEIN_BREAK m.def("pass_udcp_del", pass_udcp_del);
m.def("pass_udmp_del", pass_udmp_del);
m.def("pass_udcp_del", pass_udcp_del);

m.def("rtrn_udmp_del_nd", rtrn_udmp_del_nd);
m.def("rtrn_udcp_del_nd", rtrn_udcp_del_nd);

// BAKEIN_BREAK m.def("pass_udmp_del_nd", pass_udmp_del_nd);
// BAKEIN_BREAK m.def("pass_udcp_del_nd", pass_udcp_del_nd);
m.def("pass_udmp_del_nd", pass_udmp_del_nd);
m.def("pass_udcp_del_nd", pass_udcp_del_nd);

py::classh<uconsumer>(m, "uconsumer")
.def(py::init<>())
.def("valid", &uconsumer::valid)
// BAKEIN_BREAK .def("pass_valu", &uconsumer::pass_valu)
// BAKEIN_BREAK .def("pass_rref", &uconsumer::pass_rref)
.def("pass_valu", &uconsumer::pass_valu)
.def("pass_rref", &uconsumer::pass_rref)
.def("rtrn_valu", &uconsumer::rtrn_valu)
// BAKEIN_BREAK .def("rtrn_lref", &uconsumer::rtrn_lref)
// BAKEIN_BREAK .def("rtrn_cref", &uconsumer::rtrn_cref)
Expand All @@ -211,7 +211,7 @@ TEST_SUBMODULE(class_sh_basic, m) {
m.def("get_mtxt", get_mtxt); // pass_cref
m.def("get_ptr", get_ptr); // pass_cref

// BAKEIN_BREAK m.def("unique_ptr_roundtrip", unique_ptr_roundtrip); // pass_uqmp, rtrn_uqmp
m.def("unique_ptr_roundtrip", unique_ptr_roundtrip); // pass_uqmp, rtrn_uqmp
// BAKEIN_BREAK m.def("unique_ptr_cref_roundtrip", unique_ptr_cref_roundtrip);

py::classh<SharedPtrStash>(m, "SharedPtrStash")
Expand All @@ -225,11 +225,8 @@ TEST_SUBMODULE(class_sh_basic, m) {
// Checks for type names used as arguments
m.def("args_shared_ptr", [](std::shared_ptr<atyp> p) { return p; });
m.def("args_shared_ptr_const", [](std::shared_ptr<atyp const> p) { return p; });
// BAKEIN_TEMP clang-format off
// clang-format off
// BAKEIN_BREAK m.def("args_unique_ptr", [](std::unique_ptr<atyp> p) { return p; });
// BAKEIN_BREAK m.def("args_unique_ptr_const", [](std::unique_ptr<atyp const> p) { return p; });
// clang-format on
m.def("args_unique_ptr", [](std::unique_ptr<atyp> p) { return p; });
m.def("args_unique_ptr_const", [](std::unique_ptr<atyp const> p) { return p; });

// Make sure unique_ptr type caster accept automatic_reference return value policy.
m.def(
Expand Down

0 comments on commit 0eb23f2

Please sign in to comment.