OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
TestingPythonExtensions Namespace Reference

Functions

static PyObject * GetFunction (PyObject *self, PyObject *args)
 
static PyObject * WithOneParameter (PyObject *self, PyObject *args)
 
static PyObject * WithoutParameter (PyObject *self, PyObject *args)
 
static PyObject * WithMultipleParameter (PyObject *self, PyObject *args)
 
PyMODINIT_FUNC PyInit_Testing (void)
 

Variables

static PyMethodDef OTMethods []
 
static std::string testModuleDescription = "This module holds functions that are used for unit tests."
 
static struct PyModuleDef TestModule
 

Function Documentation

◆ GetFunction()

static PyObject * TestingPythonExtensions::GetFunction ( PyObject * self,
PyObject * args )
static

◆ PyInit_Testing()

PyMODINIT_FUNC TestingPythonExtensions::PyInit_Testing ( void )

◆ WithMultipleParameter()

static PyObject * TestingPythonExtensions::WithMultipleParameter ( PyObject * self,
PyObject * args )
static

◆ WithOneParameter()

static PyObject * TestingPythonExtensions::WithOneParameter ( PyObject * self,
PyObject * args )
static

◆ WithoutParameter()

static PyObject * TestingPythonExtensions::WithoutParameter ( PyObject * self,
PyObject * args )
static

Variable Documentation

◆ OTMethods

PyMethodDef TestingPythonExtensions::OTMethods[]
static
Initial value:
= {
{"WithOneParameter", WithOneParameter, METH_VARARGS, "Test function with one parameter."},
{"WithoutParameter", WithoutParameter, METH_NOARGS, "Test function without parameter."},
{"WithMultipleParameter", WithMultipleParameter, METH_VARARGS, "Test function with multiple parameter."},
{"GetFunction", GetFunction, METH_VARARGS, "Test function getter."},
{NULL, NULL, 0, NULL}
}
static PyObject * WithoutParameter(PyObject *self, PyObject *args)
Definition TestingPythonExtensions.h:31
static PyObject * WithOneParameter(PyObject *self, PyObject *args)
Definition TestingPythonExtensions.h:21
static PyObject * GetFunction(PyObject *self, PyObject *args)
Definition TestingPythonExtensions.h:9

◆ TestModule

struct PyModuleDef TestingPythonExtensions::TestModule
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"InitialTestModule",
-1,
}
static std::string testModuleDescription
Definition TestingPythonExtensions.h:65
static PyMethodDef OTMethods[]
Definition TestingPythonExtensions.h:55

◆ testModuleDescription

std::string TestingPythonExtensions::testModuleDescription = "This module holds functions that are used for unit tests."
static