-
Type:
Task
-
Resolution: Cannot Reproduce
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: Client Side Encryption
-
None
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
CSFLE modules represent ~2.7% of the total codebase (856 / 32,085 statements) but are sitting at only ~25% coverage — well below the project average of 44%. The async/encryption.py and sync/encryption.py files are the worst at 25%, with encryption_options.py close behind at 26%.
CSFLE module coverage can be improved by targeting critical code paths:
- encryption.py (sync + async), encryption_options.py
- ~70% uncovered; KMS provider paths, key rotation, error handling
Definition of done
Improve CSFLE coverage to ~80-100% which will increase total coverage by up to 2%.
Pitfalls
Possible practical challenges testing CSFLE code in real world scenarios and/or mocking the results.