ReFRACtor
swig_interface_test Namespace Reference

Functions

def my_func (self)
 
def test_class_using_another ()
 
def test_doxygen_doc ()
 
def test_exception_handled ()
 
def test_extend_class_in_python ()
 
def test_header_only_class ()
 
def test_passing_numpy_array ()
 
def test_returning_numpy_array ()
 
def test_second_class ()
 
def test_swig_basic_call ()
 

Variables

string test_data = os.path.dirname(__file__) + "/../../test/unit/data/"
 

Function Documentation

◆ my_func()

def swig_interface_test.my_func (   self)

Definition at line 48 of file swig_interface_test.py.

◆ test_class_using_another()

def swig_interface_test.test_class_using_another ( )
Test that import is working properly when a class uses another one. 
We also test that the python operators (e.g., __mul__) get handled
correctly.

Definition at line 95 of file swig_interface_test.py.

◆ test_doxygen_doc()

def swig_interface_test.test_doxygen_doc ( )
Test that the doxygen documentation goes through

Definition at line 29 of file swig_interface_test.py.

◆ test_exception_handled()

def swig_interface_test.test_exception_handled ( )
Test that a C++ exception gets translated to a RuntimeError

Definition at line 41 of file swig_interface_test.py.

◆ test_extend_class_in_python()

def swig_interface_test.test_extend_class_in_python ( )
Test that we can add pure python functions to a class.

Definition at line 54 of file swig_interface_test.py.

◆ test_header_only_class()

def swig_interface_test.test_header_only_class ( )
Test handling of a class with a .h but not a .cc file. This is 
mainly a test of the Makefile, SWIG doesn't really act any differently
for .h vs .h and .cc files

Definition at line 86 of file swig_interface_test.py.

◆ test_passing_numpy_array()

def swig_interface_test.test_passing_numpy_array ( )
Test that passes a numpy array to a function

Definition at line 117 of file swig_interface_test.py.

◆ test_returning_numpy_array()

def swig_interface_test.test_returning_numpy_array ( )
Test returning a numpy array

Definition at line 61 of file swig_interface_test.py.

◆ test_second_class()

def swig_interface_test.test_second_class ( )
Test is a second class. This makes sure the module initialization etc.
get handled correctly for multiple classes.

Definition at line 74 of file swig_interface_test.py.

◆ test_swig_basic_call()

def swig_interface_test.test_swig_basic_call ( )
Simple test that we can call C++ through python and get back
a results.

Definition at line 21 of file swig_interface_test.py.

Variable Documentation

◆ test_data

string swig_interface_test.test_data = os.path.dirname(__file__) + "/../../test/unit/data/"

Definition at line 16 of file swig_interface_test.py.


Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:14