Apache HTTPD
Classes | Macros | Functions
testdbm.c File Reference
#include "apr.h"
#include "apr_general.h"
#include "apr_pools.h"
#include "apr_errno.h"
#include "apr_dbm.h"
#include "apr_uuid.h"
#include "apr_strings.h"
#include "abts.h"
#include "testutil.h"

Go to the source code of this file.

Classes

struct  dbm_table_t
 

Macros

#define NUM_TABLE_ROWS   1024
 

Functions

static dbm_table_tgenerate_table (void)
 
static void test_dbm_store (abts_case *tc, apr_dbm_t *db, dbm_table_t *table)
 
static void test_dbm_fetch (abts_case *tc, apr_dbm_t *db, dbm_table_t *table)
 
static void test_dbm_delete (abts_case *tc, apr_dbm_t *db, dbm_table_t *table)
 
static void test_dbm_exists (abts_case *tc, apr_dbm_t *db, dbm_table_t *table)
 
static void test_dbm_traversal (abts_case *tc, apr_dbm_t *db, dbm_table_t *table)
 
static void test_dbm (abts_case *tc, void *data)
 
abts_suitetestdbm (abts_suite *suite)
 

Macro Definition Documentation

◆ NUM_TABLE_ROWS

#define NUM_TABLE_ROWS   1024

Definition at line 27 of file testdbm.c.

Function Documentation

◆ generate_table()

static dbm_table_t * generate_table ( void  )
static

Definition at line 36 of file testdbm.c.

◆ test_dbm()

static void test_dbm ( abts_case tc,
void *  data 
)
static

< open for r/w, create if needed

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

< open for read-only access

< use OS's default permissions

<

Deprecated:
See also
APR_FPROT_OS_DEFAULT

Definition at line 166 of file testdbm.c.

◆ test_dbm_delete()

static void test_dbm_delete ( abts_case tc,
apr_dbm_t db,
dbm_table_t table 
)
static

Definition at line 101 of file testdbm.c.

◆ test_dbm_exists()

static void test_dbm_exists ( abts_case tc,
apr_dbm_t db,
dbm_table_t table 
)
static

Definition at line 116 of file testdbm.c.

◆ test_dbm_fetch()

static void test_dbm_fetch ( abts_case tc,
apr_dbm_t db,
dbm_table_t table 
)
static

Definition at line 81 of file testdbm.c.

◆ test_dbm_store()

static void test_dbm_store ( abts_case tc,
apr_dbm_t db,
dbm_table_t table 
)
static

Definition at line 63 of file testdbm.c.

◆ test_dbm_traversal()

static void test_dbm_traversal ( abts_case tc,
apr_dbm_t db,
dbm_table_t table 
)
static

Definition at line 131 of file testdbm.c.

◆ testdbm()

abts_suite * testdbm ( abts_suite suite)

Definition at line 203 of file testdbm.c.