MCPcopy Index your code
hub / github.com/microsoft/vscode / MockLogOutputChannel

Class MockLogOutputChannel

extensions/git/src/test/repositoryCache.test.ts:41–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41class 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
59class TestRepositoryCache extends RepositoryCache {
60 constructor(memento: Memento, logger: LogOutputChannel, private readonly _workspaceFileProp: Uri | undefined, private readonly _workspaceFoldersProp: readonly WorkspaceFolder[] | undefined) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…