int init_module(void) { START_TESTS("Pool"); INIT_CALL_END(init(), test_get_any_function(), destroy(), "Get simple"); INIT_CALL_END(init(), test_return_function(), destroy(), "Get and Return"); INIT_CALL_END(init(), test_get_similar_function(), destroy(), "Allocate functions"); END_TESTS; }
int init_module(void) { START_TESTS("Pool"); INIT_CALL_END(init(), test_get_any_function_udp(), destroy(), "Get simple-UDP"); INIT_CALL_END(init(), test_get_any_function_tcp(), destroy(), "Get simple-TCP"); INIT_CALL_END(init(), test_get_any_function_icmp(), destroy(), "Get simple-ICMP"); INIT_CALL_END(init(), test_get_similar_function_udp(), destroy(), "Get similar-UDP"); INIT_CALL_END(init(), test_get_similar_function_tcp(), destroy(), "Get similar-TCP"); INIT_CALL_END(init(), test_get_similar_function_icmp(), destroy(), "Get similar-ICMP"); INIT_CALL_END(init(), test_return_function(), destroy(), "Return function"); END_TESTS; }
int init_module(void) { START_TESTS("IPv4 Pool"); INIT_CALL_END(init(), test_get_match_function_udp(), destroy(), "Get match-UDP"); INIT_CALL_END(init(), test_get_match_function_tcp(), destroy(), "Get match-TCP"); INIT_CALL_END(init(), test_get_match_function_icmp(), destroy(), "Get match-ICMP"); INIT_CALL_END(init(), test_get_any_port_function_udp(), destroy(), "Get any port-UDP"); INIT_CALL_END(init(), test_get_any_port_function_tcp(), destroy(), "Get any port-TCP"); INIT_CALL_END(init(), test_get_any_port_function_icmp(), destroy(), "Get any port-ICMP"); INIT_CALL_END(init(), test_get_any_addr_function_udp(), destroy(), "Get any addr-UDP"); INIT_CALL_END(init(), test_get_any_addr_function_tcp(), destroy(), "Get any addr-TCP"); INIT_CALL_END(init(), test_get_any_addr_function_icmp(), destroy(), "Get any addr-ICMP"); INIT_CALL_END(init(), test_return_function(), destroy(), "Return function"); END_TESTS; }