Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
test-context.c File Reference
#include <ctx.h>
#include <db.h>
#include <gcutter.h>
#include <glib/gstdio.h>
#include "../lib/grn-assertions.h"
Include dependency graph for test-context.c:

Go to the source code of this file.

Macros

#define cut_assert_ensure_context()
#define cut_assert_ensure_database()

Functions

void test_at_nonexistent (void)
void test_dynamic_malloc_change (void)
void test_command_version (void)
void test_support_zlib (void)
void test_support_lzo (void)
void cut_setup (void)
void cut_teardown (void)

Macro Definition Documentation

#define cut_assert_ensure_context ( )
Value:
do \
{ \
if (!context) { \
context = g_new0(grn_ctx, 1); \
grn_test_assert(grn_ctx_init(context, default_flags)); \
} \
} while (0)

Definition at line 63 of file test-context.c.

#define cut_assert_ensure_database ( )
Value:
do \
{ \
cut_assert_ensure_context(); \
if (!database) { \
database = grn_db_create(context, NULL, NULL); \
} \
} while (0)

Definition at line 71 of file test-context.c.

Function Documentation

void cut_setup ( void  )

Definition at line 39 of file test-context.c.

void cut_teardown ( void  )

Definition at line 48 of file test-context.c.

Here is the call graph for this function:

void test_at_nonexistent ( void  )

Definition at line 80 of file test-context.c.

Here is the call graph for this function:

void test_command_version ( void  )

Definition at line 115 of file test-context.c.

Here is the call graph for this function:

void test_dynamic_malloc_change ( void  )

Definition at line 96 of file test-context.c.

void test_support_lzo ( void  )

Definition at line 145 of file test-context.c.

Here is the call graph for this function:

void test_support_zlib ( void  )

Definition at line 126 of file test-context.c.

Here is the call graph for this function: