#include "../tests/testutil.hpp"
#include <radix_tree.hpp>
#include <stdint.hpp>
#include <set>
#include <string>
#include <string.h>
#include <unity.h>
#include <vector>
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_) |
int main | ( | void | ) |
Definition at line 242 of file unittest_radix_tree.cpp.
Definition at line 208 of file unittest_radix_tree.cpp.
void setUp | ( | ) |
Definition at line 14 of file unittest_radix_tree.cpp.
void tearDown | ( | ) |
Definition at line 17 of file unittest_radix_tree.cpp.
void test_add_same_entry_twice | ( | ) |
Definition at line 53 of file unittest_radix_tree.cpp.
void test_add_single_entry | ( | ) |
Definition at line 46 of file unittest_radix_tree.cpp.
void test_apply | ( | ) |
Definition at line 218 of file unittest_radix_tree.cpp.
void test_check_added_entry | ( | ) |
Definition at line 129 of file unittest_radix_tree.cpp.
void test_check_common_prefix | ( | ) |
Definition at line 137 of file unittest_radix_tree.cpp.
void test_check_empty | ( | ) |
Definition at line 122 of file unittest_radix_tree.cpp.
void test_check_nonexistent_entry | ( | ) |
Definition at line 156 of file unittest_radix_tree.cpp.
void test_check_null_entry_added | ( | ) |
Definition at line 172 of file unittest_radix_tree.cpp.
void test_check_prefix | ( | ) |
Definition at line 146 of file unittest_radix_tree.cpp.
void test_check_query_longer_than_entry | ( | ) |
Definition at line 164 of file unittest_radix_tree.cpp.
void test_empty | ( | ) |
Definition at line 39 of file unittest_radix_tree.cpp.
void test_rm_common_prefix | ( | ) |
Definition at line 95 of file unittest_radix_tree.cpp.
void test_rm_common_prefix_entry | ( | ) |
Definition at line 104 of file unittest_radix_tree.cpp.
void test_rm_duplicate_entry | ( | ) |
Definition at line 85 of file unittest_radix_tree.cpp.
void test_rm_null_entry | ( | ) |
Definition at line 114 of file unittest_radix_tree.cpp.
void test_rm_single_entry | ( | ) |
Definition at line 68 of file unittest_radix_tree.cpp.
void test_rm_unique_entry_twice | ( | ) |
Definition at line 76 of file unittest_radix_tree.cpp.
void test_rm_when_empty | ( | ) |
Definition at line 61 of file unittest_radix_tree.cpp.
void test_size | ( | ) |
Definition at line 180 of file unittest_radix_tree.cpp.
bool tree_add | ( | zmq::radix_tree_t & | tree_, |
const std::string & | key_ | ||
) |
Definition at line 21 of file unittest_radix_tree.cpp.
bool tree_check | ( | zmq::radix_tree_t & | tree_, |
const std::string & | key_ | ||
) |
Definition at line 33 of file unittest_radix_tree.cpp.
bool tree_rm | ( | zmq::radix_tree_t & | tree_, |
const std::string & | key_ | ||
) |
Definition at line 27 of file unittest_radix_tree.cpp.