Add overlay-base database cache key tests

This commit is contained in:
Chuan-kai Lin
2025-09-24 11:43:34 -07:00
committed by Kasper Svendsen
parent 0c5185d061
commit c4b73722ba
2 changed files with 41 additions and 2 deletions

View File

@@ -448,7 +448,7 @@ export async function downloadOverlayBaseDatabaseFromCache(
* The key consists of the restore key prefix (which does not include the
* commit SHA) and the commit SHA of the current checkout.
*/
async function getCacheSaveKey(
export async function getCacheSaveKey(
config: Config,
codeQlVersion: string,
checkoutPath: string,
@@ -475,7 +475,7 @@ async function getCacheSaveKey(
* not include the commit SHA. This allows us to restore the most recent
* compatible overlay-base database.
*/
async function getCacheRestoreKeyPrefix(
export async function getCacheRestoreKeyPrefix(
config: Config,
codeQlVersion: string,
): Promise<string> {