aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added a better support for resolution of enum value attribution.Marcelo Lira2012-03-092-0/+74
| | | | | | | Plus tests. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Private enums are now accepted in the type system database.Marcelo Lira2012-03-092-0/+44
| | | | | This is done to allow enum value evaluation. Comes together with a nice test.
* Improved resolution of enum value attributions.Marcelo Lira2012-03-092-2/+54
| | | | | | | | In particular when an enum item is set to the value of an item from other enum. The code for this was moved to the method AbstractMetaBuilder::findOutValueFromString. Tests were added as well. s# ../tests/.testenum.h.swp
* Fixed AbstractMetaBuilder to handle enum values receiving boolean values.Marcelo Lira2012-03-091-3/+40
| | | | | | | | | | | | | | | | In other words, this enum { Positive = true, Negative = false }; is now properly recognized. Tests were added as usual. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Argument types that are arrays with specified sizes are correctly recognized.Marcelo Lira2012-03-093-0/+159
| | | | | | | | | | | The AbstractMetaBuilder::translateType method now tries to figure out properly the size of array argument types specified with enum items instead of literal numbers. Test cases were also added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for global enums.Marcelo Lira2012-03-092-0/+38
| | | | | They check if the AbstractMetaEnumValues hold the correct value information about the enum item described.
* Updates tests to use nesting of type declarations.Marcelo Lira2012-03-095-17/+147
| | | | | | | Also added a new cases to test the nesting of type tags a bit more. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for anonymous enums.Marcelo Lira2012-03-092-0/+31
|
* Fixed function modification propagation.Renato Filho2012-03-092-0/+87
| | | | | | | Now all modifications on base function will be propagate until a new modification was found. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Lauro Moura <lauro.neto@openbossa.org>
* Created function to discovery when a class implement a container type.Renato Filho2012-03-093-0/+97
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* If a class have a non final method doesn't mean that class is polymorphic.Hugo Parente Lima2012-03-092-0/+33
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>
* Make libxml2 and libxslt optional dependencies.Hugo Parente Lima2012-03-091-1/+3
|
* Fixed memory leak.Renato Filho2012-03-091-2/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#260 - "Can't modify argument name of a function added with ↵Hugo Parente Lima2012-03-092-0/+28
| | | | add-function tag."
* Added test for a class inheriting from a container template.Marcelo Lira2012-03-092-0/+37
| | | | | The test is simple and only checks if the classes were inherited properly.
* Added test for class member inside a two nested namespaces.Marcelo Lira2012-03-092-0/+30
|
* Added test for template inheritance involving forward declaration and namespace.Marcelo Lira2012-03-092-0/+36
| | | | | | | This test case is similar to a previous test with forward declaration except that this time everything is inside a namespace. This slightly different situation could trigger problems in a different place on AbstractMetaBuilder.
* Adds test case to namespace members, namely enums and functions.Marcelo Lira2012-03-093-0/+94
|
* Added test for template inheritance involving a forward declaration.Marcelo Lira2012-03-092-0/+33
| | | | | When things goes awry methods from the template parent class got duplicated in the inheriting class.
* Added test for type resolution order.Marcelo Lira2012-03-093-2/+97
| | | | | | Methods or functions signatures using any type from the library being wrapped must be processed after all the library types or else the function/method will be rejected.
* Created test for namespace resolution name.Renato Filho2012-03-092-0/+44
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Only display warning for unnamed arguments when this argument hasRenato Filho2012-03-091-1/+1
| | | | default value.
* Enable warning for arguments without name.Renato Filho2012-03-091-6/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Implemented support to "rename to" in argument modificationRenato Filho2012-03-092-0/+33
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Added the "default-constructor" attribute to the "primitive-type" tag.Marcelo Lira2012-03-093-0/+92
| | | | | | | | | The default-constructor attribute specifies a way to build an instance of a class declared as primitive type using default arguments. Documentation and a test were also added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* The initialisation of TypeDatabase must happen first in TestUtil constructor.Marcelo Lira2012-03-091-2/+3
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araujo <renato.filho@openbossa.org>
* Created unittest to flag "since".Renato Filho2012-03-0913-8/+205
|
* Add more tests for hasNonPrivateCtor method, when the type is a alias for a ↵Hugo Parente Lima2012-03-092-3/+25
| | | | template class.
* Added tests for template instanciations using enum values, all under a nice ↵Hugo Parente Lima2012-03-093-0/+110
| | | | | | | namespace. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
* Adding tests for 'void' argument in functionsLauro Neto2012-03-093-0/+119
|
* Merge remote branch 'luck/fixprivctor'Luciano Wolf2012-03-093-0/+89
|\
| * Update class info once a default ctor is added.Luciano Wolf2012-03-093-0/+89
| |
* | 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>