diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-11-03 11:50:29 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-11-03 11:50:29 +0000 |
commit | e43cc574e49cd8173e157d8c31973f709a4cb7ec (patch) | |
tree | d75b191c42107c441a510e27f1be81f2a3993fe4 /gentest.py | |
parent | 348636d2af91eabd1cc46ffd120cb7bf7c17e8b4 (diff) | |
download | libxml2-e43cc574e49cd8173e157d8c31973f709a4cb7ec.tar.gz |
more fixes and extending the tests coverage more hardeing of APIs skip
* gentest.py testapi.c: more fixes and extending the tests coverage
* xmlwriter.c list.c: more hardeing of APIs
* doc/apibuild.py: skip testapi.c when scanning the C files.
Daniel
Diffstat (limited to 'gentest.py')
-rwxr-xr-x | gentest.py | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -234,8 +234,9 @@ def type_convert(str, name, info, module, function, pos): return res known_param_types = [ "int", "const_char_ptr", "const_xmlChar_ptr", - "xmlParserCtxtPtr", "xmlDocPtr", "filepath", "fileoutput" , - "xmlNodePtr", "xmlNodePtr_in", "userdata", "xmlChar_ptr" ]; + "xmlParserCtxtPtr", "xmlDocPtr", "filepath", "fileoutput", + "xmlNodePtr", "xmlNodePtr_in", "userdata", "xmlChar_ptr", + "xmlTextWriterPtr" ]; def is_known_param_type(name): for type in known_param_types: @@ -369,6 +370,15 @@ static xmlNodePtr gen_xmlNodePtr_in(int no) { static void des_xmlNodePtr_in(int no ATTRIBUTE_UNUSED, xmlNodePtr val ATTRIBUTE_UNUSED) { } +#define gen_nb_xmlTextWriterPtr 2 +static xmlTextWriterPtr gen_xmlTextWriterPtr(int no) { + if (no == 0) return(xmlNewTextWriterFilename("test.out", 0)); + return(NULL); +} +static void des_xmlTextWriterPtr(int no ATTRIBUTE_UNUSED, xmlTextWriterPtr val) { + if (val != NULL) xmlFreeTextWriter(val); +} + """); # |