aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2025-03-20Remove unused temporary file from writer testDavid Robillard1-7/+1
2025-03-16Drop graphs when writing Turtle outputDavid Robillard1-1/+1
2025-03-16Strengthen exhaustive write error testDavid Robillard1-29/+45
Factor out the check, then also check that writing with enough space succeeds. This makes the test more future-proof since it will fail if the maximum sizes aren't updated (meaning errors near the end of the document aren't covered). Strengthen the check itself by including the status of serd_writer_finish(), and bump the Turtle and TriG sizes by the three corresponding trailing bytes.
2025-03-16Clean up writer testsDavid Robillard1-25/+24
2025-03-16Check that test values are non-null before useDavid Robillard6-32/+30
2025-03-16Avoid implicit double promotionDavid Robillard1-2/+2
2025-03-16Avoid "static inline" outside headersDavid Robillard1-1/+1
2025-03-16Disable meson implicit include directories anti-featureDavid Robillard2-0/+2
2025-03-16Fix reading prefix names that start with "true." or "false."David Robillard3-0/+14
2025-03-16Fix reading numbers with no space before the final dotDavid Robillard11-0/+60
2025-03-16Refuse to write incoherent statementsDavid Robillard2-14/+73
2025-02-25Isolate standalone writer testsDavid Robillard2-42/+58
Move these to test_writer so that test_reader_writer is focused on the file-based case where the writer output is later read.
2025-02-23Fix doc comment syntaxDavid Robillard1-1/+1
2025-01-30Fix handling of some invalid EOF cases in lax modeDavid Robillard2-3/+15
The return status of these tests unfortunately isn't consistent, so instead of testing for an exact exit status, instead check that the return status doesn't seem to be an abort() or other signal code (which are negative on Linux, while serdi itself never exits with a negative status).
2025-01-30Separate EOF tests from catch-all "bad" test suiteDavid Robillard40-216/+234
2025-01-19Fix building lint tests when serdi is unavailableDavid Robillard1-8/+10
2025-01-10Use cppcheck working directoryDavid Robillard2-128/+132
This allows for better analysis, and adds a cache to improve checking times, especially on repeated runs.
2024-12-11Always assert the return value of fopen() in testsDavid Robillard2-2/+6
2024-12-11Ensure success of fclose() for writable files in testsDavid Robillard3-8/+10
2024-12-11Avoid assignments in assert statementsDavid Robillard1-5/+9
The ways these tests are written fundamentally requires assertions to always run, but some tools like to warn about it anyway, so avoid obvious cases.
2024-11-23Use angle brackets for library includesDavid Robillard9-9/+9
2024-10-06Clean up lint test definitionsDavid Robillard1-22/+20
2024-10-06Check all sources in clang-format testDavid Robillard1-6/+12
2024-10-06Relocate lint test definitionsDavid Robillard1-135/+135
Towards reusing source lists for checks across all the code (not just the library sources).
2024-09-28Add clang-format lint testDavid Robillard1-0/+11
2024-09-28Add cppcheck lint testDavid Robillard1-0/+21
2024-09-27Make more pointer variables constDavid Robillard1-2/+3
2024-09-27Make function parameters const wherever possibleDavid Robillard5-14/+19
The early history of this code didn't tend to make parameters const, but the "const density" is high enough now that I often find myself wondering if something is mutable for some reason, or just old and sloppier. So, eliminate this confusion by making (hopefully) all function parameters const if possible.
2024-09-27Clean up and update clang-format configurationDavid Robillard1-2/+1
Fix "SERD_CONST_FINC" typo, add the other function attributes, and sort all fields.
2024-09-21Remove pointless and inconsistent printing from unit testsDavid Robillard5-10/+0
2024-09-21Factor out test runner script argument and output parsingDavid Robillard4-46/+41
2024-09-01Use a consistent naming scheme for test helper functionsDavid Robillard3-101/+76
2024-08-03Fix reading chunks from files without trailing newlinesDavid Robillard1-7/+10
2024-08-03Cover bulk and byte-wise reading in reader EOF testDavid Robillard1-4/+11
2024-07-16Suppress new warnings in clang and clang-tidy 18David Robillard1-0/+2
2024-06-27Split out simple reader unit testsDavid Robillard3-341/+441
Some of the simpler tests here only test the reader directly, while others are higher level tests that test both the writer and reader together. Split the simple reader-only tests into a separate file so things can be cleaned up and simplified for each kind of test.
2024-06-26Factor out URI prefix in some testsDavid Robillard2-25/+28
2024-06-25Improve test suite coverageDavid Robillard15-20/+198
2024-06-25Fix overly permissive parsing of syntax names on the command lineDavid Robillard1-2/+3
2024-06-24Write blank lines between graphs and statements in TriGDavid Robillard1-3/+13
2024-06-23Gracefully handle failure to terminate written anonymous nodesDavid Robillard1-0/+30
This case shouldn't be reachable when driven directly from a reader, but can be reached by invalid use of the writer in an application.
2024-06-23Fix writer cleanup testDavid Robillard1-8/+18
Because nodes are shallow, this wasn't actually writing a stack of nested objects. Fix the blank node ping-pong algorithm so that it does.
2024-06-23Simplify pylint test definitionDavid Robillard1-4/+3
2024-06-23Check that header has zero code complexityDavid Robillard1-1/+4
2024-06-23Remove redundant test manifest entryDavid Robillard1-1/+0
2024-06-22Strengthen clang-tidy configurationDavid Robillard1-1/+5
2024-06-09Add missing entries to "good" test manifestDavid Robillard1-6/+18
2024-06-09Treat out of range unicode characters as errorsDavid Robillard5-7/+8
2024-06-09Add test cases for special characters in local namesDavid Robillard6-1/+59
2024-06-07Add test cases for lax TriG parsingDavid Robillard4-0/+38