MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / testBadUri

Function testBadUri

3rd/uriparser/test/FourSuite.cpp:414–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412
413
414bool testBadUri(const char * uriText, int expectedErrorOffset = -1) {
415 const char * errorPos = NULL;
416 const int ret = testParseUri(uriText, &errorPos);
417 return ((ret == URI_ERROR_SYNTAX)
418 && (errorPos != NULL)
419 && (
420 (expectedErrorOffset == -1)
421 || (errorPos == (uriText + expectedErrorOffset))
422 ));
423}
424
425} // namespace
426

Callers 1

TESTFunction · 0.85

Calls 1

testParseUriFunction · 0.85

Tested by

no test coverage detected