Apache HTTPD
Macros | Functions
testhash.c File Reference
#include "testutil.h"
#include "apr.h"
#include "apr_strings.h"
#include "apr_general.h"
#include "apr_pools.h"
#include "apr_hash.h"

Go to the source code of this file.

Macros

#define MAX_LTH   256
 
#define MAX_DEPTH   11
 

Functions

static int comp_string (const void *str1, const void *str2)
 
static void dump_hash (apr_pool_t *p, apr_hash_t *h, char str[][256])
 
static void sum_hash (apr_pool_t *p, apr_hash_t *h, int *pcount, int *keySum, int *valSum)
 
static void hash_make (abts_case *tc, void *data)
 
static void hash_set (abts_case *tc, void *data)
 
static void hash_reset (abts_case *tc, void *data)
 
static void same_value (abts_case *tc, void *data)
 
static unsigned int hash_custom (const char *key, apr_ssize_t *klen)
 
static void same_value_custom (abts_case *tc, void *data)
 
static void key_space (abts_case *tc, void *data)
 
static void hash_clear (abts_case *tc, void *data)
 
static void hash_traverse (abts_case *tc, void *data)
 
static void summation_test (abts_case *tc, void *data)
 
static void delete_key (abts_case *tc, void *data)
 
static void hash_count_0 (abts_case *tc, void *data)
 
static void hash_count_1 (abts_case *tc, void *data)
 
static void hash_count_5 (abts_case *tc, void *data)
 
static void overlay_empty (abts_case *tc, void *data)
 
static void overlay_2unique (abts_case *tc, void *data)
 
static void overlay_same (abts_case *tc, void *data)
 
static void overlay_fetch (abts_case *tc, void *data)
 
abts_suitetesthash (abts_suite *suite)
 

Macro Definition Documentation

◆ MAX_DEPTH

#define MAX_DEPTH   11

Definition at line 25 of file testhash.c.

◆ MAX_LTH

#define MAX_LTH   256

Definition at line 24 of file testhash.c.

Function Documentation

◆ comp_string()

static int comp_string ( const void *  str1,
const void *  str2 
)
static

Definition at line 27 of file testhash.c.

◆ delete_key()

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

Definition at line 261 of file testhash.c.

◆ dump_hash()

static void dump_hash ( apr_pool_t p,
apr_hash_t h,
char  str[][256] 
)
static

Definition at line 32 of file testhash.c.

◆ hash_clear()

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

Definition at line 174 of file testhash.c.

◆ hash_count_0()

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

Definition at line 287 of file testhash.c.

◆ hash_count_1()

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

Definition at line 299 of file testhash.c.

◆ hash_count_5()

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

Definition at line 313 of file testhash.c.

◆ hash_custom()

static unsigned int hash_custom ( const char key,
apr_ssize_t klen 
)
static

Definition at line 134 of file testhash.c.

◆ hash_make()

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

Definition at line 79 of file testhash.c.

◆ hash_reset()

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

Definition at line 100 of file testhash.c.

◆ hash_set()

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

Definition at line 87 of file testhash.c.

◆ hash_traverse()

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

Definition at line 196 of file testhash.c.

◆ key_space()

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

Definition at line 161 of file testhash.c.

◆ overlay_2unique()

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

Definition at line 365 of file testhash.c.

◆ overlay_empty()

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

Definition at line 331 of file testhash.c.

◆ overlay_fetch()

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

Definition at line 441 of file testhash.c.

◆ overlay_same()

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

Definition at line 410 of file testhash.c.

◆ same_value()

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

Definition at line 117 of file testhash.c.

◆ same_value_custom()

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

Definition at line 144 of file testhash.c.

◆ sum_hash()

static void sum_hash ( apr_pool_t p,
apr_hash_t h,
int pcount,
int keySum,
int valSum 
)
static

Definition at line 61 of file testhash.c.

◆ summation_test()

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

Definition at line 230 of file testhash.c.

◆ testhash()

abts_suite * testhash ( abts_suite suite)

Definition at line 514 of file testhash.c.