diff options
| author | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-12-29 00:15:59 +0100 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2018-02-20 22:02:22 +0100 |
| commit | b446b9e596fc0487b88597d8e818dae61512f309 (patch) | |
| tree | c7ac9e158964dd88d4cc1839f5ed0da8acce3369 /src/test/tools/MockPosition.ts | |
| parent | 5b0912d99732536ae18d3c70730cc6df2ed3af24 (diff) | |
| download | doxdocgen-b446b9e596fc0487b88597d8e818dae61512f309.tar.gz | |
-- Added more unit tests.
-- Added support for alignas.
Diffstat (limited to 'src/test/tools/MockPosition.ts')
| -rw-r--r-- | src/test/tools/MockPosition.ts | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/test/tools/MockPosition.ts b/src/test/tools/MockPosition.ts new file mode 100644 index 0000000..0753670 --- /dev/null +++ b/src/test/tools/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."); + } + +} |