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

Go to the source code of this file.

Macros

#define create_db()
#define open_context()
#define cut_assert_open_context()

Functions

void test_load (void)
void cut_setup (void)
void cut_teardown (void)

Macro Definition Documentation

#define create_db ( )
Value:
do \
{ \
\
option.builtin_type_names = NULL; \
option.n_builtin_type_names = 0; \
db = grn_db_create(context, default_path, &option); \
} while (0)

Definition at line 78 of file test-public-context.c.

#define cut_assert_open_context ( )
Value:
do \
{ \
create_db(); \
cut_assert(db); \
open_context(); \
cut_assert(context); \
} while (0)

Definition at line 93 of file test-public-context.c.

#define open_context ( )
Value:
do \
{ \
grn_test_assert(grn_ctx_init(context, default_context_flags)); \
GRN_CTX_SET_ENCODING(context, default_encoding); \
} while (0)

Definition at line 87 of file test-public-context.c.

Function Documentation

void cut_setup ( void  )

Definition at line 37 of file test-public-context.c.

Here is the call graph for this function:

void cut_teardown ( void  )

Definition at line 55 of file test-public-context.c.

Here is the call graph for this function:

void test_load ( void  )