Lines Matching defs:res
49 struct kod_entry* res;
51 TEST_ASSERT_EQUAL(1, search_entry("192.0.2.5", &res));
52 TEST_ASSERT_EQUAL_STRING("DENY", res->type);
53 TEST_ASSERT_EQUAL_STRING("192.0.2.5", res->hostname);
54 TEST_ASSERT_EQUAL(0x12345678, res->timestamp);
56 TEST_ASSERT_EQUAL(1, search_entry("192.0.2.100", &res));
57 TEST_ASSERT_EQUAL_STRING("RSTR", res->type);
58 TEST_ASSERT_EQUAL_STRING("192.0.2.100", res->hostname);
59 TEST_ASSERT_EQUAL(0xfff, res->timestamp);
69 struct kod_entry* res;
71 TEST_ASSERT_EQUAL(1, search_entry("192.0.2.5", &res));
72 TEST_ASSERT_EQUAL_STRING("DENY", res->type);
73 TEST_ASSERT_EQUAL_STRING("192.0.2.5", res->hostname);
74 TEST_ASSERT_EQUAL(0x12345678, res->timestamp);
76 TEST_ASSERT_EQUAL(1, search_entry("192.0.2.100", &res));
77 TEST_ASSERT_EQUAL_STRING("RSTR", res->type);
78 TEST_ASSERT_EQUAL_STRING("192.0.2.100", res->hostname);
79 TEST_ASSERT_EQUAL(0xfff, res->timestamp);
81 TEST_ASSERT_EQUAL(1, search_entry("example.com", &res));
82 TEST_ASSERT_EQUAL_STRING("DENY", res->type);
83 TEST_ASSERT_EQUAL_STRING("example.com", res->hostname);
84 TEST_ASSERT_EQUAL(0xabcd, res->timestamp);