IDZEBRA  2.2.7
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

◆ code_item()

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

Definition at line 69 of file tstisamb.c.

Referenced by main().

◆ code_read()

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

◆ code_reset()

void code_reset ( void *  p)

Definition at line 76 of file tstisamb.c.

Referenced by main().

◆ code_start()

void* code_start ( void  )

Definition at line 64 of file tstisamb.c.

Referenced by main().

◆ code_stop()

void code_stop ( void *  p)

Definition at line 79 of file tstisamb.c.

Referenced by main().

◆ compare_item()

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

Definition at line 51 of file tstisamb.c.

Referenced by main().

◆ identical_keys_tests()

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().

◆ log_item()

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().

◆ log_pr()

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().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ tst_append()

void tst_append ( ISAMB  isb,
int  n 
)

◆ tst_forward()

void tst_forward ( ISAMB  isb,
int  n 
)

◆ tst_insert()

void tst_insert ( ISAMB  isb,
int  n 
)

◆ tst_minsert()

void tst_minsert ( ISAMB  isb,
int  n 
)

◆ tst_random()

void tst_random ( ISAMB  isb,
int  n,
int  rounds,
int  max_dups 
)

◆ tst_random_read()

int tst_random_read ( void *  vp,
char **  dst,
int *  insertMode 
)

◆ tst_x()

void tst_x ( ISAMB  isb)

Variable Documentation

◆ log_level

int log_level = 0
static

Definition at line 37 of file tstisamb.c.

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