IDZEBRA 2.2.11
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.

◆ 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.

◆ code_start()

void * code_start ( void )

Definition at line 64 of file tstisamb.c.

◆ code_stop()

void code_stop ( void * p)

Definition at line 79 of file tstisamb.c.

◆ compare_item()

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

Definition at line 51 of file tstisamb.c.

◆ identical_keys_tests()

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

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

Definition at line 39 of file tstisamb.c.

References log_level.

◆ log_pr()

void log_pr ( const char * txt)
static

Definition at line 46 of file tstisamb.c.

References log_level.

◆ main()

◆ tst_append()

void tst_append ( ISAMB isb,
int n )

◆ tst_forward()

◆ tst_insert()

◆ tst_minsert()

◆ tst_random()

◆ tst_random_read()

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

◆ tst_x()

Variable Documentation

◆ log_level

int log_level = 0
static

Definition at line 37 of file tstisamb.c.