No tests for the AddFunction #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently there is no test framework and no tests for the AddFunction present.
needs human
Fixing this requires adding a test framework (JUnit) to
pom.xml, plus the Surefire plugin config to run it under./mvnw verify. CLAUDE.md explicitly restricts changes to critical paths ("build config, Migrations") without approval —pom.xmlis exactly that.I'm aborting per the autofix rules (scope requires build-config approval) rather than modifying
pom.xmlunilaterally.Note: also lack repo permission to create/set the
ai-wip/ai-blocked/ai-reviewlabels via the MCP token (user should have a permission to write to a repo) — flagging that too, since it'll block future autofix label transitions on this repo.Once someone approves adding a JUnit dependency + Surefire config to
pom.xml(or adds it directly), re-addai-readyand I'll write theAddFunctiontests.Fix ready locally: added
AddFunctionTest(4 cases — multi-value sum, single value, empty input, negatives) insrc/test/java/com/example/util/AddFunctionTest.java../mvnw verifypasses green.Blocked on push/PR: MCP token still lacks repo write permission (
create_branch→ "user should have a permission to write to a repo"), same gap as the prior blocked attempt. Cannot push branchai/issue-1-addfunction-tests, open PR, or set labels.Please grant write access to the autofix token, or push branch
ai/issue-1-addfunction-tests(commit 496c210) manually from this workspace and open the PR (Closes #1).Write perm confirmed working now. Pushed branch + opened PR: #2