mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 05:24:34 -07:00
feat(file-search): Add support for non-recursive file search (#5648)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
@@ -26,6 +26,17 @@ describe('CrawlCache', () => {
|
||||
const key2 = getCacheKey('/foo', 'baz');
|
||||
expect(key1).not.toBe(key2);
|
||||
});
|
||||
|
||||
it('should generate a different hash for different maxDepth values', () => {
|
||||
const key1 = getCacheKey('/foo', 'bar', 1);
|
||||
const key2 = getCacheKey('/foo', 'bar', 2);
|
||||
const key3 = getCacheKey('/foo', 'bar', undefined);
|
||||
const key4 = getCacheKey('/foo', 'bar');
|
||||
expect(key1).not.toBe(key2);
|
||||
expect(key1).not.toBe(key3);
|
||||
expect(key2).not.toBe(key3);
|
||||
expect(key3).toBe(key4);
|
||||
});
|
||||
});
|
||||
|
||||
describe('in-memory cache operations', () => {
|
||||
|
||||
Reference in New Issue
Block a user