Skip to content

Add focused parser state-transition tests#78

Merged
Vladyslav-Kuksiuk merged 1 commit into
masterfrom
add-parser-tests
Jul 3, 2026
Merged

Add focused parser state-transition tests#78
Vladyslav-Kuksiuk merged 1 commit into
masterfrom
add-parser-tests

Conversation

@Vladyslav-Kuksiuk

Copy link
Copy Markdown
Collaborator

This PR adds own-package tests for parser states in embedding/parsing.

Resolves this issue.

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk self-assigned this Jul 2, 2026
@Vladyslav-Kuksiuk Vladyslav-Kuksiuk marked this pull request as ready for review July 2, 2026 13:51
@Oleg-Melnik Oleg-Melnik requested a review from Copilot July 2, 2026 15:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds targeted, parser-focused tests in embedding/parsing to make state-machine regressions easier to pinpoint, complementing the existing end-to-end embedding coverage and addressing the need from issue #63 for explicit state-transition and malformed EOF/fence cases.

Changes:

  • Added direct state-transition specs covering multiline instruction consumption, code fence open/close transitions, and end-state embedding rendering.
  • Added focused malformed-EOF coverage ensuring unclosed <embed-code> tags produce a typed InstructionParseError with the correct start line and reason.

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk merged commit 130ce0a into master Jul 3, 2026
4 checks passed
@Vladyslav-Kuksiuk Vladyslav-Kuksiuk deleted the add-parser-tests branch July 3, 2026 10:42
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.

Add focused parser state-transition tests

4 participants