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

Public Member Functions

def compare_and_diff (self, file)
 
def generate_content (self, cc_content, path=MATLAB_ACTUAL_DIR)
 
def test_class (self)
 
def test_functions (self)
 
def test_geometry (self)
 
def test_inheritance (self)
 
def test_namspaces (self)
 
def test_special_cases (self)
 

Static Public Attributes

 exist_ok
 
 format
 
 INTERFACE_DIR = osp.join(TEST_DIR, "fixtures")
 
 level
 
 MATLAB_ACTUAL_DIR = osp.join(TEST_DIR, "actual", "matlab")
 
 MATLAB_TEST_DIR = osp.join(TEST_DIR, "expected", "matlab")
 
 stderr
 
 TEST_DIR = osp.dirname(osp.realpath(__file__))
 

Detailed Description

Test the Matlab wrapper

Definition at line 23 of file test_matlab_wrapper.py.

Member Function Documentation

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

Definition at line 95 of file test_matlab_wrapper.py.

def test_matlab_wrapper.TestWrap.generate_content (   self,
  cc_content,
  path = MATLAB_ACTUAL_DIR 
)
Generate files and folders from matlab wrapper content.

Keyword arguments:
cc_content -- the content to generate formatted as
    (file_name, file_content) or
    (folder_name, [(file_name, file_content)])
path -- the path to the files parent folder within the main folder

Definition at line 39 of file test_matlab_wrapper.py.

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

Definition at line 176 of file test_matlab_wrapper.py.

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

Definition at line 143 of file test_matlab_wrapper.py.

def test_matlab_wrapper.TestWrap.test_geometry (   self)
Check generation of matlab geometry wrapper.
python3 wrap/matlab_wrapper.py --src wrap/tests/geometry.h
    --module_name geometry --out wrap/tests/actual-matlab

Definition at line 108 of file test_matlab_wrapper.py.

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

Definition at line 209 of file test_matlab_wrapper.py.

def test_matlab_wrapper.TestWrap.test_namspaces (   self)
Test interface file with full namespace definition.

Definition at line 240 of file test_matlab_wrapper.py.

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

Definition at line 275 of file test_matlab_wrapper.py.

Member Data Documentation

test_matlab_wrapper.TestWrap.exist_ok
static

Definition at line 33 of file test_matlab_wrapper.py.

test_matlab_wrapper.TestWrap.format
static

Definition at line 37 of file test_matlab_wrapper.py.

test_matlab_wrapper.TestWrap.INTERFACE_DIR = osp.join(TEST_DIR, "fixtures")
static

Definition at line 28 of file test_matlab_wrapper.py.

test_matlab_wrapper.TestWrap.level
static

Definition at line 37 of file test_matlab_wrapper.py.

test_matlab_wrapper.TestWrap.MATLAB_ACTUAL_DIR = osp.join(TEST_DIR, "actual", "matlab")
static

Definition at line 30 of file test_matlab_wrapper.py.

test_matlab_wrapper.TestWrap.MATLAB_TEST_DIR = osp.join(TEST_DIR, "expected", "matlab")
static

Definition at line 29 of file test_matlab_wrapper.py.

test_matlab_wrapper.TestWrap.stderr
static

Definition at line 37 of file test_matlab_wrapper.py.

test_matlab_wrapper.TestWrap.TEST_DIR = osp.dirname(osp.realpath(__file__))
static

Definition at line 27 of file test_matlab_wrapper.py.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:59:21