summaryrefslogtreecommitdiffstats
path: root/src/test/MockDocument.ts
diff options
context:
space:
mode:
authorRowan Goemans <RB.Goemans@student.han.nl>2017-12-29 00:15:59 +0100
committerChristoph Schlosser <christophschlosser@users.noreply.github.com>2018-02-20 22:02:22 +0100
commitb446b9e596fc0487b88597d8e818dae61512f309 (patch)
treec7ac9e158964dd88d4cc1839f5ed0da8acce3369 /src/test/MockDocument.ts
parent5b0912d99732536ae18d3c70730cc6df2ed3af24 (diff)
downloaddoxdocgen-b446b9e596fc0487b88597d8e818dae61512f309.tar.gz
-- Added more unit tests.
-- Added support for alignas.
Diffstat (limited to 'src/test/MockDocument.ts')
-rw-r--r--src/test/MockDocument.ts52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/test/MockDocument.ts b/src/test/MockDocument.ts
deleted file mode 100644
index cb6bbfe..0000000
--- a/src/test/MockDocument.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import * as vscode from "vscode";
-import MockLine from "./MockLine";
-
-export default class MockDocument implements vscode.TextDocument {
- public uri: vscode.Uri;
- public fileName: string;
- public isUntitled: boolean;
- public languageId: string;
- public version: number;
- public isDirty: boolean;
- public isClosed: boolean;
- public eol: vscode.EndOfLine;
- public lineCount: number;
- private line: vscode.TextLine;
- private callCount: number;
- public constructor(line: vscode.TextLine) {
- this.line = line;
- this.callCount = 0;
- }
- public save(): Thenable<boolean> {
- throw new Error("Method not implemented.");
- }
- public lineAt(line: number | vscode.Position): vscode.TextLine;
- public lineAt(position: any): any {
- if (++this.callCount === 1) {
- return new MockLine("");
- } else if (this.callCount === 2) {
- return this.line;
- } else {
- return new MockLine(";");
- }
- }
- public offsetAt(position: vscode.Position): number {
- throw new Error("Method not implemented.");
- }
- public positionAt(offset: number): vscode.Position {
- throw new Error("Method not implemented.");
- }
- public getText(range?: vscode.Range): string {
- throw new Error("Method not implemented.");
- }
- public getWordRangeAtPosition(position: vscode.Position, regex?: RegExp): vscode.Range {
- throw new Error("Method not implemented.");
- }
- public validateRange(range: vscode.Range): vscode.Range {
- throw new Error("Method not implemented.");
- }
- public validatePosition(position: vscode.Position): vscode.Position {
- throw new Error("Method not implemented.");
- }
-
-}