You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Java] Tool-as-lambda 4.4: Add unit tests for API behavior and validation #1842
Base branch: Create your PR targeting upstream/edburns/1810-java-tool-ergonomics-tool-as-lambda (not main).
Requirement: When you open the PR, the very first thing you put in the description must be Fixes #1842 where the issue number is this issue for which the PR aims to implement the work.
Requirement: When you open the PR, the very first thing you put in the description must be Fixes #1842 where the issue number is this issue for which the PR aims to implement the work.
Overview
Implement Phase 4.4 of #1810: add focused unit tests for lambda tool API behavior, options propagation, and validation paths.
Before coding
Do not start any implementation work until this issue is explicitly assigned to the coding agent.
Base branch for this work: edburns/1810-java-tool-ergonomics-tool-as-lambda.
Read this plan file on the branch before coding: 1810-java-tool-ergonomics-tool-as-lambda-remove-before-merge/1810-ignorance-reduction-for-implementation-plan.md
Ordering rule (important)
This issue starts only after 4.3 is merged; all Phase 4 issues are completed in listed order.
3.7: verify construction-time validation failures and message quality.
Scope / deliverables
Add deterministic tests under java/src/test/java/com/github/copilot/tool/ and/or closely-related existing test packages covering:
Successful inline definitions across supported arities.
Sync and async handlers.
Option flag propagation.
Required/default semantics.
Error/validation paths.
Gating criteria
Tests cover both success and failure paths and are deterministic.
Coverage is sufficient to protect the 4.2/4.3 contract.
Constraints
IMPORTANT: you must run mvn spotless:apply in the java directory before every commit.
Keep tests focused on API behavior and validation for lambda tools.
Avoid unrelated test churn.
Completion bookkeeping
When complete, update the checkbox for Phase 4.4 in: 1810-java-tool-ergonomics-tool-as-lambda-remove-before-merge/1810-ignorance-reduction-for-implementation-plan.md
Activity
@CopilotToolergonomics: Define tool with lambda #1810