aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added Converter<T>::isConvertible to replace the T_Check functions.Hugo Lima2009-10-275-0/+23
| | | | | | This allow the user to full custommize the type conversion. Note: This change added a known regression on test_derived
* changed the way that added special methods ("__str__", "__repr__") areMarcelo Lira2009-10-231-0/+6
| | | | dealt with to allow future expansions ("__call__", "__getattr__", etc)
* added test for definition of __str__ method on type systemMarcelo Lira2009-10-232-1/+51
|
* removed debug line from SimpleFile test classMarcelo Lira2009-10-231-1/+0
|
* renamed template variable %SELF to %PYSELF and %CPPOBJ to %CPPSELFMarcelo Lira2009-10-232-5/+5
| | | | | to improve code readability; also fixed usage of template variables on type system for the test bindings
* Use template variables for inject codeHugo Lima2009-10-231-3/+3
|
* added two new variables for the type system template system:Marcelo Lira2009-10-211-1/+1
| | | | | | | | | | | | | | * %SELF, replaced by the variable name for the Python instance of a class method * %CPPOBJ, replaced by the pointer to the C++ object for the Python instance associated with the method where it appears the 'cpythonWrapperCPtr(const AbstractMetaClass*, QString)' method was moved from CppGenerator to ShibokenGenerator to be available for the type system variable replacement method; the test bindings for the libsample's SimpleFile class was updated to use the new type system variables
* added the SimpleFile class to the sample library to check how aMarcelo Lira2009-10-208-0/+239
| | | | | | | | method returning a boolean value that indicates success/failure on a IO operation could be modified to express the any occurring problems as Python exceptions (in this case IOError); the generator was changed to return a 'None' value for Python callers on methods that had it's return value removed
* expanded the unit tests for multiple inheritanceMarcelo Lira2009-09-181-3/+8
|
* Removed useless ValueHolder template.Hugo Lima2009-09-156-25/+22
|
* Use Py_RETURN_NONE for functions with null return.Renato Araujo Oliveira Filho2009-09-103-0/+46
| | | | fixes bug #45.
* Create multiple heritance tests.Renato Araujo Oliveira Filho2009-09-107-0/+199
|
* Implement oddBool unit test.Luciano Wolf2009-09-091-0/+63
|
* Fix LGPL license plates to libsample unit tests, so the tests can be ↵Hugo Lima2009-09-0816-416/+384
| | | | executed again.
* Fix libsamplebinding generator, due to recent changes in boostpythongenerator.Hugo Lima2009-09-081-1/+1
|
* added LGPL license plates to libsample unit testsMarcelo Lira2009-09-0316-0/+415
|
* renamed PolymorphicData class to OverloadData, this should represent correctlyMarcelo Lira2009-09-0212-123/+122
| | | | the class' function; other relative renamings were also performed
* - CppGenerator and HeaderGenerator modified to take classes withMarcelo Lira2009-09-022-2/+67
| | | | | | | private destructors into account - Removed ShibokenGenerator::canCreateWrapperFor(...) method - Minor improvements to ShibokenGenerator documentation - Expanded PrivateDtor case and added related unit test
* Added missing LGPL copyright header to libsample/oddbool.hMarcelo Lira2009-09-012-1/+34
|
* Changed generator to convert the method call results on wrapped methodsMarcelo Lira2009-09-015-8/+82
| | | | | | | | | | | | | | | | at each possible call, instead of receiving the return value in the C++ type and converting it later. Having the result value as a PyObject pointer avoids the problem of declaring the return value variable with a class that do not have a simple constructor. Example: "Foo resultValue;" is a problem when the only constructor for "Foo" is "Foo(int)". The above described problem is made worse with the addition of OddBool and OddBoolUser cases to the sample library. OddBool is registered as a primitive (and convertible) type, registered this way it is only available as a TypeEntry and a suitable constructor cannot possibly be found. This is different from Value and Object types for they become AbstractMetaClass objects and all constructor signatures can be queried.
* Added a python test to classes without default ctorHugo Lima2009-09-012-2/+47
|
* Added LGPL copyright header to all libsample files.Hugo Lima2009-09-0133-0/+1120
|
* Added an example of a class with a private destructor.Hugo Lima2009-09-014-0/+21
|
* added virtual method cases to NonDefaultCtor exampleMarcelo Lira2009-09-011-0/+10
|
* Added a corner case to broke Shiboken tests >:-)Hugo Lima2009-08-314-1/+31
| | | | | Shiboken generates wrong C++ code when exists a function/method that returns a type without a default constructor.
* Added a common use case to break shiboken legs.Hugo Lima2009-08-281-0/+1
|
* Removed all warningsHugo Lima2009-08-281-0/+1
|
* added convenience binary applications to call the generatorrunnerMarcelo Lira2009-08-281-1/+1
| | | | with --generatorSet parameter for shiboken
* Shiboken ported to the new generator/apiextractor architeture.Hugo Lima2009-08-271-1/+3
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* updated sample library with VirtualMethods class which containsMarcelo Lira2009-08-277-0/+70
| | | | | | | a case of a virtual method that is reimplemented in Python and checked in the unit test Reference class and unit tests with cases of virtual methods that receive C++ references
* updated sample library Reference class and unit tests with casesMarcelo Lira2009-08-273-0/+63
| | | | of virtual methods that receive C++ references
* added shiboken dependency on sample bindingssb-0.1Marcelo Lira2009-08-251-0/+2
|
* changed pair_conversion.h to use PySequence functions instead ofMarcelo Lira2009-08-252-3/+3
| | | | PyTuple ones, also fixed pair_test.py
* commented debug messages from test libraryMarcelo Lira2009-08-255-38/+38
|
* added mapping example to test lib as well as unit testsMarcelo Lira2009-08-258-0/+166
|
* fixed list conversions on test bindings to use PySequence functionsMarcelo Lira2009-08-251-2/+2
| | | | instead of erroneous PyTuple functions
* added unit tests for stl::pair and stl::list conversions on libsampleMarcelo Lira2009-08-245-6/+169
|
* The End Is the Beginning Is the EndMarcelo Lira2009-08-1746-0/+2488