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 int test_xmlRecoverDoc(void) {
int test_ret = 0;
#if defined(LIBXML_SAX1_ENABLED)
#ifdef LIBXML_SAX1_ENABLED
int mem_base;
xmlDocPtr ret_val;
xmlChar *cur;
int n_cur;
for (n_cur = 0; n_cur < gen_nb_const_xmlChar_ptr; n_cur++) {
mem_base = xmlMemBlocks();
cur = gen_const_xmlChar_ptr(n_cur, 0... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlRecoverMemory(void) {
int test_ret = 0;
#if defined(LIBXML_SAX1_ENABLED)
#ifdef LIBXML_SAX1_ENABLED
int mem_base;
xmlDocPtr ret_val;
char *buffer;
int n_buffer;
int size; /* the size of the array */
int n_size;
for (n_buffer = 0; n_buffer < gen_nb_const_char_ptr; n_buffer++) {
f... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSAXParseDTD(void) {
int test_ret = 0;
#if defined(LIBXML_VALID_ENABLED)
#ifdef LIBXML_SAX1_ENABLED
int mem_base;
xmlDtdPtr ret_val;
xmlSAXHandlerPtr sax;
int n_sax;
xmlChar *ExternalID; /* a NAME* containing the External ID of the DTD */
int n_ExternalID;
xmlChar *SystemID; /* a NAME... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlStopParser(void) {
int test_ret = 0;
#ifdef LIBXML_PUSH_ENABLED
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);
xmlStopParser(ctxt);
call_tes... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSubstituteEntitiesDefault(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 = xmlSubstituteEntitiesDefault(val);
desret_int(ret_val);
ca... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_inputPop(void) {
int test_ret = 0;
int mem_base;
xmlParserInputPtr 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 = inputPop(ctxt);
desret... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_inputPush(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlParserCtxtPtr ctxt;
int n_ctxt;
xmlParserInputPtr value; /* the parser input */
int n_value;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlParserCtxtPtr; n_ctxt++) {
for (n_value = 0; n_value < gen_nb_xmlParserInputPtr; n_valu... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_nodePop(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr 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 = nodePop(ctxt);
desret_xmlNodeP... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCopyChar(void) {
int test_ret = 0;
int mem_base;
int ret_val;
int len;
int n_len;
xmlChar *out; /* pointer to an array of xmlChar */
int n_out;
int val; /* the char value */
int n_val;
for (n_len = 0; n_len < gen_nb_int; n_len++) {
for (n_out = 0; n_out < gen_nb_xmlChar_ptr;... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNextChar(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);
xmlNextChar(ctxt);
call_tests++;
des_xmlParserCtxtPtr(... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlStringCurrentChar(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlParserCtxtPtr ctxt;
int n_ctxt;
xmlChar *cur; /* pointer to the beginning of the char */
int n_cur;
int *len; /* pointer to the length of the char read */
int n_len;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlPar... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlPatternFromRoot(void) {
int test_ret = 0;
#if defined(LIBXML_PATTERN_ENABLED)
int mem_base;
int ret_val;
xmlPatternPtr comp;
int n_comp;
for (n_comp = 0; n_comp < gen_nb_xmlPatternPtr; n_comp++) {
mem_base = xmlMemBlocks();
comp = gen_xmlPatternPtr(n_comp, 0);
ret_val = xml... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlPatternGetStreamCtxt(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlPatternMaxDepth(void) {
int test_ret = 0;
#if defined(LIBXML_PATTERN_ENABLED)
int mem_base;
int ret_val;
xmlPatternPtr comp;
int n_comp;
for (n_comp = 0; n_comp < gen_nb_xmlPatternPtr; n_comp++) {
mem_base = xmlMemBlocks();
comp = gen_xmlPatternPtr(n_comp, 0);
ret_val = xml... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlPatternMinDepth(void) {
int test_ret = 0;
#if defined(LIBXML_PATTERN_ENABLED)
int mem_base;
int ret_val;
xmlPatternPtr comp;
int n_comp;
for (n_comp = 0; n_comp < gen_nb_xmlPatternPtr; n_comp++) {
mem_base = xmlMemBlocks();
comp = gen_xmlPatternPtr(n_comp, 0);
ret_val = xml... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlStreamPushAttr(void) {
int test_ret = 0;
#if defined(LIBXML_PATTERN_ENABLED)
int mem_base;
int ret_val;
xmlStreamCtxtPtr stream;
int n_stream;
xmlChar *name; /* the current name */
int n_name;
xmlChar *ns; /* the namespace name */
int n_ns;
for (n_stream = 0; n_stream < gen_nb_x... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlRelaxNGNewMemParserCtxt(void) {
int test_ret = 0;
#if defined(LIBXML_SCHEMAS_ENABLED)
int mem_base;
xmlRelaxNGParserCtxtPtr ret_val;
char *buffer;
int n_buffer;
int size; /* the size of the array */
int n_size;
for (n_buffer = 0; n_buffer < gen_nb_const_char_ptr; n_buffer++) {
f... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlRelaxNGSetParserErrors(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlRelaxNGValidatePushElement(void) {
int test_ret = 0;
#if defined(LIBXML_SCHEMAS_ENABLED)
int mem_base;
int ret_val;
xmlRelaxNGValidCtxtPtr ctxt;
int n_ctxt;
xmlDocPtr doc; /* a document instance */
int n_doc;
xmlNodePtr elem; /* an element instance */
int n_elem;
for (n_ctxt = 0... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlRelaxParserSetFlag(void) {
int test_ret = 0;
#if defined(LIBXML_SCHEMAS_ENABLED)
int mem_base;
int ret_val;
xmlRelaxNGParserCtxtPtr ctxt;
int n_ctxt;
int flags; /* a set of flags values */
int n_flags;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlRelaxNGParserCtxtPtr; n_ctxt++) {
for (n_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_relaxng(void) {
int test_ret = 0;
if (quiet == 0)
printf("Testing relaxng : 14 of 24 functions ...\n");
test_ret += test_xmlRelaxNGDump();
test_ret += test_xmlRelaxNGDumpTree();
test_ret += test_xmlRelaxNGGetParserErrors();
test_ret += test_xmlRelaxNGGetValidErrors();
test_ret += tes... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAddNextSibling(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr ret_val;
xmlNodePtr cur;
int n_cur;
xmlNodePtr elem; /* the new node */
int n_elem;
for (n_cur = 0; n_cur < gen_nb_xmlNodePtr; n_cur++) {
for (n_elem = 0; n_elem < gen_nb_xmlNodePtr_in; n_elem++) {
mem_base ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlBuf *gen_const_xmlBuf_ptr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlBufContent(void) {
int test_ret = 0;
int mem_base;
xmlChar *ret_val;
xmlBuf *buf;
int n_buf;
for (n_buf = 0; n_buf < gen_nb_const_xmlBuf_ptr; n_buf++) {
mem_base = xmlMemBlocks();
buf = gen_const_xmlBuf_ptr(n_buf, 0);
ret_val = xmlBufContent((const xmlBuf *)buf);
desret... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlNode *gen_const_xmlNode_ptr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlBufUse(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlBufferAdd(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlBufferPtr buf;
int n_buf;
xmlChar *str; /* the #xmlChar string */
int n_str;
int len; /* the number of #xmlChar to add */
int n_len;
for (n_buf = 0; n_buf < gen_nb_xmlBufferPtr; n_buf++) {
for (n_str = 0; n_st... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_const_xmlBuffer_ptr(int no ATTRIBUTE_UNUSED,
const xmlBuffer *val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlBufferLength(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlBuffer *buf;
int n_buf;
for (n_buf = 0; n_buf < gen_nb_const_xmlBuffer_ptr; n_buf++) {
mem_base = xmlMemBlocks();
buf = gen_const_xmlBuffer_ptr(n_buf, 0);
ret_val = xmlBufferLength((const xmlBuffer *)buf);... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlBufferWriteQuotedString(void) {
int test_ret = 0;
int mem_base;
xmlBufferPtr buf;
int n_buf;
xmlChar *string; /* the string to add */
int n_string;
for (n_buf = 0; n_buf < gen_nb_xmlBufferPtr; n_buf++) {
for (n_string = 0; n_string < gen_nb_const_xmlChar_ptr; n_string++) {
m... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCopyProp(void) {
int test_ret = 0;
int mem_base;
xmlAttrPtr ret_val;
xmlNodePtr target;
int n_target;
xmlAttrPtr cur; /* the attribute */
int n_cur;
for (n_target = 0; n_target < gen_nb_xmlNodePtr; n_target++) {
for (n_cur = 0; n_cur < gen_nb_xmlAttrPtr; n_cur++) {
mem_bas... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlGetCompressMode(void) {
int test_ret = 0;
int mem_base;
int ret_val;
mem_base = xmlMemBlocks();
ret_val = xmlGetCompressMode();
desret_int(ret_val);
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %d blocks found in xmlGetCompressMode",
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlGetProp(void) {
int test_ret = 0;
int mem_base;
xmlChar *ret_val;
xmlNode *node;
int n_node;
xmlChar *name; /* the attribute name */
int n_name;
for (n_node = 0; n_node < gen_nb_const_xmlNode_ptr; n_node++) {
for (n_name = 0; n_name < gen_nb_const_xmlChar_ptr; n_name++) {
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlIsBlankNode(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlNode *node;
int n_node;
for (n_node = 0; n_node < gen_nb_const_xmlNode_ptr; n_node++) {
mem_base = xmlMemBlocks();
node = gen_const_xmlNode_ptr(n_node, 0);
ret_val = xmlIsBlankNode((const xmlNode *)node);
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlLastElementChild(void) {
int test_ret = 0;
#if defined(LIBXML_TREE_ENABLED)
int mem_base;
xmlNodePtr ret_val;
xmlNodePtr parent;
int n_parent;
for (n_parent = 0; n_parent < gen_nb_xmlNodePtr; n_parent++) {
mem_base = xmlMemBlocks();
parent = gen_xmlNodePtr(n_parent, 0);
ret... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewCharRef(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr ret_val;
xmlDocPtr doc;
int n_doc;
xmlChar *name; /* the char ref string, starting with # or "&# ... ;" */
int n_name;
for (n_doc = 0; n_doc < gen_nb_xmlDocPtr; n_doc++) {
for (n_name = 0; n_name < gen_nb_const_xmlCha... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewDocPI(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr ret_val;
xmlDocPtr doc;
int n_doc;
xmlChar *name; /* the processing instruction name */
int n_name;
xmlChar *content; /* the PI content */
int n_content;
for (n_doc = 0; n_doc < gen_nb_xmlDocPtr; n_doc++) {
for (n_n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewDocProp(void) {
int test_ret = 0;
int mem_base;
xmlAttrPtr ret_val;
xmlDocPtr doc;
int n_doc;
xmlChar *name; /* the name of the attribute */
int n_name;
xmlChar *value; /* the value of the attribute */
int n_value;
for (n_doc = 0; n_doc < gen_nb_xmlDocPtr; n_doc++) {
for ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewDocText(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr ret_val;
xmlDoc *doc;
int n_doc;
xmlChar *content; /* the text content */
int n_content;
for (n_doc = 0; n_doc < gen_nb_const_xmlDoc_ptr; n_doc++) {
for (n_content = 0; n_content < gen_nb_const_xmlChar_ptr; n_content+... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewDtd(void) {
int test_ret = 0;
int mem_base;
xmlDtdPtr ret_val;
xmlDocPtr doc;
int n_doc;
xmlChar *name; /* the DTD name */
int n_name;
xmlChar *ExternalID; /* the external ID */
int n_ExternalID;
xmlChar *SystemID; /* the system ID */
int n_SystemID;
for (n_doc = 0; n_doc... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewReference(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr ret_val;
xmlDoc *doc;
int n_doc;
xmlChar *name; /* the reference name, or the reference string with & and ; */
int n_name;
for (n_doc = 0; n_doc < gen_nb_const_xmlDoc_ptr; n_doc++) {
for (n_name = 0; n_name < gen_nb... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewTextChild(void) {
int test_ret = 0;
#if defined(LIBXML_TREE_ENABLED)
#ifdef LIBXML_TREE_ENABLED
int mem_base;
xmlNodePtr ret_val;
xmlNodePtr parent;
int n_parent;
xmlNsPtr ns; /* a namespace if any */
int n_ns;
xmlChar *name; /* the name of the child */
int n_name;
xmlChar *co... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNextElementSibling(void) {
int test_ret = 0;
#if defined(LIBXML_TREE_ENABLED)
int mem_base;
xmlNodePtr 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 = xmlNe... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNodeAddContentLen(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr cur;
int n_cur;
xmlChar *content; /* extra content */
int n_content;
int len; /* the size of @content */
int n_len;
for (n_cur = 0; n_cur < gen_nb_xmlNodePtr; n_cur++) {
for (n_content = 0; n_content < gen_nb... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNodeSetSpacePreserve(void) {
int test_ret = 0;
#if defined(LIBXML_TREE_ENABLED)
int mem_base;
xmlNodePtr cur;
int n_cur;
int val; /* the xml:space value ("0": default, 1: "preserve") */
int n_val;
for (n_cur = 0; n_cur < gen_nb_xmlNodePtr; n_cur++) {
for (n_val = 0; n_val < gen_nb... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSaveFile(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
int ret_val;
const char *filename;
int n_filename;
xmlDocPtr cur; /* the document */
int n_cur;
for (n_filename = 0; n_filename < gen_nb_fileoutput; n_filename++) {
for (n_cur = 0; n_cur < gen_nb... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSaveFormatFile(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
int ret_val;
const char *filename;
int n_filename;
xmlDocPtr cur; /* the document */
int n_cur;
int format; /* should formatting spaces been added */
int n_format;
for (n_filename = 0; n_fi... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSearchNsByHref(void) {
int test_ret = 0;
int mem_base;
xmlNsPtr ret_val;
xmlDocPtr doc;
int n_doc;
xmlNodePtr node; /* the current node */
int n_node;
xmlChar *href; /* the namespace value */
int n_href;
for (n_doc = 0; n_doc < gen_nb_xmlDocPtr; n_doc++) {
for (n_node = 0; n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlStringLenGetNodeList(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr ret_val;
xmlDoc *doc;
int n_doc;
xmlChar *value; /* the value of the text */
int n_value;
int len; /* the length of the string value */
int n_len;
for (n_doc = 0; n_doc < gen_nb_const_xmlDoc_ptr; n_doc++) {
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextMerge(void) {
int test_ret = 0;
int mem_base;
xmlNodePtr ret_val;
xmlNodePtr first;
int n_first;
xmlNodePtr second; /* the second text node being merged */
int n_second;
for (n_first = 0; n_first < gen_nb_xmlNodePtr_in; n_first++) {
for (n_second = 0; n_second < gen_nb_xmlNo... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlUnsetProp(void) {
int test_ret = 0;
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
int mem_base;
int ret_val;
xmlNodePtr node;
int n_node;
xmlChar *name; /* the attribute name */
int n_name;
for (n_node = 0; n_node < gen_nb_xmlNodePtr; n_node++) {
for (n_nam... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlValidateName(void) {
int test_ret = 0;
#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
#ifdef LIBXML_TREE_ENABLED
int mem_base;
int ret_val;
xmlChar *value;
int n_value;
int space; /* allow spaces in front and end of the string */
int n_space;
for (n_value = 0; n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_xmlURIPtr(int no ATTRIBUTE_UNUSED,
xmlURIPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_uri(void) {
int test_ret = 0;
if (quiet == 0)
printf("Testing uri : 10 of 15 functions ...\n");
test_ret += test_xmlBuildRelativeURI();
test_ret += test_xmlBuildURI();
test_ret += test_xmlCanonicPath();
test_ret += test_xmlCreateURI();
test_ret += test_xmlNormalizeURIPath();
test_r... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAddRef(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCopyDocElementContent(void) {
int test_ret = 0;
int mem_base;
xmlElementContentPtr ret_val;
xmlDocPtr doc;
int n_doc;
xmlElementContentPtr cur; /* An element content pointer. */
int n_cur;
for (n_doc = 0; n_doc < gen_nb_xmlDocPtr; n_doc++) {
for (n_cur = 0; n_cur < gen_nb_xmlEle... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCopyNotationTable(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlAttributePtr gen_xmlAttributePtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlDumpAttributeDecl(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
xmlBufferPtr buf;
int n_buf;
xmlAttributePtr attr; /* An attribute declaration */
int n_attr;
for (n_buf = 0; n_buf < gen_nb_xmlBufferPtr; n_buf++) {
for (n_attr = 0; n_attr < gen_nb_xmlAt... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlDumpElementTable(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
xmlBufferPtr buf;
int n_buf;
xmlElementTablePtr table; /* An element table */
int n_table;
for (n_buf = 0; n_buf < gen_nb_xmlBufferPtr; n_buf++) {
for (n_table = 0; n_table < gen_nb_xmlElem... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlNotationTablePtr gen_xmlNotationTablePtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlGetDtdAttrDesc(void) {
int test_ret = 0;
int mem_base;
xmlAttributePtr ret_val;
xmlDtdPtr dtd;
int n_dtd;
xmlChar *elem; /* the element name */
int n_elem;
xmlChar *name; /* the attribute name */
int n_name;
for (n_dtd = 0; n_dtd < gen_nb_xmlDtdPtr; n_dtd++) {
for (n_elem = ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlIsID(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlDocPtr doc;
int n_doc;
xmlNodePtr elem; /* the element carrying the attribute */
int n_elem;
xmlAttrPtr attr; /* the attribute */
int n_attr;
for (n_doc = 0; n_doc < gen_nb_xmlDocPtr; n_doc++) {
for (n_elem = 0; n_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlSprintfElementContent(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
#ifdef LIBXML_OUTPUT_ENABLED
int mem_base;
char *buf;
int n_buf;
xmlElementContentPtr content; /* An element table */
int n_content;
int englob; /* 1 if one must print the englobing parenthesis, 0 otherw... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlValidateAttributeDecl(void) {
int test_ret = 0;
#if defined(LIBXML_VALID_ENABLED)
int mem_base;
int ret_val;
xmlValidCtxtPtr ctxt;
int n_ctxt;
xmlDocPtr doc; /* a document instance */
int n_doc;
xmlAttributePtr attr; /* an attribute definition */
int n_attr;
for (n_ctxt = 0; n_c... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlValidateElement(void) {
int test_ret = 0;
#if defined(LIBXML_VALID_ENABLED)
int mem_base;
int ret_val;
xmlValidCtxtPtr ctxt;
int n_ctxt;
xmlDocPtr doc; /* a document instance */
int n_doc;
xmlNodePtr elem; /* an element instance */
int n_elem;
for (n_ctxt = 0; n_ctxt < gen_nb_xm... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlValidateNamesValue(void) {
int test_ret = 0;
#if defined(LIBXML_VALID_ENABLED)
int mem_base;
int ret_val;
xmlChar *value;
int n_value;
for (n_value = 0; n_value < gen_nb_const_xmlChar_ptr; n_value++) {
mem_base = xmlMemBlocks();
value = gen_const_xmlChar_ptr(n_value, 0);
re... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlValidatePushCData(void) {
int test_ret = 0;
#if defined(LIBXML_VALID_ENABLED) && defined(LIBXML_REGEXP_ENABLED)
int mem_base;
int ret_val;
xmlValidCtxtPtr ctxt;
int n_ctxt;
xmlChar *data; /* some character data read */
int n_data;
int len; /* the length of the data */
int n_len;
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXIncludeNewContext(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_xmlXIncludeCtxtPtr(int no ATTRIBUTE_UNUSED,
xmlXIncludeCtxtPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {}
#endif | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXIncludeProcessTree(void) {
int test_ret = 0;
#if defined(LIBXML_XINCLUDE_ENABLED)
int mem_base;
int ret_val;
xmlNodePtr tree;
int n_tree;
for (n_tree = 0; n_tree < gen_nb_xmlNodePtr; n_tree++) {
mem_base = xmlMemBlocks();
tree = gen_xmlNodePtr(n_tree, 0);
ret_val = xmlXInc... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAllocOutputBuffer(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
xmlOutputBufferPtr ret_val;
xmlCharEncodingHandlerPtr encoder;
int n_encoder;
for (n_encoder = 0; n_encoder < gen_nb_xmlCharEncodingHandlerPtr;
n_encoder++) {
mem_base = xmlMemBlocks(... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlCheckHTTPInput(void) {
int test_ret = 0;
int mem_base;
xmlParserInputPtr ret_val;
xmlParserCtxtPtr ctxt;
int n_ctxt;
xmlParserInputPtr ret; /* an XML parser input */
int n_ret;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlParserCtxtPtr; n_ctxt++) {
for (n_ret = 0; n_ret < gen_nb_xmlParse... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlCleanupInputCallbacks(void) {
int test_ret = 0;
int mem_base;
mem_base = xmlMemBlocks();
xmlCleanupInputCallbacks();
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %d blocks found in xmlCleanupInputCallbacks",
xmlMemBlocks() - me... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlCleanupOutputCallbacks(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
mem_base = xmlMemBlocks();
xmlCleanupOutputCallbacks();
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %d blocks found in xmlCleanupOutputCall... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlFileClose(void) {
int test_ret = 0;
int mem_base;
int ret_val;
void *context;
int n_context;
for (n_context = 0; n_context < gen_nb_void_ptr; n_context++) {
mem_base = xmlMemBlocks();
context = gen_void_ptr(n_context, 0);
ret_val = xmlFileClose(context);
desret_int(ret_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlIOFTPRead(void) {
int test_ret = 0;
#if defined(LIBXML_FTP_ENABLED)
int mem_base;
int ret_val;
void *context;
int n_context;
char *buffer; /* where to drop data */
int n_buffer;
int len; /* number of bytes to write */
int n_len;
for (n_context = 0; n_context < gen_nb_void_ptr; n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlIOHTTPOpen(void) {
int test_ret = 0;
#if defined(LIBXML_HTTP_ENABLED)
int mem_base;
void *ret_val;
const char *filename;
int n_filename;
for (n_filename = 0; n_filename < gen_nb_filepath; n_filename++) {
mem_base = xmlMemBlocks();
filename = gen_filepath(n_filename, 0);
ret... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlIOHTTPRead(void) {
int test_ret = 0;
#if defined(LIBXML_HTTP_ENABLED)
int mem_base;
int ret_val;
void *context;
int n_context;
char *buffer; /* where to drop data */
int n_buffer;
int len; /* number of bytes to write */
int n_len;
for (n_context = 0; n_context < gen_nb_void_ptr;... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNoNetExternalEntityLoader(void) {
int test_ret = 0;
int mem_base;
xmlParserInputPtr ret_val;
const char *URL;
int n_URL;
char *ID; /* the System ID for the entity to load */
int n_ID;
xmlParserCtxtPtr ctxt; /* the context in which the entity is called or NULL */
int n_ctxt;
for ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlOutputBufferCreateFile(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
xmlOutputBufferPtr ret_val;
FILE *file;
int n_file;
xmlCharEncodingHandlerPtr encoder; /* the encoding converter or NULL */
int n_encoder;
for (n_file = 0; n_file < gen_nb_FILE_ptr; n_f... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlOutputBufferWriteString(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED)
int mem_base;
int ret_val;
xmlOutputBufferPtr out;
int n_out;
char *str; /* a zero terminated C string */
int n_str;
for (n_out = 0; n_out < gen_nb_xmlOutputBufferPtr; n_out++) {
for (n_str = 0;... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlParserGetDirectory(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlParserInputBufferCreateMem(void) {
int test_ret = 0;
int mem_base;
xmlParserInputBufferPtr ret_val;
char *mem;
int n_mem;
int size; /* the length of the memory block */
int n_size;
xmlCharEncoding enc; /* the charset encoding if known */
int n_enc;
for (n_mem = 0; n_mem < gen_nb... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlParserInputBufferGrow(void) {
int test_ret = 0;
int mem_base;
int ret_val;
xmlParserInputBufferPtr in;
int n_in;
int len; /* indicative value of the amount of chars to read */
int n_len;
for (n_in = 0; n_in < gen_nb_xmlParserInputBufferPtr; n_in++) {
for (n_len = 0; n_len < gen_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlPopInputCallbacks(void) {
int test_ret = 0;
int mem_base;
int ret_val;
mem_base = xmlMemBlocks();
ret_val = xmlPopInputCallbacks();
desret_int(ret_val);
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %d blocks found in xmlPopInputCallba... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlRegisterDefaultInputCallbacks(void) {
int test_ret = 0;
int mem_base;
mem_base = xmlMemBlocks();
xmlRegisterDefaultInputCallbacks();
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %d blocks found in xmlRegisterDefaultInputCallbacks",
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlRegisterHTTPPostCallbacks(void) {
int test_ret = 0;
#if defined(LIBXML_OUTPUT_ENABLED) && defined(LIBXML_HTTP_ENABLED)
int mem_base;
mem_base = xmlMemBlocks();
xmlRegisterHTTPPostCallbacks();
call_tests++;
xmlResetLastError();
if (mem_base != xmlMemBlocks()) {
printf("Leak of %... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAutomataCompile(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_xmlAutomataPtr(int no ATTRIBUTE_UNUSED,
xmlAutomataPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {}
#endif | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAutomataNewCountTrans2(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAutomataNewCountedTrans(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAutomataNewCounterTrans(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAutomataNewNegTrans(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAutomataNewOnceTrans(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlAutomataNewTransition2(void) {
int test_ret = 0;
return (test_ret);
}
#ifdef LIBXML_AUTOMATA_ENABLED
#define gen_nb_xmlAutomataStatePtr 1 | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewAutomata(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xmlautomata(void) {
int test_ret = 0;
if (quiet == 0)
printf("Testing xmlautomata : 3 of 19 functions ...\n");
test_ret += test_xmlAutomataCompile();
test_ret += test_xmlAutomataGetInitState();
test_ret += test_xmlAutomataIsDeterminist();
test_ret += test_xmlAutomataNewAllTrans();
te... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static xmlErrorPtr gen_xmlErrorPtr(int no ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_xmlErrorPtr(int no ATTRIBUTE_UNUSED,
xmlErrorPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {} | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.