Commit Graph

2006 Commits

Author SHA1 Message Date
Rhodri James
7c11f77a03 Comment change: exclude more unreachable code from coverage 2017-07-22 22:49:17 +02:00
Rhodri James
c0b7b55567 Test a valid (if odd) encoding 2017-07-22 22:49:17 +02:00
Rhodri James
6fd7365bfb Comment change: exclude unreachable condition from coverage 2017-07-22 22:49:17 +02:00
Rhodri James
19d0115623 Refactor to get rid of data/code pointer conversion warning 2017-07-22 22:49:17 +02:00
Rhodri James
b2ba9d7911 Add test for encoding conversion function returning errors 2017-07-22 22:49:17 +02:00
Rhodri James
fc06a529a3 Reject multi-byte encodings with no converter function.
Not supplying a character encoding convert function when one was
needed previously caused a segfault if a multi-byte character was
encountered.  This errors at the start of parse instead.
2017-07-22 22:49:17 +02:00
Rhodri James
63de667ed0 Add test of multi-byte encoding without a conversion function
At this commit, the tests seg fault
2017-07-22 22:49:17 +02:00
Rhodri James
69b864b9b1 Test XML declaration with missing value for 'standalone' attr 2017-07-22 22:49:17 +02:00
Rhodri James
5eafa10b6e Test XML declaration with missing attribute name 2017-07-22 22:49:17 +02:00
Rhodri James
b358d47719 Check invalid characters at the end of an XML declaration 2017-07-22 22:49:17 +02:00
Rhodri James
c2e90b3ebb Mark the second uppercasing in streqci() as unreacheable for coverage tests 2017-07-22 22:49:17 +02:00
Rhodri James
22bfe4f64d Extend test_utf16 to include a character encoded as 0xff?? 2017-07-22 22:49:17 +02:00
Rhodri James
9bb66e6699 Test that reversed UTF-16 surrogate pair in CDATA is rejected 2017-07-22 22:49:17 +02:00
Rhodri James
b99565c356 Test that a long attribute in ASCII encoding is correctly converted 2017-07-22 22:49:17 +02:00
Rhodri James
fddefa0680 Check latin1 char expanding to two bytes UTF-8 across a buffer boundary. 2017-07-22 22:49:16 +02:00
Rhodri James
a0ee59bd14 Test four-byte UTF-8 character are rejected in names 2017-07-22 22:49:16 +02:00
Rhodri James
8f1346cdbe Add utility script file to tidy up after running coverage tests 2017-07-22 22:49:16 +02:00
Rhodri James
c1541fa19a Ignore directories created by coverage script 2017-07-22 22:49:16 +02:00
Rhodri James
043e9923a3 Fix LCOV exclusion symbols in xmlparse.c 2017-07-22 22:49:16 +02:00
Rhodri James
5f06552ba3 Comment why negative blocksize in poolGrow is hard to test
Also add comment tags for lcov to ignore untestable code
2017-07-22 22:49:16 +02:00
Rhodri James
97aa338029 Comment why negative blocksize in poolGrow is hard to test
Add comment tags so lcov can ignore untestable code
2017-07-22 22:49:16 +02:00
Rhodri James
c6236c8a59 Comment why poolCopyStringN is not entered with an empty string pool
Also add comment tags so that lcov can ignore unreachable code.
2017-07-22 22:49:16 +02:00
Rhodri James
f8505ea55b Comment why an unbound prefix in getContext is believed impossible
Also add comment tags so that lcov can ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
e35f05fb5f Comment why allocation failure in getContext is believe impossible.
Also add comment tags so lcov can ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
d81e238f96 Comment why encoding change in reportDefault is believed never to happen
Also add comment tags so that lcov can ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
fc3a968f47 Comment why default case in storeEntityValue is never executed
Also add comment tags so lcov can ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
92cf2a3179 Remove unreachable error code in character ref handling 2017-07-22 22:49:16 +02:00
Rhodri James
10103bcd04 Comment why defaul case in appendAttreibuteValue is never executed
Also add comment tags so that lcov can ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
f7229958bf Comment why encoding check in appendAttributeValue is never true
Also add comment tag so lcov can ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
758e83d100 Remove unreachable error handling code in character ref handling 2017-07-22 22:49:16 +02:00
Rhodri James
ea51dfcbdb Comment why internal entity in param entity is believe impossible.
Also add comment tags to allow lcov to ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
fc64cd121d Comment why external subset name lookup cannot fail
Also add comment tag so that lcov can ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
d6549087b4 Remove unreachable code in entityValueInitProcessor 2017-07-22 22:49:16 +02:00
Rhodri James
e1a7cc2712 Comment why doIgnoreSection's default case is never called.
Also add comment tags so that lcov can ignore unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
860933367a Comment why doIgnoreSection is believed to always use the parser's encoding
Also add comment tags so that lcov can ignore the unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
5214e4427a Comment why doCdataSection's default case is never executed.
Also add comment tags so that lcov can ignore the unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
766d6d3509 Comment why code in storeAtts() is never executed.
Also add comment tags so lcov can ignore the unreachable code
2017-07-22 22:49:16 +02:00
Rhodri James
351a8cb321 Comment why doContent's default case is never executed.
Also add comment markers so lcov can ignore the unreachable code.
2017-07-22 22:49:16 +02:00
Rhodri James
a420a3b8ef Comment why tidy-up parse cannot be suspended
Also add tags so that lcov can ignore the unreachable code.
2017-07-22 22:49:16 +02:00
Rhodri James
1754bafba0 Test parsing element in namespace with a failing allocator 2017-07-22 22:49:16 +02:00
Rhodri James
704d03ef40 Test extremely long namespace prefix
Exercises a path in poolGrow that requires attempting to over-fill
a gap of more than 1024 characters in a non-empty pool.
2017-07-22 22:49:16 +02:00
Rhodri James
64f1b1b995 Test large element group with a failing allocator 2017-07-22 22:49:16 +02:00
Rhodri James
187650bad9 Test long notation value with external entity and failing allocator 2017-07-22 22:49:16 +02:00
Rhodri James
a40d23df08 Move external_entity_optioner up to be more generally available
No functionality changes in this commit
2017-07-22 22:49:16 +02:00
Rhodri James
eb99fe2529 Test long entity value and external entity with duff allocator 2017-07-22 22:49:16 +02:00
Rhodri James
fcae5d20aa Test external entity with long public ID and failing allocator 2017-07-22 22:49:16 +02:00
Rhodri James
1ce3d9049a Test long base URI for external parser with duff allocator 2017-07-22 22:49:16 +02:00
Rhodri James
75d3141f31 Test long entity system ID in external parser with failing allocator 2017-07-22 22:49:15 +02:00
Rhodri James
b03edfd961 Test with long default attribute for ext parser with duff allocator 2017-07-22 22:49:15 +02:00
Rhodri James
ec167d305c Test longer context URI with a failing reallocator 2017-07-22 22:49:15 +02:00