|
Asper Header
1.0.14
The header injector extension
|
Comprehensive unit tests for the Logger dual-channel logging system. More...
Go to the source code of this file.
Data Structures | |
| class | MockOutputChannelImpl |
| Mock implementation for testing output channel behavior. More... | |
Variables | |
| import *as assert from | assert |
| import *as vscode from | vscode |
| import { logger, LogType } from '../modules/logger' | |
| appendLine | __pad0__ |
| Appends a line of text to the output channel. | |
| show | __pad1__ |
| Shows the output channel in VS Code UI. | |
| hide | __pad2__ |
| Hides the output channel from VS Code UI. | |
| clear | __pad3__ |
| Clears all content from the output channel. | |
| dispose | __pad4__ |
| Disposes of the output channel resources. | |
| replace | __pad5__ |
| Replaces entire channel content with new value. | |
| append | __pad6__ |
| _lines | __pad7__ |
| _isVisible | __pad8__ |
| workspaceState | __pad9__ |
| globalState | __pad10__ |
| extensionPath | __pad11__ |
| storagePath | __pad12__ |
| globalStoragePath | __pad13__ |
| logPath | __pad14__ |
| extensionUri | __pad15__ |
| environmentVariableCollection | __pad16__ |
| asAbsolutePath(relativePath:string) | storageUri |
| globalStorageUri | __pad17__ |
| logUri | __pad18__ |
| extensionMode | __pad19__ |
| extension | __pad20__ |
| secrets | __pad21__ |
| languageModelAccessInformation | __pad22__ |
Comprehensive unit tests for the Logger dual-channel logging system.
This test suite provides extensive coverage for the Logger module, which implements a sophisticated logging infrastructure for VS Code extensions with dual-channel output, automatic caller identification, and environment-aware behavior.
Test Coverage Areas:
Testing Strategy:
Definition in file logger.test.ts.
| appendLine __pad0__ |
Appends a line of text to the output channel.
Definition at line 53 of file logger.test.ts.
| globalState __pad10__ |
Definition at line 190 of file logger.test.ts.
| extensionPath __pad11__ |
Definition at line 191 of file logger.test.ts.
| storagePath __pad12__ |
Definition at line 192 of file logger.test.ts.
| globalStoragePath __pad13__ |
Definition at line 193 of file logger.test.ts.
| logPath __pad14__ |
Definition at line 194 of file logger.test.ts.
| extensionUri __pad15__ |
Definition at line 195 of file logger.test.ts.
| environmentVariableCollection __pad16__ |
Definition at line 196 of file logger.test.ts.
| globalStorageUri __pad17__ |
Definition at line 199 of file logger.test.ts.
| logUri __pad18__ |
Definition at line 200 of file logger.test.ts.
| extensionMode __pad19__ |
Definition at line 201 of file logger.test.ts.
| show __pad1__ |
Shows the output channel in VS Code UI.
Definition at line 55 of file logger.test.ts.
| extension __pad20__ |
Definition at line 202 of file logger.test.ts.
| secrets __pad21__ |
Definition at line 203 of file logger.test.ts.
| languageModelAccessInformation __pad22__ |
Definition at line 204 of file logger.test.ts.
| hide __pad2__ |
Hides the output channel from VS Code UI.
Definition at line 57 of file logger.test.ts.
| clear __pad3__ |
Clears all content from the output channel.
Definition at line 59 of file logger.test.ts.
| dispose __pad4__ |
Disposes of the output channel resources.
Definition at line 61 of file logger.test.ts.
| replace __pad5__ |
Replaces entire channel content with new value.
Definition at line 63 of file logger.test.ts.
| append __pad6__ |
Definition at line 64 of file logger.test.ts.
| _lines __pad7__ |
Definition at line 67 of file logger.test.ts.
| _isVisible __pad8__ |
Definition at line 68 of file logger.test.ts.
| workspaceState __pad9__ |
Definition at line 189 of file logger.test.ts.
| import* as assert from assert |
Definition at line 36 of file logger.test.ts.
Definition at line 38 of file logger.test.ts.
| asAbsolutePath (relativePath: string) storageUri |
Definition at line 198 of file logger.test.ts.
| import* as vscode from vscode |
Definition at line 37 of file logger.test.ts.