| 39 | } |
| 40 | |
| 41 | class MockLogOutputChannel implements LogOutputChannel { |
| 42 | logLevel: LogLevel = LogLevel.Info; |
| 43 | onDidChangeLogLevel: Event<LogLevel> = new EventEmitter<LogLevel>().event; |
| 44 | trace(_message: string, ..._args: any[]): void { } |
| 45 | debug(_message: string, ..._args: any[]): void { } |
| 46 | info(_message: string, ..._args: any[]): void { } |
| 47 | warn(_message: string, ..._args: any[]): void { } |
| 48 | error(_error: string | Error, ..._args: any[]): void { } |
| 49 | name: string = 'MockLogOutputChannel'; |
| 50 | append(_value: string): void { } |
| 51 | appendLine(_value: string): void { } |
| 52 | replace(_value: string): void { } |
| 53 | clear(): void { } |
| 54 | show(_column?: unknown, _preserveFocus?: unknown): void { } |
| 55 | hide(): void { } |
| 56 | dispose(): void { } |
| 57 | } |
| 58 | |
| 59 | class TestRepositoryCache extends RepositoryCache { |
| 60 | constructor(memento: Memento, logger: LogOutputChannel, private readonly _workspaceFileProp: Uri | undefined, private readonly _workspaceFoldersProp: readonly WorkspaceFolder[] | undefined) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…