Skip to content

Conversation

@alxkm
Copy link
Contributor

@alxkm alxkm commented Aug 7, 2025

PR Description:
This PR enhances test coverage for core message classes by adding comprehensive unit tests covering edge cases and validation scenarios.
Changes:

  • SystemMessage: Added 10 new tests covering empty/whitespace text, builder validation, metadata handling, immutability, mutation chains, and object contracts
  • UserMessage: Added 14 new tests covering similar scenarios plus media handling, copy operations, and toString methods
  • MessageUtils: Added 1 additional validation test for null resource with charset parameter

Test Coverage Added:

  • Edge cases (empty text, whitespace, null inputs)
  • Builder pattern validation and metadata overwriting
  • Copy/mutation immutability guarantees
  • Object contract compliance (equals, hashCode, toString)
  • Media attachment handling for UserMessage

@sobychacko
Copy link
Contributor

Merged via c893629.

@sobychacko sobychacko closed this Aug 7, 2025
@sobychacko sobychacko added this to the 1.1.0.M1 milestone Aug 7, 2025
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.

2 participants