Testing: multiprocessing.c has only 42% coverage — server thread functions untested #137
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/shared/multiprocessing.chas only 42% coverage (48/112 lines). Three key functions are completely uncovered:receive_chunk_enqueue()receive_thread()write_thread()These are the server-side multithreading pipeline functions responsible for receiving chunks from the network and writing them to disk. The covered code is mostly the client-side pipeline creation and teardown.
Root cause
fork()for concurrency, not the thread poolSuggested tests
create_pipeline_context_server()Labels: testing, coverage, threading, server