Add comprehensive test suite for core modules#276
Merged
Edwardvaneechoud merged 1 commit intomainfrom Jan 29, 2026
Merged
Conversation
Add 19 new test files covering 311 test cases across flowfile_core and flowfile_worker. Key coverage improvements include: Core tests (14 files): - connection_manager: 0% -> 100% - pivot_table: 0% -> 100% - configs/utils (MutableBool): 53% -> 100% - auth/password: 56% -> 100% - utils/fileManager: 23% -> 100% - database_connection_manager/models: 0% -> 100% - calculate_layout: 4% -> 87% - sample_data: 48% -> 94% - fileExplorer/utils: 0% -> 60% - flow_file_column/utils: 70% -> 92% - compatibility_enhancements: 30% -> 45% - flowfile/utils: 45% -> 64% Worker tests (5 files): - create/pl_types: 0% -> 100% - process_manager: 58% -> 100% - secrets: 39% -> 73% - create/utils: 18% -> 43% https://claude.ai/code/session_01DNZsCPXCZnvnnnKPnAQHEZ
✅ Deploy Preview for flowfile-wasm canceled.
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a comprehensive test suite covering 13 core modules across the flowfile_core package. The tests provide coverage for utility functions, data models, managers, and configuration handling.
Key Changes
test_calculate_layout.py): Tests for layered graph layout algorithm including empty graphs, linear chains, fan-out/fan-in patterns, and diamond patternstest_column_utils.py): Tests for Polars data type mapping and conversion functionstest_compatibility_enhancements.py): Tests for dataclass-to-Pydantic migration and flow settings managementtest_config_utils.py): Tests for MutableBool dataclass with equality and mutation operationstest_connection_manager.py): Tests for connection CRUD operations and group managementtest_core_utils.py): Tests for string conversion, type standardization, and dictionary utilitiestest_db_connection_models.py): Tests for DatabaseConnectionOutput model serializationtest_file_explorer_utils.py): Tests for file chunking, media type detection, and extension handlingtest_file_manager.py): Tests for directory creation and file removal operationstest_flow_data_utils.py): Tests for data type detection and column transformationtest_flowfile_utils.py): Tests for hashing, JSON serialization, and batch generationNotable Implementation Details