r3/tests
Björn Svensson ff1ef2c148 Correcting issue with multiple edges
When `r3_node_find_common_prefix()` searches for the common prefix it
selects the first matched edge, which might not be the best match.

This issue gives memoryleaks which can be viewed in legacy
testcase `check_tree::test_insert_pathl()` by building using:
`CFLAGS="-fno-omit-frame-pointer -fsanitize=leak" cmake ..`
See testcase procedures:
    ret = r3_tree_insert_path(n, "/foo/{id}",  NULL);
    ..
    ret = r3_tree_insert_path(n, "/foo/{idx}/{idy}",  NULL);
    ..
    ret = r3_tree_insert_path(n, "/foo/{idx}/{idh}",  NULL); <-- leaks

Also added a testcase that triggers the problem including a leak for
reproduction on baseline.
2021-09-20 16:55:37 +02:00
..
bench.c Remove zmalloc dependency 2018-07-10 08:20:46 -05:00
bench.h Fix copyright email 2014-06-27 13:24:40 +08:00
check_gvc.c Move private functions to private header files 2015-11-17 21:17:35 +08:00
check_host.c change: removed useless comments. 2019-06-20 11:21:04 +08:00
check_http_scheme.c feature: supported to match http scheme. 2019-06-26 23:06:32 +08:00
check_json.c Fix r3 json writer 2015-11-18 14:27:28 +08:00
check_remote_addr.c feature: supported to match remote ip address. 2019-06-19 23:36:37 -04:00
check_routes.c Remove zmalloc dependency 2018-07-10 08:20:46 -05:00
check_routes2.c test: added test cases. 2019-07-21 08:46:37 -04:00
check_slug.c change(tests/check_slug): avoided compiling warning. 2019-07-20 07:06:56 +08:00
check_str_array.c Remove zmalloc dependency 2018-07-10 08:20:46 -05:00
check_tree.c Correcting issue with multiple edges 2021-09-20 16:55:37 +02:00
CMakeLists.txt test: added test cases. 2019-07-21 08:46:37 -04:00
Makefile.am optimize: optimized pattern .*, which can be used prefix matching. 2019-07-20 10:52:56 -04:00