MCPcopy Create free account
hub / github.com/pybind/pybind11 / TEST_SUBMODULE

Function TEST_SUBMODULE

tests/test_unnamed_namespace_b.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5} // namespace
6
7TEST_SUBMODULE(unnamed_namespace_b, m) {
8 if (py::detail::get_type_info(typeid(any_struct)) == nullptr) {
9 py::class_<any_struct>(m, "unnamed_namespace_b_any_struct");
10 } else {
11 m.attr("unnamed_namespace_b_any_struct") = py::none();
12 }
13}

Callers

nothing calls this directly

Calls 2

noneClass · 0.85
attrMethod · 0.80

Tested by

no test coverage detected