cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Classes | Functions
test_interpreter.cpp File Reference
#include <pybind11/embed.h>
#include <catch.hpp>
#include <thread>
#include <fstream>
#include <functional>

Go to the source code of this file.

Classes

class  Widget
 
class  PyWidget
 
struct  scope_exit
 

Functions

 PYBIND11_EMBEDDED_MODULE (widget_module, m)
 
 PYBIND11_EMBEDDED_MODULE (throw_exception,)
 
 PYBIND11_EMBEDDED_MODULE (throw_error_already_set,)
 
 TEST_CASE ("Pass classes and data between modules defined in C++ and Python")
 
 TEST_CASE ("Import error handling")
 
 TEST_CASE ("There can be only one interpreter")
 
bool has_pybind11_internals_builtin ()
 
bool has_pybind11_internals_static ()
 
 TEST_CASE ("Restart the interpreter")
 
 TEST_CASE ("Subinterpreter")
 
 TEST_CASE ("Execution frame")
 
 TEST_CASE ("Threads")
 
 TEST_CASE ("Reload module from file")
 

Function Documentation

◆ has_pybind11_internals_builtin()

bool has_pybind11_internals_builtin ( )

Definition at line 98 of file test_interpreter.cpp.

◆ has_pybind11_internals_static()

bool has_pybind11_internals_static ( )

Definition at line 103 of file test_interpreter.cpp.

◆ PYBIND11_EMBEDDED_MODULE() [1/3]

PYBIND11_EMBEDDED_MODULE ( throw_error_already_set  )

Definition at line 48 of file test_interpreter.cpp.

◆ PYBIND11_EMBEDDED_MODULE() [2/3]

PYBIND11_EMBEDDED_MODULE ( throw_exception  )

Definition at line 44 of file test_interpreter.cpp.

◆ PYBIND11_EMBEDDED_MODULE() [3/3]

PYBIND11_EMBEDDED_MODULE ( widget_module  ,
 
)

Definition at line 36 of file test_interpreter.cpp.

◆ TEST_CASE() [1/8]

TEST_CASE ( "Execution frame"  )

Definition at line 201 of file test_interpreter.cpp.

◆ TEST_CASE() [2/8]

TEST_CASE ( "Import error handling"  )

Definition at line 72 of file test_interpreter.cpp.

◆ TEST_CASE() [3/8]

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

Definition at line 53 of file test_interpreter.cpp.

◆ TEST_CASE() [4/8]

TEST_CASE ( "Reload module from file"  )

Definition at line 244 of file test_interpreter.cpp.

◆ TEST_CASE() [5/8]

TEST_CASE ( "Restart the interpreter"  )

Definition at line 108 of file test_interpreter.cpp.

◆ TEST_CASE() [6/8]

TEST_CASE ( "Subinterpreter"  )

Create and switch to a subinterpreter.

Definition at line 161 of file test_interpreter.cpp.

◆ TEST_CASE() [7/8]

TEST_CASE ( "There can be only one interpreter"  )

Definition at line 80 of file test_interpreter.cpp.

◆ TEST_CASE() [8/8]

TEST_CASE ( "Threads"  )

Definition at line 208 of file test_interpreter.cpp.