aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2019-12-20Add test for failure while writing a list from a modelDavid Robillard1-0/+68
2019-12-20Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard3-6/+8
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future.
2019-12-20Report writer errors and add strict write modeDavid Robillard1-1/+38
2019-12-20Improve Env test coverageDavid Robillard1-0/+3
2019-12-20Add support for writing terse collectionsDavid Robillard6-0/+163
2019-12-20Add test for serd_strerror with unknown errorsDavid Robillard1-2/+3
2019-12-20Fix reading from socket-like streams and add testDavid Robillard1-0/+65
2019-12-20Fix various warnings and conversion issuesDavid Robillard2-12/+26
2019-12-20Add serd_new_boolean()David Robillard1-0/+17
2019-12-20Remove reader status and handle errors more preciselyDavid Robillard1-1/+1
2019-12-20Add model validationDavid Robillard1-1/+1
2019-12-20Add modelDavid Robillard3-0/+997
2019-12-19Add Env to SinkDavid Robillard3-6/+7
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-12-19Clean up and expose base64 implementationDavid Robillard2-6/+128
2019-12-19Remove serd_env_foreach()David Robillard1-2/+4
2019-12-19Simplify reader test sinkDavid Robillard1-28/+23
2019-12-19Add stack overflow testsDavid Robillard1-0/+69
2019-12-19Improve node test coverageDavid Robillard1-0/+6
2019-12-19Add test for bad blank graph labelsDavid Robillard2-0/+9
2019-12-19Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard1-1/+3
2019-12-19Simplify 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-12-19Add SerdNodes class for storing a cache of nodesDavid Robillard1-0/+92
2019-12-19Add serd_env_copy() and serd_env_equals()David Robillard1-0/+16
2019-12-19Separate ByteSink from WriterDavid Robillard1-3/+11
2019-12-19Remove serd_reader_set_default_graph()David Robillard1-9/+2
2019-12-19Add rooted URI resolution testDavid Robillard1-1/+2
2019-12-19Add test for reading chunksDavid Robillard1-0/+112
2019-12-19Make reader return failure when no statement is readDavid Robillard1-2/+2
2019-12-19Separate style enum from style flags typesDavid Robillard1-2/+2
2019-12-19Make SerdSink opaqueDavid Robillard1-8/+16
2019-12-19Simplify SerdEnv APIDavid Robillard1-22/+27
2019-12-19Add SerdCursor to public APIDavid Robillard1-0/+59
2019-12-19Remove 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-12-19Shorten node constructor namesDavid Robillard1-76/+85
2019-12-19Make 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-12-19Clean up reader error handlingDavid Robillard1-5/+0
2019-12-19Use a fixed-size reader stackDavid Robillard1-3/+3
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-12-19Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-7/+19
2019-12-19Add serd_world_get_blank()David Robillard1-0/+18
2019-12-19Clean up node construction APIDavid Robillard1-83/+120
2019-12-19Clean up includes and improve source file separationDavid Robillard1-1/+2
2019-12-19Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-13/+11
2019-12-19Add blank node APIDavid Robillard1-0/+16
2019-12-19Make serd_node_new_literal take datatype as a nodeDavid Robillard1-3/+9
2019-12-19Add SerdWorld for shared library stateDavid Robillard1-5/+17
2019-12-19Add SerdSink interface and hide individual function implementationsDavid Robillard1-24/+20
2019-12-19Bring read/write interface closer to C standardDavid Robillard1-2/+2
2019-12-19Merge datatype and/or language into nodeDavid Robillard1-32/+59
This moves closer to the sord API, and is more convenient in most cases.
2019-12-19Simplify reader interfaceDavid Robillard1-2/+12
2019-12-19Remove serd_uri_to_path()David Robillard1-29/+0