aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27WIP: Make Writer always write to a ByteSinkDavid Robillard1-26/+22
2020-10-27Fix crash when attempting to read before startingDavid Robillard1-0/+3
2020-10-27Replace multiple stream callbacks with SerdEventDavid Robillard1-9/+7
This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future.
2020-10-27Remove old floating point testsDavid Robillard1-96/+0
2020-10-27Add precise decimal digit generationDavid Robillard1-2/+2
2020-10-27Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-5/+5
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future.
2020-10-27Report writer errors and add strict write modeDavid Robillard1-1/+38
2020-10-27Fix various warnings and conversion issuesDavid Robillard1-10/+24
2020-10-27Add serd_new_boolean()David Robillard1-0/+17
2020-10-27Handle read errors more preciselyDavid Robillard1-1/+1
2020-10-27Add model validationDavid Robillard1-1/+1
2020-10-27Add function to SerdSink for freeing opaque handleDavid Robillard1-3/+3
This can be used to associate dynamically allocated data with a sink and have it managed along with the sink's lifetime.
2020-10-27Clean up and expose base64 implementationDavid Robillard1-6/+7
2020-10-27Simplify reader test sinkDavid Robillard1-34/+29
2020-10-27Separate ByteSink from WriterDavid Robillard1-3/+11
2020-10-27Remove serd_reader_set_default_graph()David Robillard1-9/+2
2020-10-27Add rooted URI resolution testDavid Robillard1-1/+2
2020-10-27Separate style enum from style flags typesDavid Robillard1-2/+2
2020-10-27Make SerdSink opaqueDavid Robillard1-12/+23
2020-10-27Add SerdCursor to public APIDavid Robillard1-1/+2
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 Robillard1-67/+83
2020-10-27Make statement sink take a statement rather than nodesDavid Robillard1-19/+12
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 Robillard1-4/+4
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 Robillard1-73/+103
2020-10-27Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-19/+18
2020-10-27Add blank node APIDavid Robillard1-0/+13
2020-10-27Make serd_node_new_literal take datatype as a nodeDavid Robillard1-5/+10
2020-10-27Add SerdWorld for shared library stateDavid Robillard1-6/+20
2020-10-27Add SerdSink interface and hide individual function implementationsDavid Robillard1-28/+22
2020-10-27Bring read/write interface closer to C standardDavid Robillard1-4/+4
2020-10-27Merge datatype and/or language into nodeDavid Robillard1-32/+59
This moves closer to the sord API, and is more convenient in most cases.
2020-10-27Simplify reader interfaceDavid Robillard1-8/+18
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 Robillard1-136/+161
2020-10-27Remove "get" from accessor namesDavid Robillard1-4/+4
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-27Use char* for strings in public APIDavid Robillard1-85/+80
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-16Move Env tests to a separate fileDavid Robillard1-64/+0
2020-08-16Fix loop index variable typeDavid Robillard1-5/+5
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-14Avoid use of rand()David Robillard1-10/+3