qwen-code/packages/server/src/utils
Taylor Mullen 3281cbc835 Fix(test): Improve write-file and editCorrector test suites
- Enhanced  by:
  - Mocking  and  utilities (, ) to allow for more focused unit testing of .
  - Adding comprehensive tests for the private  method, covering new and existing file scenarios, as well as error handling.
  - Expanding tests for  and  to verify behavior with the new content correction logic, including diff generation and directory creation.
- Refined  by:
  - Introducing robust mocking for  and its methods (, , ) to simulate LLM interactions accurately.
  - Adding extensive test scenarios for , categorized by how  matches and how  is processed, including direct matches, unescaping, and LLM-based corrections.
  - Including tests for edge cases like no matches or multiple matches.
  - Adding a  utility for better test isolation.

Final fix for https://github.com/google-gemini/gemini-cli/issues/484
2025-05-25 15:02:08 -07:00
..
editCorrector.test.ts Fix(test): Improve write-file and editCorrector test suites 2025-05-25 15:02:08 -07:00
editCorrector.ts Fix(write-file): Correct over-escaping and improve content generation 2025-05-25 14:45:47 -07:00
errorReporting.test.ts Log server information on error. 2025-05-10 14:18:23 -07:00
errorReporting.ts Log server information on error. 2025-05-10 14:18:23 -07:00
errors.ts Cleanup low value comments. (#248) 2025-05-02 14:39:39 -07:00
generateContentResponseUtilities.ts
getFolderStructure.test.ts Fix: Prevent hang in large directories by using BFS for getFolderStru… (#470) 2025-05-22 10:47:21 -07:00
getFolderStructure.ts Fix: Prevent hang in large directories by using BFS for getFolderStru… (#470) 2025-05-22 10:47:21 -07:00
LruCache.ts Ensure edit correction isn't re-done after confirm. 2025-05-25 14:24:09 -07:00
memoryDiscovery.test.ts infra: emit errors on no-explicit-any eslint rule (#516) 2025-05-23 22:35:50 +00:00
memoryDiscovery.ts Refactor(server): Centralize GEMINI.md discovery logic in server (#498) 2025-05-23 08:53:22 -07:00
nextSpeakerChecker.test.ts Don't prematurely end convo w/ Gemini. 2025-05-10 14:05:58 -07:00
nextSpeakerChecker.ts fix: forward entire tool call confirmation object through useToolScheduler (#481) 2025-05-22 06:00:36 +00:00
paths.ts ui tweaks (#442) 2025-05-19 16:58:57 -07:00
schemaValidator.ts Cleanup low value comments. (#248) 2025-05-02 14:39:39 -07:00