Skip to content

Fix FunctionTool test expectation for nil return value - #4

Draft
google-labs-jules[bot] wants to merge 1 commit into
mainfrom
fix-functiontool-test-expectation
Draft

google-labs-jules[bot] wants to merge 1 commit into
mainfrom
fix-functiontool-test-expectation

Conversation

@google-labs-jules

Copy link
Copy Markdown

Updated TestFunctionTool_CustomSchema in tool/functiontool/function_test.go to explicitly check for nil return values (both result and error) in the valid_item test case. Removed the stale TODO comment and the conditional logic that was previously accepting non-nil (empty map) results. Verified that the test passes with these stricter assertions.


PR created automatically by Jules for task 11263610287124759193 started by @sheing-google

The test previously contained a TODO stating that the return value was an empty map instead of nil, and had loose checks that allowed this behavior. Investigation and testing confirmed that the current implementation correctly returns nil. This commit updates the test to strictly assert nil for both result and error in the valid case, removing the stale TODO and workaround.
@google-labs-jules

Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

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.

0 participants