Add comprehensive test cases to improve test coverage#93
Draft
Copilot wants to merge 1 commit into
Draft
Conversation
Add tests for previously untested code: - Util/Tests/AsyncExtTests.cs: ForEachAsync extension method - Util/Tests/EnumerableExtTests.cs: OrderRandom extension method - MetaData/Tests/ProcessingInfosExtTests.cs: ProcessingInfos flag checks - MetaData/Tests/ImageExtTests.cs: InvalidateId and GetFace extensions - MetaData/Tests/UtilTests.cs: IsSupportedFileType, SortPersonTags, GetValueOrDefault, Trim, HasMinimalDifference Agent-Logs-Url: https://github.com/tgoessler/TCSystemCS/sessions/5128e577-3dff-48cb-81ea-e68243037a37 Co-authored-by: tgoessler <89462205+tgoessler@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
tgoessler
May 13, 2026 21:40
View session
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
Analyzed test coverage across the codebase and added 56 new tests across 5 test files to cover previously untested public APIs.
Coverage Analysis
New Test Files
Util/Tests/AsyncExtTests.cs (5 tests)
Tests for
ForEachAsyncextension method: empty collection, single item, multiple items, transformation, sequential execution.Util/Tests/EnumerableExtTests.cs (6 tests)
Tests for
OrderRandomextension method: empty collection, single element, element preservation, count preservation, duplicates, string types.MetaData/Tests/ProcessingInfosExtTests.cs (18 tests)
Tests for all
ProcessingInfosExtmethods:AreAllFaceDetectionsDone,AreAllFrontalFaceDetectionsDone,IsFrontalFaceDetection,IsCnnFaceDetectionwith various flag combinations.MetaData/Tests/ImageExtTests.cs (9 tests)
Tests for
InvalidateId(Image, Person, Face, PersonTag) andGetFaceextension methods including null/empty collection edge cases.MetaData/Tests/UtilTests.cs (18 tests)
Tests for
IsSupportedFileType,SortPersonTags,GetValueOrDefault,Trim, andHasMinimalDifferenceincluding edge cases like recycle bin paths, empty collections, and floating-point comparisons.Remaining Gaps (for future work)
AsyncUpdateScope,SemaphoreSlimLock,WaitHandleExtareinternalwith noInternalsVisibleTo