IDZEBRA  2.1.2
Data Structures | Functions | Variables
tstisamb.c File Reference
#include <stdlib.h>
#include <string.h>
#include <yaz/log.h>
#include <yaz/xmalloc.h>
#include <idzebra/isamb.h>
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  read_info
 
struct  random_read_info
 

Functions

static void log_item (int level, const void *b, const char *txt)
 
static void log_pr (const char *txt)
 
int compare_item (const void *a, const void *b)
 
void * code_start (void)
 
void code_item (void *p, char **dst, const char **src)
 
void code_reset (void *p)
 
void code_stop (void *p)
 
int code_read (void *vp, char **dst, int *insertMode)
 
void tst_insert (ISAMB isb, int n)
 
void tst_forward (ISAMB isb, int n)
 
void tst_x (ISAMB isb)
 
void tst_append (ISAMB isb, int n)
 
int tst_random_read (void *vp, char **dst, int *insertMode)
 
void tst_random (ISAMB isb, int n, int rounds, int max_dups)
 
void tst_minsert (ISAMB isb, int n)
 
static void identical_keys_tests (ISAMB isb)
 
int main (int argc, char **argv)
 

Variables

static int log_level = 0
 

Function Documentation

void code_item ( void *  p,
char **  dst,
const char **  src 
)

Definition at line 69 of file tstisamb.c.

Referenced by main().

int code_read ( void *  vp,
char **  dst,
int *  insertMode 
)
void code_reset ( void *  p)

Definition at line 76 of file tstisamb.c.

Referenced by main().

void* code_start ( void  )

Definition at line 64 of file tstisamb.c.

Referenced by main().

void code_stop ( void *  p)

Definition at line 79 of file tstisamb.c.

References read_info::insertMode, read_info::max, read_info::no, read_info::step, and read_info::val.

Referenced by main().

int compare_item ( const void *  a,
const void *  b 
)

Definition at line 51 of file tstisamb.c.

Referenced by main().

static void identical_keys_tests ( ISAMB  isb)
static

Definition at line 505 of file tstisamb.c.

References tst_minsert(), and tst_random().

Referenced by main().

static void log_item ( int  level,
const void *  b,
const char *  txt 
)
static

Definition at line 39 of file tstisamb.c.

References log_level.

Referenced by main().

static void log_pr ( const char *  txt)
static

Definition at line 46 of file tstisamb.c.

References log_level.

Referenced by tst_insert(), tst_minsert(), and tst_random().

int main ( int  argc,
char **  argv 
)
void tst_append ( ISAMB  isb,
int  n 
)
void tst_forward ( ISAMB  isb,
int  n 
)
void tst_insert ( ISAMB  isb,
int  n 
)
void tst_minsert ( ISAMB  isb,
int  n 
)
void tst_random ( ISAMB  isb,
int  n,
int  rounds,
int  max_dups 
)
int tst_random_read ( void *  vp,
char **  dst,
int *  insertMode 
)
void tst_x ( ISAMB  isb)

Variable Documentation

int log_level = 0
static

Definition at line 37 of file tstisamb.c.

Referenced by code_read(), log_item(), log_pr(), and tst_insert().