test(rules-injector): align duplicate-cache mock types
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -87,10 +87,10 @@ async function createProcessor(projectRoot: string): Promise<{
|
|||||||
trackedShouldApplyRuleCount += 1;
|
trackedShouldApplyRuleCount += 1;
|
||||||
return { applies: true, reason: "matched" };
|
return { applies: true, reason: "matched" };
|
||||||
},
|
},
|
||||||
isDuplicateByRealPath: (realPath: string, cache: Set<string>) =>
|
isDuplicateByRealPath: (realPath: string, cache: ReadonlySet<string>) =>
|
||||||
cache.has(realPath),
|
cache.has(realPath),
|
||||||
createContentHash: (content: string) => `hash:${content}`,
|
createContentHash: (content: string) => `hash:${content}`,
|
||||||
isDuplicateByContentHash: (hash: string, cache: Set<string>) =>
|
isDuplicateByContentHash: (hash: string, cache: ReadonlySet<string>) =>
|
||||||
cache.has(hash),
|
cache.has(hash),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user