Skip to content

Batch 9: Integration and unit tests (15 new tests)#378

Merged
JusterZhu merged 1 commit into
masterfrom
batch-9-tests
May 24, 2026
Merged

Batch 9: Integration and unit tests (15 new tests)#378
JusterZhu merged 1 commit into
masterfrom
batch-9-tests

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Summary

Adds 15 new tests covering the key new components from Batches 1-8.

New Tests

DownloadPlanBuilderTests (8)

  • Build_EmptyAssets_ReturnsEmptyPlan
  • Build_SingleAsset_ReturnsIt
  • Build_CrossVersionPackage_DirectJump
  • Build_FrozenPackagesExcluded
  • Build_ForcedUpdate_MarksPlan
  • Build_VersionChain_MultipleSteps
  • Build_SameVersion_ReturnsEmpty
  • Build_MinClientVersion_FiltersOut

FileTreeEnumeratorTests (4)

  • EnumerateFiles_ReturnsAllFilesInFlatDirectory
  • EnumerateFiles_BlacklistedFormat_Excluded
  • EnumerateFiles_BlacklistedDirectory_Skipped
  • EnumerateFiles_NonExistentDirectory_ReturnsEmpty

EventManagerConcurrencyTests (3)

  • ConcurrentAddRemoveDispatch_NoExceptions
  • Dispatch_HandlerException_DoesNotBlockOthers
  • AddRemove_Dispatch_DoesNotThrow

Test Results

  • 15/15 new tests PASS
  • 53 existing tests continue to pass

Closes #377

…r concurrency

- DownloadPlanBuilderTests: 8 tests covering empty, single, cross-version
  jump, frozen exclusion, forced update, version chain, same version, MinClientVersion
- FileTreeEnumeratorTests: 4 tests covering flat enumeration, blacklisted format
  exclusion, directory skipping, non-existent directory
- EventManagerConcurrencyTests: 3 tests covering concurrent add/remove/dispatch,
  handler exception isolation, add-remove-dispatch lifecycle

All 15 new tests pass (53 existing tests also pass, 2 pre-existing failures
in BackupRestoreTests and ConfiginfoBuilderTests unrelated to this batch)

Closes #377
Copilot AI review requested due to automatic review settings May 24, 2026 10:44
@JusterZhu JusterZhu merged commit ef7fb19 into master May 24, 2026
1 check failed
@JusterZhu JusterZhu deleted the batch-9-tests branch May 24, 2026 10:45
@JusterZhu JusterZhu review requested due to automatic review settings May 24, 2026 11:05
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.

Batch 9: Integration and unit tests

1 participant