| 10 | } |
| 11 | |
| 12 | class StateProviderBase implements IStateProvider { |
| 13 | getCacheState(): string | undefined { |
| 14 | const cacheKey = this.getState(State.CacheMatchedKey); |
| 15 | if (cacheKey) { |
| 16 | core.debug(`Cache state/key: ${cacheKey}`); |
| 17 | return cacheKey; |
| 18 | } |
| 19 | |
| 20 | return undefined; |
| 21 | } |
| 22 | |
| 23 | // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function |
| 24 | setState = (key: string, value: string) => {}; |
| 25 | |
| 26 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 27 | getState = (key: string) => ""; |
| 28 | } |
| 29 | |
| 30 | export class StateProvider extends StateProviderBase { |
| 31 | setState = core.saveState; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…