aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* TypeDatabase class moved to its own header/cpp.Hugo Parente Lima2012-03-091-0/+1
|
* Added the "function" tag to ApiExtractor.Hugo Parente Lima2012-03-095-4/+107
| | | | | | | | | | | | | | | This change the behaviour of ApiExtractor regarding to global functions. All global function you want to be exported to python *need* to be especified in the type system with the function tag, otherwise they wont be exported at all. The syntax for this new tag is: <function signature="..." /> This is just the initial work for this tag, it is missign support for: - Function modifications. - Add a function overload with add-function tag.
* Adds reverse operator functions to the proper classes.Marcelo Lira2012-03-092-1/+49
| | | | | | | | | | | AbstractMetaBuilder::traverseOperatorFunction does additional checks to avoid mistaken a class' reverse operator as a direct operator of another class. An unit test was added to check for this case. Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Adds many tests regarding default copy constructors.Marcelo Lira2012-03-095-14/+206
| | | | | | | Also updated other tests dealing with constructor counting. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Tests if added constructor with custom type creates an implicit converter.Marcelo Lira2012-03-091-1/+9
|
* An inner class should not be polymorphic just because his enclosing class is.Marcelo Lira2012-03-092-0/+24
| | | | This commit adds a test for that situation.
* Meta type minimal signature should place reference symbol after pointer symbols.Marcelo Lira2012-03-093-0/+90
| | | | | | | | | | The minimalSignature method was placing '&' before '*'. For example, the signature "foo(Bar*&)" was becoming "foo(Bar&*)". An unit test was added to verify AbstractMetaType::minimalSignature(). Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
* Fix conversionoperator test code.Hugo Lima2010-03-041-5/+6
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Disable debug output about typesystem on conversionoperatortest.Hugo Lima2010-03-031-3/+3
|
* Remove Boost::graph dependence from ApiExtractor by using our own codeHugo Lima2010-03-034-0/+106
| | | | for graph topological sort.
* Don't add external conversion operators that were removed on type system file.Marcelo Lira2010-03-012-8/+59
| | | | | | With tests, of course. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* External conversion operators are now part of a class' implicit conversions.Marcelo Lira2010-02-262-0/+33
| | | | | | | AbstractMetaClass::implicitConversions() returns externally declared conversion operators in addition to its own implicit constructors. The implicit conversion tests where extended with the new case.
* Added method AbstractMetaBuilder::fixReturnTypeOfConversionOperator(func).Marcelo Lira2010-02-263-0/+107
| | | | | | | | | | The new method fixes the return type of conversion operators: they should return the target of the conversion as type and not the type of its owner class. fixReturnTypeOfConversionOperator is used in traverseFunctions. An unit test was added for this case. Note that this behaviour could be fixed in the parser. I dare you!
* Fix add-function tag when adding a global function.Hugo Lima2010-02-092-1/+26
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Remove debug output from unit test.Hugo Lima2010-02-091-2/+1
|
* Reactivated 'reference-count' tag.Marcelo Lira2010-02-093-7/+103
| | | | | | | | The type system tag '<reference-count action="Add|Remove|..."/>' used on argument modification was uncommented, documentation was written and a unit test was created for it. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Fix AbstractMetaFunction::implicitConversions.Hugo Lima2010-02-083-0/+163
| | | | | | | | | - Public ctors added by the user with 1 value-type parameter are always added to the implicity conversion list. - If the ctor visibility of an function was modified from public to private, the function isn't added to the result. Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Assumes utf-8 encoding for conversion rules stored in external files.Hugo Lima2010-02-081-0/+3
| | | | Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Code injection from external files are always read using UTF-8.Hugo Lima2010-02-084-0/+92
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Added tests for ownership modification.Hugo Lima2010-02-023-0/+94
|
* Allow a class to multiple inherit from various object-types.Hugo Lima2010-02-013-0/+108
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Test TestModifyDocumentation does not need X11 server connection to run.Hugo Lima2010-01-211-1/+6
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* When a constructor able to trigger implicity conversions is removedHugo Lima2010-01-203-0/+101
| | | | | | it should not appear in the implicity conversion list. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Added function can be tagged as static methods.Hugo Lima2010-01-072-0/+23
| | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Disable verbose output on tests.Hugo Lima2009-12-281-4/+4
|
* Adds support for varargs in AbstractMetaArgument, AbstractMetaType and ↵Marcelo Lira2009-12-162-1/+31
| | | | | | VarargsTypeEntry. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Adds support for module level 'add-function' tag.Marcelo Lira2009-12-162-0/+33
| | | | | | | | | The TypeDatabase now stores global added functions as well as function modifications. The AbstractMetaFunction::modifications method was improved to check for global modifications. The test suite was updated with the changes.
* Fixed support for modify args in add-function tag.renato2009-12-082-2/+35
| | | | | | Created tests. Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* Modified the AbstractMetaFunction class to have a separated flag toMarcelo Lira2009-11-242-4/+28
| | | | | | | | | | | indicate that it was added by the user or not, instead of using the AbstractMetaFunction::UserAddedFunction enum value. The old way prevented the function to be an UserAddedFunction and a ConstructorFunction at the same time, since this information was stored as an enum of the AbstractMetaFunction::FunctionType type. A test case was also added. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Added methods to set and check for protected and virtual destructorMarcelo Lira2009-11-243-0/+118
| | | | on AbstractMetaClass objects. Also added tests for this.
* Fix apiextractor unit tests.Hugo Lima2009-11-162-9/+9
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* - All reverse operators are now properly tagged as "reverse operator".Hugo Lima2009-11-093-0/+104
| | | | | | | - Reverse operators aren't tagged as static methods anymore. - Reverse operators now have just one parameter, the one that matters. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Added convenience method AbstractMetaFunction::injectedCodeSnips.Hugo Lima2009-10-301-2/+23
| | | | It returns all code snips in a function.
* Fix a crash when the function signature provided by add-function tag does notHugo Lima2009-10-292-0/+9
| | | | | | have parenteses. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* conversion-rule tag now works inside value-type and object-type tags.Marcelo Lira2009-10-263-0/+93
| | | | | To access the conversion rule, use the new method TypeEntry->conversionRule NOTE: this commit is a modification of code produced by Hugo Parente.
* Added functions aren't marked as virtual anymore.Hugo Lima2009-10-221-0/+5
| | | | Reviewed by Renato Araujo <renato.filho@openbossa.org>
* Added support for add-function tag into typesystem.Hugo Lima2009-10-212-15/+82
|
* Implemented a signature parser for the AddedFunction class.Hugo Lima2009-10-213-0/+117
|
* Avoid warning about an unused variable when not compiling as debug.Hugo Lima2009-10-211-0/+1
|
* Unit test to catch the bug#38.Hugo Lima2009-09-244-0/+116
|
* Reset the type database before runing each test.Hugo Lima2009-09-181-1/+1
|
* Add tests for defaultValue and originalDefaultValue methods.Hugo Lima2009-09-182-0/+55
|
* Revert "Fix a bug related to function default values."Hugo Lima2009-09-182-55/+0
| | | | | | This fix bring to much regressions. This reverts commit 752c22056f4ba61961a01819992f9af71a3b0416.
* Added more tests for APIExtractor.Hugo Lima2009-09-152-0/+32
|
* Fix a bug related to function default values.Hugo Lima2009-09-152-0/+55
| | | | | | | | ApiExtractor tries to modify the defaultValue every time, so then return value of originalDefaultValue() if diferent from the return value of defaultValue() when they dont need to be. Unit test included.
* Added more tests for AbstractMetaClass and AbstractMetaEnumHugo Lima2009-09-108-47/+431
|
* The genesis...Hugo Lima2009-08-173-0/+139