MCPcopy Create free account
hub / github.com/Kitware/VTK / testExternalEntityLoader

Function testExternalEntityLoader

ThirdParty/libxml2/vtklibxml2/runtest.c:227–241  ·  view source on GitHub ↗

* We need to trap calls to the resolver to not account memory for the catalog * which is shared to the current running test. We also don't want to have * network downloads modifying tests. */

Source from the content-addressed store, hash-verified

225 * network downloads modifying tests.
226 */
227static xmlParserInputPtr
228testExternalEntityLoader(const char *URL, const char *ID,
229 xmlParserCtxtPtr ctxt) {
230 xmlParserInputPtr ret;
231
232 if (checkTestFile(URL)) {
233 ret = xmlNoNetExternalEntityLoader(URL, ID, ctxt);
234 } else {
235 int memused = xmlMemUsed();
236 ret = xmlNoNetExternalEntityLoader(URL, ID, ctxt);
237 extraMemoryFromResolver += xmlMemUsed() - memused;
238 }
239
240 return(ret);
241}
242
243/*
244 * Trapping the error messages at the generic level to grab the equivalent of

Callers

nothing calls this directly

Calls 3

xmlMemUsedFunction · 0.85
checkTestFileFunction · 0.70

Tested by

no test coverage detected