From b446b9e596fc0487b88597d8e818dae61512f309 Mon Sep 17 00:00:00 2001 From: Rowan Goemans Date: Fri, 29 Dec 2017 00:15:59 +0100 Subject: -- Added more unit tests. -- Added support for alignas. --- src/test/MockDocument.ts | 52 ------------------------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 src/test/MockDocument.ts (limited to 'src/test/MockDocument.ts') 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 { - 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."); - } - -} -- cgit v1.2.3