MCPcopy Create free account
hub / github.com/BabitMF/bmf / create_python_module_from_string

Function create_python_module_from_string

bmf/c_modules/test/test_python_module.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void create_python_module_from_string(
47 std::string module_name, std::string option,
48 std::shared_ptr<PythonModule> &python_module) {
49 std::istringstream s;
50 nlohmann::json opt;
51 s.str(option);
52 s >> opt;
53 python_module = std::make_shared<PythonModule>(module_name, module_name, 0,
54 JsonParam(opt));
55}
56
57TEST(python_module, ffmpeg_module) {
58

Callers 2

thread_decodeFunction · 0.85
TESTFunction · 0.85

Calls 1

strMethod · 0.80

Tested by

no test coverage detected