reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
hashmap_test.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include "core/utils/impl/pointer_hashmap.h"
#include "rand_utils.h"
#include "core/utils/util.h"

Macros

#define CAPACITY   100
 
#define N   5000
 
#define RANDOM_SEED   1830
 

Functions

void test_put (hashmap_object2int_t *h)
 
void test_get (hashmap_object2int_t *h)
 
void run_test (hashmap_object2int_t *h, int *distribution)
 Run a randomly selected test on h.
 
int main ()
 

Macro Definition Documentation

◆ CAPACITY

#define CAPACITY   100

◆ N

#define N   5000

◆ RANDOM_SEED

#define RANDOM_SEED   1830

Function Documentation

◆ main()

int main ( )

◆ run_test()

void run_test ( hashmap_object2int_t * h,
int * distribution )

Run a randomly selected test on h.

Parameters
hA hashmap.
distributionThe desired probability distribution with which each of two actions are performed, expressed as percents.

◆ test_get()

void test_get ( hashmap_object2int_t * h)

◆ test_put()

void test_put ( hashmap_object2int_t * h)