Go to the source code of this file.
◆ CTX_TESTS
Value:
static void test_context_make()
static void test_namespace_registeration()
Definition at line 26 of file context_tests.h.
26#define CTX_TESTS(X) \
27 X("context::make", test_context_make), \
28 X("context::ns_registeration", test_namespace_registeration)
◆ test_context_make()
| static void test_context_make |
( |
| ) |
|
|
static |
Definition at line 30 of file context_tests.h.
30 {
38}
#define RELEASE_CONTEXT(x)
#define ASSERT_NOT_NULL(x)
#define SHUTDOWN_ENGINE(mm, engine)
#define MAKE_ENGINE(mm, engine)
#define MAKE_CONTEXT(engine, x)
◆ test_namespace_registeration()
| static void test_namespace_registeration |
( |
| ) |
|
|
static |
Definition at line 40 of file context_tests.h.
40 {
43
46
49
51
53
56}
static srn_metadata_t absurd_metadata
We use this for testing.
#define AS_STRING(value_ref)
srn_value_t * srn_namespace_make(srn_context_t *ctx, srn_metadata_t *metadata, srn_string_t *name)
Creates a new namespace in the give context.
srn_value_t * srn_string_make(srn_context_t *ctx, srn_metadata_t *metadata, const char *src)
Create a string from a null terminated C string.