diff options
Diffstat (limited to 'src/test/MockPosition.ts')
| -rw-r--r-- | src/test/MockPosition.ts | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/test/MockPosition.ts b/src/test/MockPosition.ts new file mode 100644 index 0000000..0753670 --- /dev/null +++ b/src/test/MockPosition.ts @@ -0,0 +1,39 @@ +import * as vscode from "vscode"; + +export default class MockPosition implements vscode.Position { + public line: number; + public character: number; + public constructor(l: number, c: number) { + this.line = l; + this.character = c; + } + public isBefore(other: vscode.Position): boolean { + throw new Error("Method not implemented."); + } + public isBeforeOrEqual(other: vscode.Position): boolean { + throw new Error("Method not implemented."); + } + public isAfter(other: vscode.Position): boolean { + throw new Error("Method not implemented."); + } + public isAfterOrEqual(other: vscode.Position): boolean { + throw new Error("Method not implemented."); + } + public isEqual(other: vscode.Position): boolean { + throw new Error("Method not implemented."); + } + public compareTo(other: vscode.Position): number { + throw new Error("Method not implemented."); + } + public translate(lineDelta?: number, characterDelta?: number): vscode.Position; + public translate(change: { lineDelta?: number; characterDelta?: number; }): vscode.Position; + public translate(lineDelta?: any, characterDelta?: any): any { + throw new Error("Method not implemented."); + } + public with(line?: number, character?: number): vscode.Position; + public with(change: { line?: number; character?: number; }): vscode.Position; + public with(line?: any, character?: any): any { + throw new Error("Method not implemented."); + } + +} |