Commit Graph

1976 Commits

Author SHA1 Message Date
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
Rhodri James
6aecdba977 Test a long URI in the context string with a failing allocator 2017-07-22 22:49:15 +02:00
Rhodri James
4282072d9c Test long namespace in external entity context with duff reallocator 2017-07-22 22:49:15 +02:00
Rhodri James
4fe873c62b Test long general entity name in external DTD with failing realloc 2017-07-22 22:49:15 +02:00
Rhodri James
126c0e8459 Test shorter long context URI with a failing reallocator
One last code path to exercise
2017-07-22 22:49:15 +02:00
Rhodri James
2950c7ac09 Again test long context URI against a failing reallocator
Another different code path
2017-07-22 22:49:15 +02:00
Rhodri James
67f238b794 Refactor context URI reallocation tests 2017-07-22 22:49:15 +02:00
Rhodri James
ae9fe3c614 Test shorter context URI in the face of a failing reallocator
Yet another different code path exercised
2017-07-22 22:49:15 +02:00
Rhodri James
1136aceaa3 Test different length context URI with duff reallocator
Exercises another different code path
2017-07-22 22:49:15 +02:00
Rhodri James
f4e09d7d5d Test slightly shorter context URI with duff allocator
Exercises a different code path to previous context test
2017-07-22 22:49:15 +02:00
Rhodri James
464aefaccc Test appropriately long context URI with a failing reallocator 2017-07-22 22:49:15 +02:00
Rhodri James
90f5d5e833 Test not-so-long namespace with failing allocator 2017-07-22 22:49:15 +02:00
Rhodri James
ddd6a15043 Test long namespace with failing allocator 2017-07-22 22:49:15 +02:00
Rhodri James
02a9d765d6 Test long root element name with a failing allocator 2017-07-22 22:49:15 +02:00
Rhodri James
96afb81e9a Test longer namespace prefix with failing reallocator 2017-07-22 22:49:15 +02:00
Rhodri James
a5e1e0b94b Test long namespace prefix with a failing reallocator 2017-07-22 22:49:15 +02:00
Rhodri James
e64102e71e Test handling long attribute list with a failing reallocator 2017-07-22 22:49:15 +02:00
Rhodri James
aa04847906 Test that comments reach the default handler 2017-07-22 22:49:15 +02:00
Rhodri James
a7b6aea376 Test processing instruction with long body and duff allocator 2017-07-22 22:49:15 +02:00
Rhodri James
0a3a399d45 Test processing instruction reaches default handler if no PI handler 2017-07-22 22:49:15 +02:00
Rhodri James
5e4a2d6e6c Test char entity extending param entity with failing reallocator 2017-07-22 22:49:14 +02:00
Rhodri James
afe4ad3830 Silence overly-pessimistic compiler warning.
The parsed_version structure will be fully filled in if parse_version
returns a non-zero value, but initializing the variable to zero is a
trivial cost for the tests.
2017-07-22 22:49:14 +02:00
Rhodri James
5d75b0ae62 Test invalid character reference is faulted 2017-07-22 22:49:14 +02:00
Rhodri James
4792f7af1c Test expanding a param entity's string pool with a failing allocator 2017-07-22 22:49:14 +02:00
Rhodri James
87967e3623 Test trailing CR in a PE value is interpreted as a newline 2017-07-22 22:49:14 +02:00
Rhodri James
065ade6080 Test error in nested external entity substitution 2017-07-22 22:49:14 +02:00
Rhodri James
cb4f7250ac Test another different code path for skipped external entity 2017-07-22 22:49:14 +02:00
Rhodri James
49a38e6291 Test different code path for skipping missing external entity 2017-07-22 22:49:14 +02:00
Rhodri James
09aef7e7e3 Test recursive parameter entity 2017-07-22 22:49:14 +02:00
Rhodri James
b641ecffa1 Test missing external entity is skipped 2017-07-22 22:49:14 +02:00
Rhodri James
74a7cdc0ae Test general entity substitution in standalone internal param entity 2017-07-22 22:49:14 +02:00