Skip to content

Improve test coverage: implement all empty tests and add Util test project#80

Draft
Copilot wants to merge 2 commits intodevelopfrom
copilot/enhance-test-coverage
Draft

Improve test coverage: implement all empty tests and add Util test project#80
Copilot wants to merge 2 commits intodevelopfrom
copilot/enhance-test-coverage

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 12, 2026

  • Implement all empty test methods in MetaData.Tests
  • Create new Util test project (MathExtTests, EqualsUtilTests) — 10 tests
  • Create Thread/Tests directory and TCSystem.Thread.Tests.csproj
  • Create FactoryTests.cs (3 tests)
  • Create AsyncUpdateHelperTests.cs (6 tests)
  • Create AsyncUpdateHelperExtTests.cs (3 tests)
  • Create SemaphoreSlimExtTests.cs (5 tests)
  • Create WorkerThreadTests.cs (12 tests)
  • Create MultipleTasksExecuteTests.cs (7 tests + 2 cancellation)
  • Update Thread/TCSystem.Thread.csproj to exclude Tests/**
  • Update TCSystem.slnx to include new test project
  • Build and run all tests: 197 pass (38 Thread + 98 MetaData + 51 MetaDataDB + 10 Util)

…ed test coverage

- Implement 20 empty test methods in ImageTests.cs (constructor, equals, JSON, query/modify)
- Implement 4 empty tests in PersonTests.cs (constructor, toString, toJson, invalidateId)
- Implement 3 empty tests in PersonTagTests.cs (constructor, toString, invalidateIds)
- Implement 2 empty tests in FaceTests.cs (constructor properties + descriptor validation, invalidateId)
- Implement 3 empty tests in FaceInfoTests.cs (constructor, toJsonString, toJsonStringArray)
- Implement 2 empty tests in FaceDistanceInfoTests.cs (fromJsonString, fromJsonStringArray)
- Implement 5 empty tests in FileAndPersonTagTests.cs (constructor, arrays, toString)
- Implement 2 empty tests in FixedPoint32Tests.cs (constructor + operators, toString)
- Implement 2 empty tests in FixedPoint64Tests.cs (constructor + operators, toString)
- Implement 4 empty tests in RectangleTests.cs (fromFloat, fromRawValues, constructor, toString)
- Add new TCSystem.Util.Tests project with MathExtTests and EqualsUtilTests (10 new tests)
- Update TCSystem.slnx and TCSystem.Util.csproj for new test project

Agent-Logs-Url: https://github.com/tgoessler/TCSystemCS/sessions/6e83c422-f889-46e8-8505-fa25b23380c4

Co-authored-by: tgoessler <89462205+tgoessler@users.noreply.github.com>
- FactoryTests: CreateWorkerThread, CreateAsyncUpdateHelper, CreateMultipleTasksExecute
- AsyncUpdateHelperTests: initial state, BeginUpdateAsync/EndUpdate round trips, ShouldStop
  and IsUpdatePending under contention, sequential updates
- AsyncUpdateHelperExtTests: BeginUpdateScopeAsync and WaitScopeAsync dispose correctly
- SemaphoreSlimExtTests: Lock/LockAsync acquire+release, blocking, sequential locks
- WorkerThreadTests: ExecuteCommand, ExecuteCommandAsync, ClearOpenCommands,
  NumOpenActions, IsBusy, OnInitThread, OnDeInitThread, CancellationToken,
  StopThread, IdleEvent
- MultipleTasksExecuteTests: single/multiple actions, WaitAllDone, parallelism limit,
  cancellation token
- Update Thread.csproj to exclude Tests/**
- Add Thread/Tests project to TCSystem.slnx under /50 Tests/

Agent-Logs-Url: https://github.com/tgoessler/TCSystemCS/sessions/45f03805-4f5a-4ea6-ab23-685d8c654f77

Co-authored-by: tgoessler <89462205+tgoessler@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants