aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2019-04-13Fix MSVC warnings about integer literal conversionsDavid Robillard1-2/+2
2019-04-13Fix implicit float to double conversion warningDavid Robillard1-7/+21
2019-04-13Fix various sign conversion warningsDavid Robillard1-3/+3
2019-04-13Add serd_new_boolean()David Robillard1-0/+13
2019-04-13Remove reader status and handle errors more preciselyDavid Robillard1-1/+1
2019-04-13Add separate test suite for lax syntax testsDavid Robillard4-7/+17
2019-04-13Add validation test suiteDavid Robillard26-0/+572
2019-04-13WIP: Add validationDavid Robillard1-1/+1
2019-04-13WIP: Add modelDavid Robillard3-0/+967
2019-04-13Add Env to SinkDavid Robillard3-4/+5
This isn't technically necessary for any sink, but is a pattern common to every sink implementation in serd, so having it here reduces boilerplate and parameters in user code.
2019-04-13Clean up and expose base64 implementationDavid Robillard2-6/+127
2019-04-13Remove serd_env_foreach()David Robillard1-2/+4
2019-04-13Simplify reader test sinkDavid Robillard1-13/+8
2019-04-13Add stack overflow testsDavid Robillard1-0/+68
2019-04-13Improve node test coverageDavid Robillard1-0/+8
2019-04-13Add test for bad blank graph labelsDavid Robillard2-0/+9
2019-04-13Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard1-1/+3
2019-04-13Simplify streaming API and improve pretty printingDavid Robillard3-2/+84
This removes the obligation from the caller to correctly maintain flags to describe the current anonymous context, instead making the writer handle this itself as much as possible. Flags remain for the cases the writer can not infer from context: the start of anonymous subject and object nodes.
2019-04-13Add SerdNodes class for storing a cache of nodesDavid Robillard1-0/+93
2019-04-13Add serd_env_copy() and serd_env_equals()David Robillard1-0/+16
2019-04-13Separate ByteSink from WriterDavid Robillard1-3/+11
2019-04-13Remove serd_reader_set_default_graph()David Robillard1-9/+2
2019-04-13Add rooted URI resolution testDavid Robillard1-1/+3
2019-04-13Add test for reading chunksDavid Robillard1-0/+112
2019-04-13Separate style enum from style flags typesDavid Robillard1-2/+2
2019-04-13Make SerdSink opaqueDavid Robillard1-6/+9
2019-04-13Simplify SerdEnv APIDavid Robillard1-20/+25
2019-04-13Add SerdCursor to public APIDavid Robillard1-0/+58
2019-04-13Remove 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.
2019-04-13Shorten node constructor namesDavid Robillard1-50/+55
2019-04-13Make 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.
2019-04-13Use a fixed-size reader stackDavid Robillard1-2/+2
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.
2019-04-13Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-5/+17
2019-04-13Add serd_world_get_blank()David Robillard1-0/+21
2019-04-13Clean up node construction APIDavid Robillard1-85/+86
2019-04-13Clean up includes and improve source file separationDavid Robillard1-1/+2
2019-04-13Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-13/+11
2019-04-13Add blank node APIDavid Robillard1-0/+10
2019-04-13Make serd_node_new_literal take datatype as a nodeDavid Robillard1-3/+9
2019-04-13Add SerdWorld for shared library stateDavid Robillard1-4/+12
2019-04-13Add SerdSink interface and hide individual function implementationsDavid Robillard1-18/+14
2019-04-13Bring read/write interface closer to C standardDavid Robillard1-1/+1
2019-04-13Merge datatype and/or language into nodeDavid Robillard1-32/+57
This moves closer to the sord API, and is more convenient in most cases.
2019-04-13Remove serd_uri_to_path()David Robillard1-26/+0
2019-04-13Make nodes opaqueDavid Robillard1-144/+170
2019-04-13Make serd_strtod API const-correctDavid Robillard1-2/+4
This is an API breakage, but a minor one (particularly since NULL is allowed) that avoids the flaw in the C API.
2019-04-13Rename SerdChunk to SerdStringViewDavid Robillard1-1/+2
2019-04-13Use char* for strings in public APIDavid Robillard1-88/+83
The constant casting just makes user code a mess, for no benefit.
2019-04-13Remove useless character countingDavid Robillard1-19/+9
2019-04-13Use SerdBuffer for mutable buffersDavid Robillard1-4/+4
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.