Skip to content

test(agent-core): add edge case unit tests for parseExecInput - #739

Open
forumevi wants to merge 1 commit into
sapiom:mainfrom
forumevi:patch-1
Open

test(agent-core): add edge case unit tests for parseExecInput#739
forumevi wants to merge 1 commit into
sapiom:mainfrom
forumevi:patch-1

Conversation

@forumevi

Copy link
Copy Markdown

Summary

Adds edge-case unit test coverage for parseExecInput in client.test.ts.

Changes Included

  • Added test coverage verifying that empty strings and empty JSON objects are handled as expected by parseExecInput.
  • Added test cases covering invalid non-string and non-object inputs (e.g., JSON primitives like numbers and booleans).

Motivation

Ensures input parsing handles non-standard and boundary JSON values cleanly without unexpected runtime exceptions across agent workflows.

@github-actions github-actions Bot added contribution: incomplete Required pull request information is incomplete or ambiguous contributor: external Pull request author does not have write, maintain, or admin access to sapiom-js needs-triage Awaiting maintainer review and classification review: manual External pull request requires maintainer review before automation size: small Review size is at most 100 changed lines area: agents Changes to agent authoring, core, or runtime labels Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: agents Changes to agent authoring, core, or runtime contribution: incomplete Required pull request information is incomplete or ambiguous contributor: external Pull request author does not have write, maintain, or admin access to sapiom-js needs-triage Awaiting maintainer review and classification review: manual External pull request requires maintainer review before automation size: small Review size is at most 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant