-
Notifications
You must be signed in to change notification settings - Fork 9.8k
fix: bound web search result content #14470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
8454392
5df6cce
65cbdeb
23ba428
cf37613
26bfacc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Test zero and negative limits.
The implementation clamps both limits to zero. This test only covers positive values. Add cases for
max_results=0,max_results=-1,max_content_length=0, andmax_content_length=-1. Assert that a zero result limit fetches no result pages and that a zero content limit returns empty content.As per coding guidelines, backend tests must cover positive, negative, edge, and error cases.
🤖 Prompt for AI Agents
Source: Coding guidelines