Skip to content

Add tests for core logic: AddEvent, handlers, and listener management#142

Merged
mattn merged 4 commits into
masterfrom
add-high-priority-tests
Mar 27, 2026
Merged

Add tests for core logic: AddEvent, handlers, and listener management#142
mattn merged 4 commits into
masterfrom
add-high-priority-tests

Conversation

@mattn

@mattn mattn commented Mar 27, 2026

Copy link
Copy Markdown
Collaborator

Add 33 tests covering previously untested core logic:

  • AddEvent: nil/rejected/ephemeral/save/duplicate/error/AdvancedSaver hooks
  • Handlers (integration): doEvent ID/signature validation, NIP-09 deletion authorization, doReq query flow, doClose/doCount edge cases, handleMessage routing and error handling, NIP-11 info document
  • Listener management: setListener/removeListenerId/removeListener/GetListeningFilters with boundary and dedup cases
  • GetAuthStatus context extraction

@mattn mattn merged commit a73022f into master Mar 27, 2026
1 check passed
@mattn mattn deleted the add-high-priority-tests branch March 27, 2026 01:26
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.

1 participant