MCPcopy Create free account
hub / github.com/cosdata/cosdata / main

Function main

tests/test-key-value-store.py:359–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

357# ============== MAIN ==============
358
359def main():
360 create_session()
361 name = "kv_store_comprehensive_test"
362
363 create_db(name, "Comprehensive KV store test")
364 create_index(name)
365
366 print("="*50)
367 print("Running Comprehensive Key-Value Store Tests")
368 print("="*50)
369
370 # Run all tests
371 test_basic_upsert_lookup(name)
372 test_unicode_content(name)
373 test_special_characters(name)
374 test_large_value(name)
375 test_json_value(name)
376 test_bulk_upsert(name)
377 test_key_not_found(name)
378 test_transaction_abort(name)
379 test_multiple_transactions(name)
380 test_binary_like_content(name)
381 test_key_variations(name)
382
383 results.summary()
384
385 # Cleanup
386 print("\nCleaning up...")
387 delete_collection(name)
388 print("Done.")
389
390if __name__ == "__main__":
391 main()

Callers 1

Calls 15

test_basic_upsert_lookupFunction · 0.85
test_unicode_contentFunction · 0.85
test_special_charactersFunction · 0.85
test_large_valueFunction · 0.85
test_json_valueFunction · 0.85
test_bulk_upsertFunction · 0.85
test_key_not_foundFunction · 0.85
test_transaction_abortFunction · 0.85
test_binary_like_contentFunction · 0.85
test_key_variationsFunction · 0.85
summaryMethod · 0.80

Tested by

no test coverage detected