Skip to content

Conversation

@tcheeric
Copy link
Owner

Summary

  • expand validation test coverage to addressable, ephemeral, direct message, hide message, and channel message events
  • ensure range and tag rules are verified with plain-English comments for each test

Testing

  • mvn -q verify (fails: Could not find a valid Docker environment)

Network Access

  • No network access issues; failures due to missing Docker environment.

https://chatgpt.com/codex/tasks/task_b_68a747cfe1c88331931b320d049c1664

@tcheeric tcheeric changed the base branch from main to develop August 22, 2025 06:30
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tcheeric tcheeric requested a review from Copilot August 22, 2025 06:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR expands test coverage for Nostr event validation by adding comprehensive validation tests for 9 different event implementation types. The tests verify that events correctly validate their kind values, required tags, and other constraints according to Nostr protocol specifications.

  • Adds validation tests for addressable, ephemeral, replaceable, and various message event types
  • Tests both successful validation scenarios and failure cases with invalid kinds or missing required tags
  • Includes clear plain-English comments explaining the validation rules being tested

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
AddressableEventValidateTest.java Tests kind validation for addressable events (30000-39999 range)
ChannelMessageEventValidateTest.java Validates channel message events require root event tags
DeletionEventValidateTest.java Tests deletion events require event/author and kind tags
DirectMessageEventValidateTest.java Validates direct messages require recipient public key tags
EphemeralEventValidateTest.java Tests ephemeral event kind range validation (20000-29999)
HideMessageEventValidateTest.java Validates hide message events require event tags
MuteUserEventValidateTest.java Tests mute user events require pubkey tags
ReactionEventValidateTest.java Validates reaction events require event tags
ReplaceableEventValidateTest.java Tests replaceable event kind validation including special cases

@tcheeric tcheeric merged commit 4ea39e0 into develop Aug 22, 2025
3 of 4 checks passed
@tcheeric tcheeric deleted the codex/add-unit-tests-for-event-classes branch August 22, 2025 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants