Classes | Functions
test_interpreter.cpp File Reference
#include <pybind11/embed.h>
#include <catch.hpp>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <thread>
#include <utility>
Include dependency graph for test_interpreter.cpp:

Go to the source code of this file.

Classes

class  PyWidget
 
struct  scope_exit
 
class  test_override_cache_helper
 
class  test_override_cache_helper_trampoline
 
class  Widget
 

Functions

size_t get_sys_path_size ()
 
bool has_pybind11_internals_static ()
 
bool has_state_dict_internals_obj ()
 
 PYBIND11_EMBEDDED_MODULE (throw_error_already_set,)
 
 PYBIND11_EMBEDDED_MODULE (throw_exception,)
 
 PYBIND11_EMBEDDED_MODULE (trampoline_module, m)
 
 PYBIND11_EMBEDDED_MODULE (widget_module, m)
 
 TEST_CASE ("Add program dir to path pre-PyConfig")
 
 TEST_CASE ("Add program dir to path using PyConfig")
 
 TEST_CASE ("Custom PyConfig")
 
 TEST_CASE ("Execution frame")
 
 TEST_CASE ("Import error handling")
 
 TEST_CASE ("make_iterator can be called before then after finalizing an interpreter")
 
 TEST_CASE ("Override cache")
 
 TEST_CASE ("Pass classes and data between modules defined in C++ and Python")
 
 TEST_CASE ("PYTHONPATH is used to update sys.path")
 
 TEST_CASE ("Reload module from file")
 
 TEST_CASE ("Restart the interpreter")
 
 TEST_CASE ("scoped_interpreter with PyConfig_InitIsolatedConfig and argv")
 
 TEST_CASE ("scoped_interpreter with PyConfig_InitPythonConfig and argv")
 
 TEST_CASE ("Subinterpreter")
 
 TEST_CASE ("sys.argv gets initialized properly")
 
 TEST_CASE ("There can be only one interpreter")
 
 TEST_CASE ("Threads")
 

Function Documentation

◆ get_sys_path_size()

size_t get_sys_path_size ( )

Definition at line 17 of file test_interpreter.cpp.

◆ has_pybind11_internals_static()

bool has_pybind11_internals_static ( )

Definition at line 263 of file test_interpreter.cpp.

◆ has_state_dict_internals_obj()

bool has_state_dict_internals_obj ( )

Definition at line 258 of file test_interpreter.cpp.

◆ PYBIND11_EMBEDDED_MODULE() [1/4]

PYBIND11_EMBEDDED_MODULE ( throw_error_already_set  )

Definition at line 76 of file test_interpreter.cpp.

◆ PYBIND11_EMBEDDED_MODULE() [2/4]

PYBIND11_EMBEDDED_MODULE ( throw_exception  )

Definition at line 74 of file test_interpreter.cpp.

◆ PYBIND11_EMBEDDED_MODULE() [3/4]

PYBIND11_EMBEDDED_MODULE ( trampoline_module  ,
m   
)

Definition at line 66 of file test_interpreter.cpp.

◆ PYBIND11_EMBEDDED_MODULE() [4/4]

PYBIND11_EMBEDDED_MODULE ( widget_module  ,
m   
)

Definition at line 58 of file test_interpreter.cpp.

◆ TEST_CASE() [1/17]

TEST_CASE ( "Add program dir to path pre-PyConfig"  )

Definition at line 224 of file test_interpreter.cpp.

◆ TEST_CASE() [2/17]

TEST_CASE ( "Add program dir to path using PyConfig"  )

Definition at line 239 of file test_interpreter.cpp.

◆ TEST_CASE() [3/17]

TEST_CASE ( "Custom PyConfig"  )

Definition at line 175 of file test_interpreter.cpp.

◆ TEST_CASE() [4/17]

TEST_CASE ( "Execution frame"  )

Definition at line 365 of file test_interpreter.cpp.

◆ TEST_CASE() [5/17]

TEST_CASE ( "Import error handling"  )

Definition at line 136 of file test_interpreter.cpp.

◆ TEST_CASE() [6/17]

TEST_CASE ( "make_iterator can be called before then after finalizing an interpreter"  )

Definition at line 472 of file test_interpreter.cpp.

◆ TEST_CASE() [7/17]

TEST_CASE ( "Override cache"  )

Definition at line 109 of file test_interpreter.cpp.

◆ TEST_CASE() [8/17]

TEST_CASE ( "Pass classes and data between modules defined in C++ and Python"  )

Definition at line 88 of file test_interpreter.cpp.

◆ TEST_CASE() [9/17]

TEST_CASE ( "PYTHONPATH is used to update sys.path"  )

Definition at line 81 of file test_interpreter.cpp.

◆ TEST_CASE() [10/17]

TEST_CASE ( "Reload module from file"  )

Definition at line 411 of file test_interpreter.cpp.

◆ TEST_CASE() [11/17]

TEST_CASE ( "Restart the interpreter"  )

Definition at line 268 of file test_interpreter.cpp.

◆ TEST_CASE() [12/17]

TEST_CASE ( "scoped_interpreter with PyConfig_InitIsolatedConfig and argv"  )

Definition at line 187 of file test_interpreter.cpp.

◆ TEST_CASE() [13/17]

TEST_CASE ( "scoped_interpreter with PyConfig_InitPythonConfig and argv"  )

Definition at line 203 of file test_interpreter.cpp.

◆ TEST_CASE() [14/17]

TEST_CASE ( "Subinterpreter"  )

Create and switch to a subinterpreter.

Definition at line 325 of file test_interpreter.cpp.

◆ TEST_CASE() [15/17]

TEST_CASE ( "sys.argv gets initialized properly"  )

Definition at line 450 of file test_interpreter.cpp.

◆ TEST_CASE() [16/17]

TEST_CASE ( "There can be only one interpreter"  )

Definition at line 156 of file test_interpreter.cpp.

◆ TEST_CASE() [17/17]

TEST_CASE ( "Threads"  )

Definition at line 372 of file test_interpreter.cpp.



gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:08:06