Skip to content

test: add ToolRegistry list ordering and isolation tests (Issue #129) - #205

Open
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-129-tool-registry-list-ordering
Open

test: add ToolRegistry list ordering and isolation tests (Issue #129)#205
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-129-tool-registry-list-ordering

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Adds unit tests verifying ToolRegistry.list() preserves registration order, returns the same object references that were registered, returns an empty array for a fresh registry, and does not expose internal state through the returned array.

Tests Added

  • ✅ Empty array returned for fresh registry
  • ✅ Registration order preserved in list output
  • ✅ Same object references returned as were registered
  • ✅ External mutation of list result does not affect internal registry

Verification

All 4 tests pass locally via npx vitest run tests/tools/tool-registry-list.test.ts.

Closes #129

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.

[Bounty: $25] Add test for ToolRegistry list ordering and isolation

1 participant