Skip to content

Conversation

@kjyy08
Copy link

@kjyy08 kjyy08 commented Jan 6, 2026

Description

This PR adds test coverage for the Prompt.getUserMessages() method, which was previously missing test cases.

Changes

  • Added 4 new test cases to PromptTests class
  • Tests verify proper behavior of getUserMessages() method across different scenarios
  • Changes: +48 lines (1 file modified)

Test Coverage

The new tests validate:

  • getUserMessagesWhenSingle: Returns a single UserMessage correctly
  • getUserMessagesWhenMultiple: Returns multiple UserMessages in order
  • getUserMessagesWhenNone: Returns an empty list when no UserMessages exist
  • getUserMessagesWithMixedMessageTypes: Filters and returns only UserMessages from mixed message types (SystemMessage, AssistantMessage, ToolResponseMessage)

Related

Issue: #3075

Signed-off-by: kjyy08 <kjyy08@naver.com>
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