Lines Matching defs:test_size
355 static int test_cache_with_seed(int seed, int test_size, am_request_t * request, struct am_policy_result * result, am_bool_t error)
359 int capacity = test_size;
363 for(i = 0; i < test_size; i++) {
408 static int test_cache(int test_size, am_request_t * request, struct am_policy_result * result) {
409 return test_cache_with_seed(543542, test_size, request, result, AM_TRUE);
413 static void test_cache_keys(int test_size, char** keys, am_request_t* request, struct am_policy_result* result)
418 for(i = 0; i < test_size; i++) {
423 for(i = 0; i < test_size; i++) {
428 for(i = 0; i < test_size; i++) {
442 const int test_size = 198;
462 test_cache(test_size, &request, result);
471 const int test_size = 4096;
496 capacity = test_cache(test_size, &request, result);
506 const int test_size = 4096 * 10000; // must be beyond the capacity
534 loaded = test_cache(test_size, &request, result);
542 loaded = test_cache(test_size, &request, result);
642 int test_size;
654 test_cache_with_seed(47329847, p->test_size, p->request, p->result, AM_FALSE);
686 .test_size = TEST_SIZE,