No dedicated unit tests for multiprocessing module #63
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?
Description
The
src/shared/multiprocessing.cmodule contains the pipeline context management for both sender and receiver sides, including thereceive_thread()andwrite_thread()functions. However, there are no dedicated unit tests for:pipeline_context_sender_create()/pipeline_context_sender_destroy()— (partially tested in test_config via pipeline context lifecycle tests)pipeline_context_receiver_create()/pipeline_context_receiver_destroy()receive_thread()— the actual receive logicwrite_thread()— the actual write logicThe lifecycle tests in
test_config.ctest creation/destruction but not the actual threading behavior.Location
src/shared/multiprocessing.c,tests/test_config.c:60-89Suggested Fix
Add tests that:
receive_thread()with controlled input (simulated protocol messages over a pipe)write_thread()with a file queue and verify files are written to diskSeverity
Low
Category
Quality