MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / main

Function main

test_gitbase_e2e.py:364–391  ·  view source on GitHub ↗

Run all end-to-end tests.

()

Source from the content-addressed store, hash-verified

362
363
364def main():
365 """Run all end-to-end tests."""
366 print("🚀 Starting GitBase End-to-End Tests")
367 print(f"PyTorch version: {torch.__version__}")
368 print(f"CUDA available: {torch.cuda.is_available()}")
369 if torch.cuda.is_available():
370 print(f"CUDA device: {torch.cuda.get_device_name()}")
371 print(f"CUDA memory: {torch.cuda.get_device_properties(0).total_memory / 1024**3:.1f} GB")
372 print()
373
374 try:
375 test_basic_functionality()
376 test_gpu_optimizations()
377 test_different_generation_modes()
378 test_api_functions()
379 test_comprehensive_image_types()
380 test_memory_usage()
381
382 print("=" * 60)
383 print("🎉 ALL TESTS COMPLETED SUCCESSFULLY!")
384 print("=" * 60)
385
386 except Exception as e:
387 print(f"❌ Test failed with error: {e}")
388 import traceback
389
390 traceback.print_exc()
391 sys.exit(1)
392
393
394if __name__ == "__main__":

Callers 1

Calls 7

test_basic_functionalityFunction · 0.85
test_gpu_optimizationsFunction · 0.85
test_api_functionsFunction · 0.85
test_memory_usageFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected