Skip to content

Conversation

@ppinchuk
Copy link
Collaborator

Slowly working toward the goal of 80%+ coverage

…ed.py, covering cache hashing, extensionless moves, debug-only writes, disk writers, usage/jurisdiction updaters, and HTML loader flows so the module now hits all conditional paths.
@ppinchuk ppinchuk self-assigned this Nov 20, 2025
Copilot AI review requested due to automatic review settings November 20, 2025 21:35
@ppinchuk ppinchuk requested a review from castelao as a code owner November 20, 2025 21:35
@ppinchuk ppinchuk added enhancement Update to logic or general code improvements topic-python-general Issues/pull requests related to python p-high Priority: high labels Nov 20, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.19%. Comparing base (47acad4) to head (9190a3b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #348      +/-   ##
==========================================
+ Coverage   40.02%   42.19%   +2.16%     
==========================================
  Files          45       45              
  Lines        4240     4240              
  Branches      380      380              
==========================================
+ Hits         1697     1789      +92     
+ Misses       2523     2434      -89     
+ Partials       20       17       -3     
Flag Coverage Δ
unittests 42.19% <ø> (+2.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot finished reviewing on behalf of ppinchuk November 20, 2025 21:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive unit test coverage for the threaded services module, testing various file caching, writing, and processing utilities used by the COMPASS project.

  • Adds 18 new test functions covering private utility functions and service classes
  • Tests file caching with hash computation, file moving operations, cleaned file writing, ordinance database writing, and HTML file loading
  • Includes tests for services like TempFileCache, TempFileCachePB, CleanedFileWriter, OrdDBFileWriter, UsageUpdater, and JurisdictionUpdater

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Update to logic or general code improvements p-high Priority: high topic-python-general Issues/pull requests related to python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants