aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08Replace multiple stream callbacks with SerdEventDavid Robillard3-41/+53
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.
2021-03-08Add SerdStatementDavid Robillard2-20/+10
2021-03-08Add SerdCursorDavid Robillard5-2/+65
2021-03-08Remove serd_reader_set_default_graph()David Robillard1-36/+23
2021-03-08Simplify SerdEnv APIDavid Robillard1-32/+28
2021-03-08Add serd_world_get_blank()David Robillard1-0/+18
2021-03-08Move error handling to worldDavid Robillard1-0/+2
2021-03-08Add SerdWorld for shared library stateDavid Robillard4-7/+26
2021-03-08Clean up nodes in reader/writer testsDavid Robillard1-12/+20
2021-03-08Add numeric node construction and access APIDavid Robillard1-22/+191
2021-03-08Add serd_new_boolean()David Robillard1-0/+21
2021-03-08Remove old floating point testsDavid Robillard1-88/+0
2021-03-08WIP: Use exess for reading and writing numeric and binary literalsDavid Robillard1-6/+6
2021-03-08Simplify literal construction APIDavid Robillard2-26/+41
2021-03-08Use a fixed-size reader stackDavid Robillard4-6/+9
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.
2021-03-07Simplify reader interfaceDavid Robillard2-21/+21
2021-03-07Add SerdSink interface and hide implementationsDavid Robillard3-29/+45
2021-03-07Bring read/write interface closer to C standardDavid Robillard1-5/+10
2021-03-07Simplify reader interfaceDavid Robillard2-32/+25
2021-03-07Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-7/+27
2021-03-07Simplify node construction APIDavid Robillard4-70/+112
2021-03-07Simplify URI API and implementationDavid Robillard3-42/+134
2021-03-07Merge datatype/language into nodeDavid Robillard3-48/+48
This moves closer to the sord API, and is more convenient in most cases.
2021-03-07Remove SERD_NOTHING node typeDavid Robillard1-15/+1
2021-03-07Make nodes opaqueDavid Robillard4-157/+174
2021-03-07Shorten node constructor namesDavid Robillard2-15/+13
2021-03-07Remove "get" from accessor namesDavid Robillard2-7/+7
2021-03-07Rename SerdStyle to SerdWriterFlagsDavid Robillard1-5/+4
2021-03-07Rename SerdURI to SerdURIViewDavid Robillard1-9/+9
2021-03-07Rename SerdChunk to SerdStringViewDavid Robillard1-2/+2
2021-03-07Use char* for strings in public APIDavid Robillard5-95/+81
The constant casting just makes user code a mess, for no benefit.
2021-03-07Remove escape parameter from serd_node_new_file_uriDavid Robillard1-10/+5
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2021-03-07Remove useless character countingDavid Robillard2-17/+9
2021-03-07Add SerdBuffer type for mutable buffersDavid Robillard1-5/+5
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2021-03-07Remove serd_uri_to_path()David Robillard1-41/+0
2021-03-07WIP: Switch to MesonDavid Robillard4-0/+257
2021-03-07Factor out test suite running to a standalone scriptDavid Robillard1-0/+380
2021-02-15Fix writing long literals with triple quotesDavid Robillard1-0/+65
2021-01-02Use email address instead of website for attributionDavid Robillard7-7/+7
2020-12-31Format all code with clang-formatDavid Robillard7-614/+635
2020-12-17Add test for attempting to convert a non-file URI to a pathDavid Robillard1-0/+3
2020-12-15Suppress new clang-tidy warningsDavid Robillard1-0/+3
2020-11-14Deprecate serd_uri_to_path()David Robillard1-0/+9
2020-11-13Remove tests that pass null to nonnull parametersDavid Robillard2-8/+4
2020-11-13Add failure test for unescaped quotes in URIsDavid Robillard2-0/+7
2020-11-13Allow setting the base URI of an Env to NULLDavid Robillard1-1/+6
2020-11-12Use C11 if possibleDavid Robillard1-0/+1
2020-11-12Suppress nullability warnings in testsDavid Robillard1-0/+1
2020-11-11Add nonnull and nullable attributes to APIDavid Robillard1-0/+8
This will warn if NULL is passed to any nonnull-annotated parameter, and is also supported by sanitizers which can check for violations at runtime. Unfortunately, it is currently only supported by clang. GCC has a similar feature in the nonnull attribute, but this has a different syntax (it's a function attribute) and is more dangerous since it is used by the optimizer to assume a null pointer is undefined behavior. This one just warns and still allows code to handle the situation gracefully, which I think is more appropriate for a library API. Note that this optimization behavior is not some unlikely edge case: switching these attributes to the GCC one will break release builds.
2020-11-10Fix memory leak in chunk reading testDavid Robillard1-0/+1