aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Separate style enum from style flags typesDavid Robillard1-2/+2
2020-10-27Make SerdSink opaqueDavid Robillard3-16/+33
2020-10-27Simplify SerdEnv APIDavid Robillard1-24/+29
2020-10-27Add SerdCursor to public APIDavid Robillard4-2/+64
2020-10-27Remove escape parameter from serd_new_file_uriDavid Robillard1-9/+6
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2020-10-27Shorten node constructor namesDavid Robillard2-76/+92
2020-10-27Make statement sink take a statement rather than nodesDavid Robillard2-29/+16
This makes the interface more extensible, towards associating more information with statements. The serd_sink_write_nodes wrapper remains so that user code does not need to allocate in order to write statement.
2020-10-27Use a fixed-size reader stackDavid Robillard2-5/+5
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
2020-10-27Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-7/+19
2020-10-27Add serd_world_get_blank()David Robillard1-0/+18
2020-10-27Clean up node construction APIDavid Robillard2-83/+120
2020-10-27Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-19/+18
2020-10-27Add blank node APIDavid Robillard2-0/+16
2020-10-27Make serd_node_new_literal take datatype as a nodeDavid Robillard1-5/+10
2020-10-27Add SerdWorld for shared library stateDavid Robillard3-8/+25
2020-10-27Add SerdSink interface and hide individual function implementationsDavid Robillard2-30/+25
2020-10-27Bring read/write interface closer to C standardDavid Robillard1-4/+4
2020-10-27Merge datatype and/or language into nodeDavid Robillard2-37/+60
This moves closer to the sord API, and is more convenient in most cases.
2020-10-27Simplify reader interfaceDavid Robillard2-28/+31
2020-10-27Remove serd_uri_to_path()David Robillard1-29/+0
2020-10-27Remove SERD_NOTHING node typeDavid Robillard1-19/+0
2020-10-27Make nodes opaqueDavid Robillard2-165/+198
2020-10-27Remove "get" from accessor namesDavid Robillard2-5/+5
2020-10-27Add support for parsing NaN, INF, and -INFDavid Robillard1-0/+10
2020-10-27Make serd_strtod API const-correctDavid Robillard1-2/+3
This is an API breakage, but a minor one (particularly since NULL is allowed) that avoids the flaw in the standard C API.
2020-10-27Rename SerdChunk to SerdStringViewDavid Robillard1-2/+2
2020-10-27Use char* for strings in public APIDavid Robillard2-99/+91
The constant casting just makes user code a mess, for no benefit.
2020-10-27Remove useless character countingDavid Robillard1-19/+9
2020-10-27Add SerdBuffer type for mutable buffersDavid Robillard1-4/+4
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2020-10-27Add a test for reading strings with no trailing newlineDavid Robillard1-0/+23
2020-08-16Ensure that all free methods tolerate NULLDavid Robillard1-0/+33
2020-08-16Move Env tests to a separate fileDavid Robillard2-64/+95
2020-08-16Add test for reading chunksDavid Robillard1-0/+120
2020-08-16Fix loop index variable typeDavid Robillard1-5/+5
2020-08-16Fix handling of bad syntax that ends a collectionDavid Robillard2-0/+7
2020-08-16Fix EOF and null byte handlingDavid Robillard2-0/+6
This is a bit questionable, but the null byte support is needed for streaming over a socket where some delimiter is required. This caused a bug where serdi would hang forever on corrupt files that contain a null byte. Fix this by consuming the byte, but otherwise behaving as before.
2020-08-16Add a test for reading from socket-like streamsDavid Robillard1-0/+61
2020-08-15Clean up reader error handlingDavid Robillard1-3/+3
2020-08-15Harden prefixed name parsingDavid Robillard2-0/+8
2020-08-14Avoid use of rand()David Robillard1-10/+3
2020-08-14Add test for serd_strerror with unknown errorsDavid Robillard1-3/+6
2020-08-14Fix Wswitch-enum warningsDavid Robillard1-0/+21
2020-08-14Add test for bad blank graph labelsDavid Robillard2-0/+9
2020-06-21Cleanup: Fix uninitialised variablesDavid Robillard1-4/+4
2020-06-21Cleanup: Avoid declaring multiple variables on a single lineDavid Robillard1-1/+2
2020-06-21Cleanup: Avoid malloc of 0 bytesDavid Robillard1-1/+1
2020-06-21Cleanup: Remove unnecessary storesDavid Robillard1-4/+3
2020-06-21Cleanup: Remove redundant castDavid Robillard1-1/+1
2020-06-21Clean up includesDavid Robillard1-4/+5
2019-12-14Fix function prototypeDavid Robillard1-1/+1