refactor: Rename DuckDuckGo test function for consistency and improve code readability; format error handling code for better clarity

This commit is contained in:
wizardchen
2025-12-01 17:32:43 +08:00
parent b10e262ce5
commit be411affdb
2 changed files with 6 additions and 4 deletions
@@ -231,9 +231,9 @@ func TestDuckDuckGoProvider_Search_Real(t *testing.T) {
}
}
// TestDuckDuckGoProvider_Search_Real_Chinese tests the DuckDuckGo provider with Chinese query.
// TestDuckDuckGo_SearchChinese tests the DuckDuckGo provider with Chinese query.
// This verifies the Chinese language parameter (kl=cn-zh) works correctly.
func TestDuckDuckGoProvider_SearchChinese(t *testing.T) {
func TestDuckDuckGo_SearchChinese(t *testing.T) {
if testing.Short() {
t.Skip("Skipping real DuckDuckGo integration test in short mode")
}