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

Function TEST_SUBMODULE

tests/test_const_name.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45#endif
46
47TEST_SUBMODULE(const_name, m) {
48 m.def("const_name_tests", const_name_tests);
49
50#if defined(PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY)
51 m.def("underscore_tests", underscore_tests);
52#else
53 m.attr("underscore_tests") = "PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY not defined.";
54#endif
55}

Callers

nothing calls this directly

Calls 1

attrMethod · 0.80

Tested by

no test coverage detected