MCPcopy Index your code
hub / github.com/actions/setup-java / createStateForSuccessfulRestore

Function createStateForSuccessfulRestore

__tests__/cache.test.ts:486–497  ·  view source on GitHub ↗

* Create states to emulate a successful restore process.

()

Source from the content-addressed store, hash-verified

484 * Create states to emulate a successful restore process.
485 */
486function createStateForSuccessfulRestore() {
487 jest.spyOn(core, 'getState').mockImplementation(name => {
488 switch (name) {
489 case 'cache-primary-key':
490 return 'setup-java-cache-primary-key';
491 case 'cache-matched-key':
492 return 'setup-java-cache-matched-key';
493 default:
494 return '';
495 }
496 });
497}
498
499function createFile(path: string) {
500 core.info(`created a file at ${path}`);

Callers 1

cache.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected