Lines Matching refs:query
26 const char *query = "example.com"; in ZTEST() local
28 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, TEST_DNS_CACHE_DEFAULT_TTL), in ZTEST()
30 zassert_equal(1, dns_cache_find(&test_dns_cache, query, &info_read, 1)); in ZTEST()
37 const char *query = "example.com"; in ZTEST() local
39 zassert_equal(0, dns_cache_find(&test_dns_cache, query, &info_read, 1)); in ZTEST()
47 const char *query = "example.com"; in ZTEST() local
50 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, in ZTEST()
55 dns_cache_find(&test_dns_cache, query, info_read, TEST_DNS_CACHE_SIZE)); in ZTEST()
63 const char *query = "example.com"; in ZTEST() local
66 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, in ZTEST()
71 zassert_equal(0, dns_cache_find(&test_dns_cache, query, info_read, TEST_DNS_CACHE_SIZE)); in ZTEST()
79 const char *query = "example.com"; in ZTEST() local
82 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, in ZTEST()
87 dns_cache_find(&test_dns_cache, query, info_read, TEST_DNS_CACHE_SIZE - 1)); in ZTEST()
114 const char *query = "example.com"; in ZTEST() local
116 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, TEST_DNS_CACHE_DEFAULT_TTL), in ZTEST()
119 dns_cache_add(&test_dns_cache, query, &info_write, TEST_DNS_CACHE_DEFAULT_TTL * 2), in ZTEST()
122 dns_cache_add(&test_dns_cache, query, &info_write, TEST_DNS_CACHE_DEFAULT_TTL * 3), in ZTEST()
124 zassert_equal(3, dns_cache_find(&test_dns_cache, query, info_read, 3)); in ZTEST()
127 zassert_equal(2, dns_cache_find(&test_dns_cache, query, info_read, 3)); in ZTEST()
130 zassert_equal(1, dns_cache_find(&test_dns_cache, query, info_read, 3)); in ZTEST()
133 zassert_equal(1, dns_cache_find(&test_dns_cache, query, info_read, 3)); in ZTEST()