schrodinger.seam.testing.stu_tests.xcopy_memory_efficiency module

Test that xcopy copies files in a memory-efficient manner using chunked reads.

This test verifies that xcopy does not load entire file contents into memory, which could cause memory issues when copying large files.

Usage:

$SCHRODINGER/run python3 -m schrodinger.seam.testing.stu_tests.xcopy_memory_efficiency
schrodinger.seam.testing.stu_tests.xcopy_memory_efficiency.create_source_file(path: str, size_bytes: int, write_chunk_size: int)

Create a file of specified size by writing in chunks.

Parameters:
  • path – Path to create the file at.

  • size_bytes – Total size of the file in bytes.

  • write_chunk_size – Size of chunks to write at a time.

schrodinger.seam.testing.stu_tests.xcopy_memory_efficiency.main()