refactor(routing): moved some stuff, added some comments
This commit is contained in:
parent
cf4451740f
commit
115baecde8
6 changed files with 72 additions and 43 deletions
|
|
@ -77,6 +77,8 @@ void test_routing_merge() {
|
|||
|
||||
TEST_CHECK(lnm_http_router_route(&match, rtr1, lnm_http_method_get, "/test2") == lnm_http_route_err_match);
|
||||
TEST_CHECK(match.route == rt2);
|
||||
|
||||
lnm_http_router_free(rtr1);
|
||||
}
|
||||
|
||||
void test_routing_nest() {
|
||||
|
|
@ -97,6 +99,7 @@ void test_routing_nest() {
|
|||
|
||||
TEST_CHECK(lnm_http_router_route(&match, r2, lnm_http_method_get, "/test/test2") == lnm_http_route_err_match);
|
||||
|
||||
lnm_http_router_free(r2);
|
||||
}
|
||||
|
||||
TEST_LIST = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue