Functions
unittest_radix_tree.cpp File Reference
#include "../tests/testutil.hpp"
#include <radix_tree.hpp>
#include <stdint.hpp>
#include <set>
#include <string>
#include <string.h>
#include <unity.h>
#include <vector>
Include dependency graph for unittest_radix_tree.cpp:

Go to the source code of this file.

Functions

int main (void)
 
void return_key (unsigned char *data_, size_t size_, void *arg_)
 
void setUp ()
 
void tearDown ()
 
void test_add_same_entry_twice ()
 
void test_add_single_entry ()
 
void test_apply ()
 
void test_check_added_entry ()
 
void test_check_common_prefix ()
 
void test_check_empty ()
 
void test_check_nonexistent_entry ()
 
void test_check_null_entry_added ()
 
void test_check_prefix ()
 
void test_check_query_longer_than_entry ()
 
void test_empty ()
 
void test_rm_common_prefix ()
 
void test_rm_common_prefix_entry ()
 
void test_rm_duplicate_entry ()
 
void test_rm_null_entry ()
 
void test_rm_single_entry ()
 
void test_rm_unique_entry_twice ()
 
void test_rm_when_empty ()
 
void test_size ()
 
bool tree_add (zmq::radix_tree_t &tree_, const std::string &key_)
 
bool tree_check (zmq::radix_tree_t &tree_, const std::string &key_)
 
bool tree_rm (zmq::radix_tree_t &tree_, const std::string &key_)
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 242 of file unittest_radix_tree.cpp.

◆ return_key()

void return_key ( unsigned char *  data_,
size_t  size_,
void arg_ 
)

Definition at line 208 of file unittest_radix_tree.cpp.

◆ setUp()

void setUp ( )

Definition at line 14 of file unittest_radix_tree.cpp.

◆ tearDown()

void tearDown ( )

Definition at line 17 of file unittest_radix_tree.cpp.

◆ test_add_same_entry_twice()

void test_add_same_entry_twice ( )

Definition at line 53 of file unittest_radix_tree.cpp.

◆ test_add_single_entry()

void test_add_single_entry ( )

Definition at line 46 of file unittest_radix_tree.cpp.

◆ test_apply()

void test_apply ( )

Definition at line 218 of file unittest_radix_tree.cpp.

◆ test_check_added_entry()

void test_check_added_entry ( )

Definition at line 129 of file unittest_radix_tree.cpp.

◆ test_check_common_prefix()

void test_check_common_prefix ( )

Definition at line 137 of file unittest_radix_tree.cpp.

◆ test_check_empty()

void test_check_empty ( )

Definition at line 122 of file unittest_radix_tree.cpp.

◆ test_check_nonexistent_entry()

void test_check_nonexistent_entry ( )

Definition at line 156 of file unittest_radix_tree.cpp.

◆ test_check_null_entry_added()

void test_check_null_entry_added ( )

Definition at line 172 of file unittest_radix_tree.cpp.

◆ test_check_prefix()

void test_check_prefix ( )

Definition at line 146 of file unittest_radix_tree.cpp.

◆ test_check_query_longer_than_entry()

void test_check_query_longer_than_entry ( )

Definition at line 164 of file unittest_radix_tree.cpp.

◆ test_empty()

void test_empty ( )

Definition at line 39 of file unittest_radix_tree.cpp.

◆ test_rm_common_prefix()

void test_rm_common_prefix ( )

Definition at line 95 of file unittest_radix_tree.cpp.

◆ test_rm_common_prefix_entry()

void test_rm_common_prefix_entry ( )

Definition at line 104 of file unittest_radix_tree.cpp.

◆ test_rm_duplicate_entry()

void test_rm_duplicate_entry ( )

Definition at line 85 of file unittest_radix_tree.cpp.

◆ test_rm_null_entry()

void test_rm_null_entry ( )

Definition at line 114 of file unittest_radix_tree.cpp.

◆ test_rm_single_entry()

void test_rm_single_entry ( )

Definition at line 68 of file unittest_radix_tree.cpp.

◆ test_rm_unique_entry_twice()

void test_rm_unique_entry_twice ( )

Definition at line 76 of file unittest_radix_tree.cpp.

◆ test_rm_when_empty()

void test_rm_when_empty ( )

Definition at line 61 of file unittest_radix_tree.cpp.

◆ test_size()

void test_size ( )

Definition at line 180 of file unittest_radix_tree.cpp.

◆ tree_add()

bool tree_add ( zmq::radix_tree_t tree_,
const std::string key_ 
)

Definition at line 21 of file unittest_radix_tree.cpp.

◆ tree_check()

bool tree_check ( zmq::radix_tree_t tree_,
const std::string key_ 
)

Definition at line 33 of file unittest_radix_tree.cpp.

◆ tree_rm()

bool tree_rm ( zmq::radix_tree_t tree_,
const std::string key_ 
)

Definition at line 27 of file unittest_radix_tree.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04