LMMS
Loading...
Searching...
No Matches
sord_test.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sord/sord.h"

Classes

struct  QueryTest

Macros

#define USTR(s)
#define TUP_FMT   "(%6s %6s %6s)"
#define TUP_FMT_ARGS(t)
#define NUM_PATTERNS   18

Functions

static SordNodeuri (SordWorld *world, int num)
static int test_fail (const char *fmt,...)
static int generate (SordWorld *world, SordModel *sord, size_t n_quads, SordNode *graph)
static int test_read (SordWorld *world, SordModel *sord, SordNode *g, const size_t n_quads)
static SerdStatus unexpected_error (void *handle, const SerdError *error)
static SerdStatus expected_error (void *handle, const SerdError *error)
static int finished (SordWorld *world, SordModel *sord, int status)
int main (int argc, char **argv)

Variables

static const int DIGITS = 3
static const unsigned n_objects_per = 2
static int n_expected_errors = 0

Macro Definition Documentation

◆ NUM_PATTERNS

#define NUM_PATTERNS   18

◆ TUP_FMT

#define TUP_FMT   "(%6s %6s %6s)"

◆ TUP_FMT_ARGS

#define TUP_FMT_ARGS ( t)
Value:
((t)[0] ? sord_node_get_string((t)[0]) : USTR("*")), \
((t)[1] ? sord_node_get_string((t)[1]) : USTR("*")), \
((t)[2] ? sord_node_get_string((t)[2]) : USTR("*"))
struct huft * t
Definition inflate.c:943
SORD_API const uint8_t * sord_node_get_string(const SordNode *node)
Definition sord.c:997
#define USTR(s)

◆ USTR

#define USTR ( s)
Value:
((const uint8_t*)(s))
unsigned s
Definition inflate.c:1555
unsigned char uint8_t
Definition mid.cpp:98

Function Documentation

◆ expected_error()

SerdStatus expected_error ( void * handle,
const SerdError * error )
static

◆ finished()

int finished ( SordWorld * world,
SordModel * sord,
int status )
static

◆ generate()

int generate ( SordWorld * world,
SordModel * sord,
size_t n_quads,
SordNode * graph )
static

◆ main()

int main ( int argc,
char ** argv )

◆ test_fail()

int test_fail ( const char * fmt,
... )
static

◆ test_read()

int test_read ( SordWorld * world,
SordModel * sord,
SordNode * g,
const size_t n_quads )
static

◆ unexpected_error()

SerdStatus unexpected_error ( void * handle,
const SerdError * error )
static

◆ uri()

SordNode * uri ( SordWorld * world,
int num )
static

Variable Documentation

◆ DIGITS

const int DIGITS = 3
static

◆ n_expected_errors

int n_expected_errors = 0
static

◆ n_objects_per

const unsigned n_objects_per = 2
static