Public Member Functions | Static Public Attributes | List of all members
test_pybind_wrapper.TestWrap Class Reference
Inheritance diagram for test_pybind_wrapper.TestWrap:
Inheritance graph
[legend]

Public Member Functions

def compare_and_diff (self, file, actual)
 
def test_class (self)
 
def test_enum (self)
 
def test_functions (self)
 
def test_geometry (self)
 
def test_inheritance (self)
 
def test_namespaces (self)
 
def test_operator_overload (self)
 
def test_special_cases (self)
 
def test_templates (self)
 
def wrap_content (self, sources, module_name, output_dir, use_boost_serialization=False)
 

Static Public Attributes

 exist_ok
 
 INTERFACE_DIR
 
 PYTHON_ACTUAL_DIR
 
 PYTHON_TEST_DIR
 
 TEST_DIR
 

Detailed Description

Tests for Python wrapper based on Pybind11.

Definition at line 24 of file test_pybind_wrapper.py.

Member Function Documentation

◆ compare_and_diff()

def test_pybind_wrapper.TestWrap.compare_and_diff (   self,
  file,
  actual 
)
Compute the comparison between the expected and actual file,
and assert if diff is zero.

Definition at line 63 of file test_pybind_wrapper.py.

◆ test_class()

def test_pybind_wrapper.TestWrap.test_class (   self)
Test interface file with only class info.

Definition at line 97 of file test_pybind_wrapper.py.

◆ test_enum()

def test_pybind_wrapper.TestWrap.test_enum (   self)
Test if enum generation is correct.

Definition at line 153 of file test_pybind_wrapper.py.

◆ test_functions()

def test_pybind_wrapper.TestWrap.test_functions (   self)
Test interface file with function info.

Definition at line 89 of file test_pybind_wrapper.py.

◆ test_geometry()

def test_pybind_wrapper.TestWrap.test_geometry (   self)
Check generation of python geometry wrapper.
python3 ../pybind_wrapper.py --src geometry.h --module_name
    geometry_py --out output/geometry_py.cc

Definition at line 75 of file test_pybind_wrapper.py.

◆ test_inheritance()

def test_pybind_wrapper.TestWrap.test_inheritance (   self)
Test interface file with class inheritance definitions.

Definition at line 113 of file test_pybind_wrapper.py.

◆ test_namespaces()

def test_pybind_wrapper.TestWrap.test_namespaces (   self)
Check generation of python wrapper for full namespace definition.
python3 ../pybind_wrapper.py --src namespaces.i --module_name
    namespaces_py --out output/namespaces_py.cpp

Definition at line 121 of file test_pybind_wrapper.py.

◆ test_operator_overload()

def test_pybind_wrapper.TestWrap.test_operator_overload (   self)
Tests for operator overloading.

Definition at line 133 of file test_pybind_wrapper.py.

◆ test_special_cases()

def test_pybind_wrapper.TestWrap.test_special_cases (   self)
Tests for some unique, non-trivial features.

Definition at line 143 of file test_pybind_wrapper.py.

◆ test_templates()

def test_pybind_wrapper.TestWrap.test_templates (   self)
Test interface file with templated class.

Definition at line 105 of file test_pybind_wrapper.py.

◆ wrap_content()

def test_pybind_wrapper.TestWrap.wrap_content (   self,
  sources,
  module_name,
  output_dir,
  use_boost_serialization = False 
)
Common function to wrap content in `sources`.

Definition at line 38 of file test_pybind_wrapper.py.

Member Data Documentation

◆ exist_ok

test_pybind_wrapper.TestWrap.exist_ok
static

Definition at line 32 of file test_pybind_wrapper.py.

◆ INTERFACE_DIR

test_pybind_wrapper.TestWrap.INTERFACE_DIR
static

Definition at line 27 of file test_pybind_wrapper.py.

◆ PYTHON_ACTUAL_DIR

test_pybind_wrapper.TestWrap.PYTHON_ACTUAL_DIR
static

Definition at line 29 of file test_pybind_wrapper.py.

◆ PYTHON_TEST_DIR

test_pybind_wrapper.TestWrap.PYTHON_TEST_DIR
static

Definition at line 28 of file test_pybind_wrapper.py.

◆ TEST_DIR

test_pybind_wrapper.TestWrap.TEST_DIR
static

Definition at line 26 of file test_pybind_wrapper.py.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:47:31