Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Chromium | third_party/libxml/src/testapi.c | static void des_htmlDocPtr(int no ATTRIBUTE_UNUSED,
htmlDocPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
if ((val != NULL) && (val != api_doc) && (val->doc != api_doc))
xmlFreeDoc(val);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static htmlParserCtxtPtr gen_htmlParserCtxtPtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
if (no == 0)
return (xmlNewParserCtxt());
if (no == 1)
return (htmlCreateMemoryParserCtxt("<html/>", 7));
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlNodeSetPtr gen_xmlNodeSetPtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void **gen_void_ptr_ptr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static void des_xmlAttributeDefault(int no ATTRIBUTE_UNUSED,
xmlAttributeDefault val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {}
#define gen_nb_xmlAttributeType 4 | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static void
des_xmlBufferAllocationScheme(int no ATTRIBUTE_UNUSED,
xmlBufferAllocationScheme val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static void
des_xmlElementContentType(int no ATTRIBUTE_UNUSED,
xmlElementContentType val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {}
#define gen_nb_xmlElementTypeVal 4 | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlFeature gen_xmlFeature(int no, int nr ATTRIBUTE_UNUSED) {
if (no == 1)
return (XML_WITH_AUTOMATA);
if (no == 2)
return (XML_WITH_C14N);
if (no == 3)
return (XML_WITH_CATALOG);
if (no == 4)
return (XML_WITH_DEBUG);
return (0);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static void des_xmlSchemaValType(int no ATTRIBUTE_UNUSED,
xmlSchemaValType val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static void des_xmlSchemaWhitespaceValueType(
int no ATTRIBUTE_UNUSED, xmlSchemaWhitespaceValueType val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {}
#endif
#include <libxml/HTMLparser.h>
#include <libxml/HTMLtree.h>
#include <libxml/SAX2.h>
#include <libxml/c14n.h>
#include <libxml/catalog.h>
#include <libx... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int testlibxml2(void) {
int test_ret = 0;
test_ret += test_HTMLparser();
test_ret += test_HTMLtree();
test_ret += test_SAX2();
test_ret += test_c14n();
test_ret += test_catalog();
test_ret += test_chvalid();
test_ret += test_debugXML();
test_ret += test_dict();
test_ret += test_encoding();
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static htmlNodePtr gen_htmlNodePtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_htmlSAXHandlerPtr(int no ATTRIBUTE_UNUSED,
htmlSAXHandlerPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {}
#endif | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_htmlNewParserCtxt(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED)
int mem_base;
htmlParserCtxtPtr ret_val;
mem_base = xmlMemBlocks();
ret_val = htmlNewParserCtxt();
desret_htmlParserCtxtPtr(ret_val);
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_htmlNodeStatus(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED)
int mem_base;
htmlStatus ret_val;
htmlNodePtr node;
int n_node;
int legacy; /* whether to allow deprecated elements (YES is faster here for
Element nodes) */
int n_legacy;
for (n_node = 0; n_node... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_htmlParseDocument(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED)
int mem_base;
int ret_val;
htmlParserCtxtPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_htmlParserCtxtPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_htmlParserCtxtPtr(n_ctxt, 0);
ret_v... | [
1,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_htmlReadFile(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED)
int mem_base;
htmlDocPtr ret_val;
const char *filename;
int n_filename;
char *encoding; /* the document encoding, or NULL */
int n_encoding;
int options; /* a combination of htmlParserOption(s) */
int n_options;
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_htmlDocContentDumpOutput(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
xmlOutputBufferPtr buf;
int n_buf;
xmlDocPtr cur; /* the document */
int n_cur;
char *encoding; /* the encoding string */
int n_encoding;
for (n_buf = 0... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlChar **gen_xmlChar_ptr_ptr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_htmlDocDumpMemoryFormat(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
xmlDocPtr cur;
int n_cur;
xmlChar **mem; /* OUT: the memory pointer */
int n_mem;
int *size; /* OUT: the memory length */
int n_size;
int format; /* shoul... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_htmlIsBooleanAttr(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED)
int mem_base;
int ret_val;
xmlChar *name;
int n_name;
for (n_name = 0; n_name < gen_nb_const_xmlChar_ptr; n_name++) {
mem_base = xmlMemBlocks();
name = gen_const_xmlChar_ptr(n_name, 0);
ret_val = html... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_htmlNewDocNoDtD(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED)
int mem_base;
htmlDocPtr ret_val;
xmlChar *URI;
int n_URI;
xmlChar *ExternalID; /* the external ID of the DTD, or NULL */
int n_ExternalID;
for (n_URI = 0; n_URI < gen_nb_const_xmlChar_ptr; n_URI++) {
for (n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_htmlNodeDumpOutput(void) {
int test_ret = 0;
#if defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
xmlOutputBufferPtr buf;
int n_buf;
xmlDocPtr doc; /* the document */
int n_doc;
xmlNodePtr cur; /* the current node */
int n_cur;
char *encoding; /* the encodi... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlDefaultSAXHandlerInit(void) {
int test_ret = 0;
int mem_base;
mem_base = xmlMemBlocks();
xmlDefaultSAXHandlerInit();
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %d blocks found in xmlDefaultSAXHandlerInit",
xmlMemBlocks() - me... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlEnumerationPtr gen_xmlEnumerationPtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2Comment(void) {
int test_ret = 0;
int mem_base;
void *ctx;
int n_ctx;
xmlChar *value; /* the xmlSAX2Comment content */
int n_value;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
for (n_value = 0; n_value < gen_nb_const_xmlChar_ptr; n_value++) {
mem_base = xmlMemBlo... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2EndDocument(void) {
int test_ret = 0;
int mem_base;
void *ctx;
int n_ctx;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
mem_base = xmlMemBlocks();
ctx = gen_void_ptr(n_ctx, 0);
xmlSAX2EndDocument(ctx);
call_tests++;
des_void_ptr(n_ctx, ctx, 0);
xmlResetL... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2ExternalSubset(void) {
int test_ret = 0;
int mem_base;
void *ctx;
int n_ctx;
xmlChar *name; /* the root element name */
int n_name;
xmlChar *ExternalID; /* the external ID */
int n_ExternalID;
xmlChar *SystemID; /* the SYSTEM ID (e.g. filename or URL) */
int n_SystemID;
fo... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2GetParameterEntity(void) {
int test_ret = 0;
int mem_base;
xmlEntityPtr ret_val;
void *ctx;
int n_ctx;
xmlChar *name; /* The entity name */
int n_name;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
for (n_name = 0; n_name < gen_nb_const_xmlChar_ptr; n_name++) {
m... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2GetPublicId(void) {
int test_ret = 0;
int mem_base;
const xmlChar *ret_val;
void *ctx;
int n_ctx;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
mem_base = xmlMemBlocks();
ctx = gen_void_ptr(n_ctx, 0);
ret_val = xmlSAX2GetPublicId(ctx);
desret_const_xmlChar_ptr... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2GetSystemId(void) {
int test_ret = 0;
int mem_base;
const xmlChar *ret_val;
void *ctx;
int n_ctx;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
mem_base = xmlMemBlocks();
ctx = gen_void_ptr(n_ctx, 0);
ret_val = xmlSAX2GetSystemId(ctx);
desret_const_xmlChar_ptr... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2HasExternalSubset(void) {
int test_ret = 0;
int mem_base;
int ret_val;
void *ctx;
int n_ctx;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
mem_base = xmlMemBlocks();
ctx = gen_void_ptr(n_ctx, 0);
ret_val = xmlSAX2HasExternalSubset(ctx);
desret_int(ret_val);
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2HasInternalSubset(void) {
int test_ret = 0;
int mem_base;
int ret_val;
void *ctx;
int n_ctx;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
mem_base = xmlMemBlocks();
ctx = gen_void_ptr(n_ctx, 0);
ret_val = xmlSAX2HasInternalSubset(ctx);
desret_int(ret_val);
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2InitDocbDefaultSAXHandler(void) {
int test_ret = 0;
#if defined(LIBXML_DOCB_ENABLED)
int mem_base;
xmlSAXHandler *hdlr;
int n_hdlr;
for (n_hdlr = 0; n_hdlr < gen_nb_xmlSAXHandler_ptr; n_hdlr++) {
mem_base = xmlMemBlocks();
hdlr = gen_xmlSAXHandler_ptr(n_hdlr, 0);
xmlSAX2I... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2Reference(void) {
int test_ret = 0;
int mem_base;
void *ctx;
int n_ctx;
xmlChar *name; /* The entity name */
int n_name;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
for (n_name = 0; n_name < gen_nb_const_xmlChar_ptr; n_name++) {
mem_base = xmlMemBlocks();
c... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2ResolveEntity(void) {
int test_ret = 0;
int mem_base;
xmlParserInputPtr ret_val;
void *ctx;
int n_ctx;
xmlChar *publicId; /* The public ID of the entity */
int n_publicId;
xmlChar *systemId; /* The system ID of the entity */
int n_systemId;
for (n_ctx = 0; n_ctx < gen_nb_voi... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAX2SetDocumentLocator(void) {
int test_ret = 0;
int mem_base;
void *ctx;
int n_ctx;
xmlSAXLocatorPtr loc; /* A SAX Locator */
int n_loc;
for (n_ctx = 0; n_ctx < gen_nb_void_ptr; n_ctx++) {
for (n_loc = 0; n_loc < gen_nb_xmlSAXLocatorPtr; n_loc++) {
mem_base = xmlMemBlocks()... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAXDefaultVersion(void) {
int test_ret = 0;
#if defined(LIBXML_SAX1_ENABLED)
#ifdef LIBXML_SAX1_ENABLED
int mem_base;
int ret_val;
int version;
int n_version;
for (n_version = 0; n_version < gen_nb_int; n_version++) {
mem_base = xmlMemBlocks();
version = gen_int(n_version, 0);
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlCatalogPtr gen_xmlCatalogPtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlCatalogConvert(void) {
int test_ret = 0;
#if defined(LIBXML_CATALOG_ENABLED)
int ret_val;
ret_val = xmlCatalogConvert();
desret_int(ret_val);
call_tests++;
xmlResetLastError();
function_tests++;
#endif
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCatalogRemove(void) {
int test_ret = 0;
#if defined(LIBXML_CATALOG_ENABLED)
int ret_val;
xmlChar *value;
int n_value;
for (n_value = 0; n_value < gen_nb_const_xmlChar_ptr; n_value++) {
value = gen_const_xmlChar_ptr(n_value, 0);
ret_val = xmlCatalogRemove((const xmlChar *)value);
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCatalogResolveSystem(void) {
int test_ret = 0;
#if defined(LIBXML_CATALOG_ENABLED)
int mem_base;
xmlChar *ret_val;
xmlChar *sysID;
int n_sysID;
for (n_sysID = 0; n_sysID < gen_nb_const_xmlChar_ptr; n_sysID++) {
mem_base = xmlMemBlocks();
sysID = gen_const_xmlChar_ptr(n_sysID, 0)... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCatalogSetDefaults(void) {
int test_ret = 0;
#if defined(LIBXML_CATALOG_ENABLED)
int mem_base;
xmlCatalogAllow allow;
int n_allow;
for (n_allow = 0; n_allow < gen_nb_xmlCatalogAllow; n_allow++) {
mem_base = xmlMemBlocks();
allow = gen_xmlCatalogAllow(n_allow, 0);
xmlCatalogSe... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_chvalid(void) {
int test_ret = 0;
if (quiet == 0)
printf("Testing chvalid : 9 of 9 functions ...\n");
test_ret += test_xmlCharInRange();
test_ret += test_xmlIsBaseChar();
test_ret += test_xmlIsBlank();
test_ret += test_xmlIsChar();
test_ret += test_xmlIsCombining();
test_ret += tes... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlDebugCheckDocument(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED)
int mem_base;
int ret_val;
FILE *output;
int n_output;
xmlDocPtr doc; /* the document */
int n_doc;
for (n_output = 0; n_output < gen_nb_debug_FILE_ptr; n_output++) {
for (n_doc = 0; n_doc < gen_nb_xm... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlDebugDumpAttrList(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED)
int mem_base;
FILE *output;
int n_output;
xmlAttrPtr attr; /* the attribute list */
int n_attr;
int depth; /* the indentation level. */
int n_depth;
for (n_output = 0; n_output < gen_nb_debug_FILE_ptr; n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlDebugDumpString(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED)
int mem_base;
FILE *output;
int n_output;
xmlChar *str; /* the string */
int n_str;
for (n_output = 0; n_output < gen_nb_debug_FILE_ptr; n_output++) {
for (n_str = 0; n_str < gen_nb_const_xmlChar_ptr; n_st... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlLsCountNode(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED)
int mem_base;
int ret_val;
xmlNodePtr node;
int n_node;
for (n_node = 0; n_node < gen_nb_xmlNodePtr; n_node++) {
mem_base = xmlMemBlocks();
node = gen_xmlNodePtr(n_node, 0);
ret_val = xmlLsCountNode(nod... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlLsOneNode(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED)
int mem_base;
FILE *output;
int n_output;
xmlNodePtr node; /* the node to dump */
int n_node;
for (n_output = 0; n_output < gen_nb_debug_FILE_ptr; n_output++) {
for (n_node = 0; n_node < gen_nb_xmlNodePtr; n_nod... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlShellDir(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED)
int mem_base;
int ret_val;
xmlShellCtxtPtr ctxt;
int n_ctxt;
char *arg; /* unused */
int n_arg;
xmlNodePtr node; /* a node */
int n_node;
xmlNodePtr node2; /* unused */
int n_n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlShellLoad(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED)
int mem_base;
int ret_val;
xmlShellCtxtPtr ctxt;
int n_ctxt;
char *filename; /* the file name */
int n_filename;
xmlNodePtr node; /* unused */
int n_node;
xmlNodePtr node2; /* u... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlShellPwd(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED)
int mem_base;
int ret_val;
xmlShellCtxtPtr ctxt;
int n_ctxt;
char *buffer; /* the output buffer */
int n_buffer;
xmlNodePtr node; /* a node */
int n_node;
xmlNodePtr node2; /* un... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlShellSave(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && \
defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
int ret_val;
xmlShellCtxtPtr ctxt;
int n_ctxt;
char *filename; /* the file name (optional) */
int n_filename;
xmlNodeP... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlShellValidate(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && \
defined(LIBXML_VALID_ENABLED)
int mem_base;
int ret_val;
xmlShellCtxtPtr ctxt;
int n_ctxt;
char *dtd; /* the DTD URI (optional) */
int n_dtd;
xmlNodePtr node; ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlShellWrite(void) {
int test_ret = 0;
#if defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED) && \
defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
int ret_val;
xmlShellCtxtPtr ctxt;
int n_ctxt;
char *filename; /* the file name */
int n_filename;
xmlNodePtr node; /... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_debugXML(void) {
int test_ret = 0;
if (quiet == 0)
printf("Testing debugXML : 25 of 28 functions ...\n");
test_ret += test_xmlBoolToText();
test_ret += test_xmlDebugCheckDocument();
test_ret += test_xmlDebugDumpAttr();
test_ret += test_xmlDebugDumpAttrList();
test_ret += test_xmlDebu... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlDictSize(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlDictPtr dict;
int n_dict;
for (n_dict = 0; n_dict < gen_nb_xmlDictPtr; n_dict++) {
mem_base = xmlMemBlocks();
dict = gen_xmlDictPtr(n_dict, 0);
ret_val = xmlDictSize(dict);
desret_int(ret_val);
call_te... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlCharEncodingHandler *
gen_xmlCharEncodingHandler_ptr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCharEncFirstLine(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlCharEncodingHandler *handler;
int n_handler;
xmlBufferPtr out; /* an xmlBuffer for the output. */
int n_out;
xmlBufferPtr in; /* an xmlBuffer for the input */
int n_in;
for (n_handler = 0; n_handler < gen_n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlCleanupCharEncodingHandlers(void) {
int test_ret = 0;
xmlCleanupCharEncodingHandlers();
call_tests++;
xmlResetLastError();
function_tests++;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlCleanupEncodingAliases(void) {
int test_ret = 0;
int mem_base;
mem_base = xmlMemBlocks();
xmlCleanupEncodingAliases();
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %d blocks found in xmlCleanupEncodingAliases",
xmlMemBlocks() -... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlRegisterCharEncodingHandler(void) {
int test_ret = 0;
int mem_base;
xmlCharEncodingHandlerPtr handler;
int n_handler;
for (n_handler = 0; n_handler < gen_nb_xmlCharEncodingHandlerPtr;
n_handler++) {
mem_base = xmlMemBlocks();
handler = gen_xmlCharEncodingHandlerPtr(n_handle... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_xmlEntitiesTablePtr(int no ATTRIBUTE_UNUSED,
xmlEntitiesTablePtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_const_xmlDoc_ptr(int no ATTRIBUTE_UNUSED,
const xmlDoc *val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlEncodeSpecialChars(void) {
int test_ret = 0;
int mem_base;
xmlChar *ret_val;
xmlDoc *doc;
int n_doc;
xmlChar *input; /* A string to convert to XML. */
int n_input;
for (n_doc = 0; n_doc < gen_nb_const_xmlDoc_ptr; n_doc++) {
for (n_input = 0; n_input < gen_nb_const_xmlChar_ptr; n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlGetDocEntity(void) {
int test_ret = 0;
int mem_base;
xmlEntityPtr ret_val;
xmlDoc *doc;
int n_doc;
xmlChar *name; /* the entity name */
int n_name;
for (n_doc = 0; n_doc < gen_nb_const_xmlDoc_ptr; n_doc++) {
for (n_name = 0; n_name < gen_nb_const_xmlChar_ptr; n_name++) {
m... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlGetDtdEntity(void) {
int test_ret = 0;
int mem_base;
xmlEntityPtr ret_val;
xmlDocPtr doc;
int n_doc;
xmlChar *name; /* the entity name */
int n_name;
for (n_doc = 0; n_doc < gen_nb_xmlDocPtr; n_doc++) {
for (n_name = 0; n_name < gen_nb_const_xmlChar_ptr; n_name++) {
mem_ba... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlHashDefaultDeallocator(void) {
int test_ret = 0;
int mem_base;
void *entry;
int n_entry;
xmlChar *name; /* the entry's name */
int n_name;
for (n_entry = 0; n_entry < gen_nb_void_ptr; n_entry++) {
for (n_name = 0; n_name < gen_nb_const_xmlChar_ptr; n_name++) {
mem_base = xml... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlHashLookup(void) {
int test_ret = 0;
int mem_base;
void *ret_val;
xmlHashTablePtr table;
int n_table;
xmlChar *name; /* the name of the userdata */
int n_name;
for (n_table = 0; n_table < gen_nb_xmlHashTablePtr; n_table++) {
for (n_name = 0; n_name < gen_nb_const_xmlChar_ptr; n_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlHashLookup3(void) {
int test_ret = 0;
int mem_base;
void *ret_val;
xmlHashTablePtr table;
int n_table;
xmlChar *name; /* the name of the userdata */
int n_name;
xmlChar *name2; /* a second name of the userdata */
int n_name2;
xmlChar *name3; /* a third name of the userdata */
i... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlHashRemoveEntry2(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlHashTablePtr table;
int n_table;
xmlChar *name; /* the name of the userdata */
int n_name;
xmlChar *name2; /* a second name of the userdata */
int n_name2;
xmlHashDeallocator f; /* the deallocator function f... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlLinkPtr gen_xmlLinkPtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_xmlLinkPtr(int no ATTRIBUTE_UNUSED,
xmlLinkPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlLinkGetData(void) {
int test_ret = 0;
int mem_base;
void *ret_val;
xmlLinkPtr lk;
int n_lk;
for (n_lk = 0; n_lk < gen_nb_xmlLinkPtr; n_lk++) {
mem_base = xmlMemBlocks();
lk = gen_xmlLinkPtr(n_lk, 0);
ret_val = xmlLinkGetData(lk);
desret_void_ptr(ret_val);
call_tests... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlListClear(void) {
int test_ret = 0;
int mem_base;
xmlListPtr l;
int n_l;
for (n_l = 0; n_l < gen_nb_xmlListPtr; n_l++) {
mem_base = xmlMemBlocks();
l = gen_xmlListPtr(n_l, 0);
xmlListClear(l);
call_tests++;
des_xmlListPtr(n_l, l, 0);
xmlResetLastError();
if (m... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlListCopy(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlListPtr cur;
int n_cur;
xmlListPtr old; /* the old list */
int n_old;
for (n_cur = 0; n_cur < gen_nb_xmlListPtr; n_cur++) {
for (n_old = 0; n_old < gen_nb_const_xmlListPtr; n_old++) {
mem_base = xmlMemBlocks(... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlListEmpty(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlListPtr l;
int n_l;
for (n_l = 0; n_l < gen_nb_xmlListPtr; n_l++) {
mem_base = xmlMemBlocks();
l = gen_xmlListPtr(n_l, 0);
ret_val = xmlListEmpty(l);
desret_int(ret_val);
call_tests++;
des_xmlList... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlListReverseWalk(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlListSort(void) {
int test_ret = 0;
int mem_base;
xmlListPtr l;
int n_l;
for (n_l = 0; n_l < gen_nb_xmlListPtr; n_l++) {
mem_base = xmlMemBlocks();
l = gen_xmlListPtr(n_l, 0);
xmlListSort(l);
call_tests++;
des_xmlListPtr(n_l, l, 0);
xmlResetLastError();
if (mem... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNanoFTPGet(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNanoFTPOpen(void) {
int test_ret = 0;
#if defined(LIBXML_FTP_ENABLED)
int mem_base;
void *ret_val;
const char *URL;
int n_URL;
for (n_URL = 0; n_URL < gen_nb_filepath; n_URL++) {
mem_base = xmlMemBlocks();
URL = gen_filepath(n_URL, 0);
ret_val = xmlNanoFTPOpen(URL);
des... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNanoFTPProxy(void) {
int test_ret = 0;
#if defined(LIBXML_FTP_ENABLED)
char *host;
int n_host;
int port; /* the proxy port */
int n_port;
char *user; /* the proxy user name */
int n_user;
char *passwd; /* the proxy password */
int n_passwd;
int type; /* the type of proxy 1 for us... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNanoFTPQuit(void) {
int test_ret = 0;
#if defined(LIBXML_FTP_ENABLED)
int mem_base;
int ret_val;
void *ctx;
int n_ctx;
for (n_ctx = 0; n_ctx < gen_nb_xmlNanoFTPCtxtPtr; n_ctx++) {
mem_base = xmlMemBlocks();
ctx = gen_xmlNanoFTPCtxtPtr(n_ctx, 0);
ret_val = xmlNanoFTPQuit(ctx... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlNanoHTTPInit(void) {
int test_ret = 0;
#if defined(LIBXML_HTTP_ENABLED)
int mem_base;
mem_base = xmlMemBlocks();
xmlNanoHTTPInit();
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %d blocks found in xmlNanoHTTPInit",
xmlMemBlocks(... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlClearNodeInfoSeq(void) {
int test_ret = 0;
int mem_base;
xmlParserNodeInfoSeqPtr seq;
int n_seq;
for (n_seq = 0; n_seq < gen_nb_xmlParserNodeInfoSeqPtr; n_seq++) {
mem_base = xmlMemBlocks();
seq = gen_xmlParserNodeInfoSeqPtr(n_seq, 0);
xmlClearNodeInfoSeq(seq);
call_tests... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlClearParserCtxt(void) {
int test_ret = 0;
int mem_base;
xmlParserCtxtPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlParserCtxtPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0);
xmlClearParserCtxt(ctxt);
call_tests++;
des_xml... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCtxtReadFile(void) {
int test_ret = 0;
int mem_base;
xmlDocPtr ret_val;
xmlParserCtxtPtr ctxt;
int n_ctxt;
const char *filename; /* a file or URL */
int n_filename;
char *encoding; /* the document encoding, or NULL */
int n_encoding;
int options; /* a combination of xmlParserOpti... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlGetExternalEntityLoader(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_const_char_ptr_ptr(int no ATTRIBUTE_UNUSED,
const char **val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlInitParserCtxt(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlParserCtxtPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlParserCtxtPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_xmlParserCtxtPtr(n_ctxt, 0);
ret_val = xmlInitParserCtxt(ctxt);
de... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlLineNumbersDefault(void) {
int test_ret = 0;
int mem_base;
int ret_val;
int val;
int n_val;
for (n_val = 0; n_val < gen_nb_int; n_val++) {
mem_base = xmlMemBlocks();
val = gen_int(n_val, 0);
ret_val = xmlLineNumbersDefault(val);
desret_int(ret_val);
call_tests++;
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlParseCtxtExternalEntity(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlParserCtxtPtr ctx;
int n_ctx;
xmlChar *URL; /* the URL for the entity to load */
int n_URL;
xmlChar *ID; /* the System ID for the entity to load */
int n_ID;
xmlNodePtr *lst; /* the return value for t... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void
des_const_xmlParserNodeInfoPtr(int no ATTRIBUTE_UNUSED,
const xmlParserNodeInfoPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlParserAddNodeInfo(void) {
int test_ret = 0;
int mem_base;
xmlParserCtxtPtr ctxt;
int n_ctxt;
xmlParserNodeInfoPtr info; /* a node info sequence pointer */
int n_info;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlParserCtxtPtr; n_ctxt++) {
for (n_info = 0; n_info < gen_nb_const_xmlParserNod... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlParserCtxtPtr gen_const_xmlParserCtxtPtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlNodePtr gen_const_xmlNodePtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_const_xmlNodePtr(int no ATTRIBUTE_UNUSED,
const xmlNodePtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlParserFindNodeInfo(void) {
int test_ret = 0;
int mem_base;
const xmlParserNodeInfo *ret_val;
xmlParserCtxtPtr ctx;
int n_ctx;
xmlNodePtr node; /* an XML node within the tree */
int n_node;
for (n_ctx = 0; n_ctx < gen_nb_const_xmlParserCtxtPtr; n_ctx++) {
for (n_node = 0; n_node ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_const_xmlParserNodeInfoSeqPtr(
int no ATTRIBUTE_UNUSED, const xmlParserNodeInfoSeqPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlParserFindNodeInfoIndex(void) {
int test_ret = 0;
int mem_base;
unsigned long ret_val;
xmlParserNodeInfoSeqPtr seq;
int n_seq;
xmlNodePtr node; /* an XML node pointer */
int n_node;
for (n_seq = 0; n_seq < gen_nb_const_xmlParserNodeInfoSeqPtr; n_seq++) {
for (n_node = 0; n_node ... | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.