You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Trim redundant 2nd comment line in TesseractOcrProvider (the +".txt"
re-attach is self-evident from the code).
- Drop duplicate WHAT comment in TesseractOcrProviderTests; the test name
and variable names already state the same fact.
- Convert ExtractTextFromImageAsync_WhenOutputPathHasNonTxtExtension to a
Theory with 5 InlineData rows: out.log, out (no ext), foo.bar.log
(multi-dot), out.TXT (uppercase), out. (trailing dot). Closes the
edge-case gaps in path derivation.
- Add ExtractTextFromImageAsync_WithNonTxtInputPath_ReadsFromDerivedTxtPath
to cover the happy-path File.ReadAllTextAsync(actualTxtPath, ...) line
that was previously only reachable via the throw branch.
- Refactor OcrService.TryDeleteDirectory with an optional
Action<string,bool> deleteImpl parameter (defaults to Directory.Delete)
so the catch-when filter can be tested deterministically and
cross-platform without chmod / FileShare tricks.
- Add two tests that inject throwing delegates to cover IOException and
UnauthorizedAccessException paths of the catch-when filter.
Coverage gaps flagged by review are now closed; 253 tests pass on net8.0,
net9.0, net10.0.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments