|
Asper Header
1.0.14
The header injector extension
|
Mock implementation of VS Code TextEditor for testing text editing operations. More...


Public Member Functions | |
| constructor (document:MockTextDocument) | |
| Creates a new mock text editor for the specified document. | |
Data Fields | |
| document | : vscode.TextDocument |
| Associated document containing the text content. | |
Mock implementation of VS Code TextEditor for testing text editing operations.
Provides a simplified mock of the VS Code TextEditor interface, focusing on document editing capabilities required for header generation testing. Captures edit operations for verification without performing actual text modifications.
Key Capabilities:
Definition at line 284 of file commentGenerator.test.ts.
|
inline |
Creates a new mock text editor for the specified document.
| document | MockTextDocument to associate with this editor |
Initializes the editor with a document reference, enabling testing of text editing operations without actual VS Code editor instances.
Definition at line 295 of file commentGenerator.test.ts.
| document MockTextEditor::__pad0__ |
Associated document containing the text content.
Definition at line 286 of file commentGenerator.test.ts.