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

Function createStateForMissingBuildFile

__tests__/cache.test.ts:472–481  ·  view source on GitHub ↗

* Create states to emulate a restore process without build file.

()

Source from the content-addressed store, hash-verified

470 * Create states to emulate a restore process without build file.
471 */
472function createStateForMissingBuildFile() {
473 jest.spyOn(core, 'getState').mockImplementation(name => {
474 switch (name) {
475 case 'cache-primary-key':
476 return 'setup-java-cache-';
477 default:
478 return '';
479 }
480 });
481}
482
483/**
484 * Create states to emulate a successful restore process.

Callers 1

cache.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected