Lines Matching refs:format
36 table.insert("k{}".format(i), i, "v{}".format(i))
38 assert table.lookup("k{}".format(i), i) is not None
40 table.delete("k{}".format(i), i)
42 assert table.lookup("k{}".format(i), i) is None
50 key = "k{}".format(key_id)
53 assert len(truth_map) == table.elements, "{} {} {}".format(
87 assert cache.used_size == expected_value[0], "Expected {}, Actual {}".format(
92 ), "Expected {}, Actual {}".format(
97 ), "Expected {}, Actual {}".format(
102 ), "Expected {}, Actual {}".format(
107 val = cache.table.lookup("b{}".format(expeceted_k), expeceted_k)
109 val = cache.table["b{}".format(expeceted_k)]
110 assert val is not None, "Expected {} Actual: Not Exist {}, Table: {}".format(
116 val = cache.table.lookup("g0-{}".format(expeceted_k), expeceted_k)
118 val = cache.table["g0-{}".format(expeceted_k)]
291 print("Test Mix {} cache".format(cache.cache_name()))
343 assert cached_size == cache.used_size, "Expeced {} Actual {}".format(
346 print("Test Mix {} cache: Success".format(cache.cache_name()))
369 access_record += "{},".format(now)
370 access_record += "{},".format(key_id)
371 access_record += "{},".format(9) # block type
372 access_record += "{},".format(block_size) # block size
373 access_record += "{},".format(cf_id)
374 access_record += "cf_{},".format(cf_id)
375 access_record += "{},".format(level)
376 access_record += "{},".format(fd)
377 access_record += "{},".format(key_id % 3) # caller
378 access_record += "{},".format(0) # no insert
379 access_record += "{},".format(i) # get_id
380 access_record += "{},".format(i) # key_id
381 access_record += "{},".format(100) # kv_size
382 access_record += "{},".format(1) # is_hit
383 access_record += "{},".format(1) # referenced_key_exist_in_block
384 access_record += "{},".format(10) # num_keys_in_block
385 access_record += "{},".format(1) # table_id
386 access_record += "{},".format(0) # seq_number
387 access_record += "{},".format(10) # block key size
388 access_record += "{},".format(20) # key size
389 access_record += "{},".format(0) # block offset
424 assert cached_size == cache.used_size, "Expeced {} Actual {}".format(
427 print("Test All {}: Success".format(cache.cache_name()))
434 print("Test {} cache".format(cache.cache_name()))
533 print("Test {} cache: Success".format(cache.cache_name()))