From 86595e38975f902d061df4a1e60783bfb725ad2f Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Fri, 8 Dec 2017 17:22:57 +0100 Subject: Add basic tests --- src/test/MockLine.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/MockLine.ts (limited to 'src/test/MockLine.ts') diff --git a/src/test/MockLine.ts b/src/test/MockLine.ts new file mode 100644 index 0000000..7196a38 --- /dev/null +++ b/src/test/MockLine.ts @@ -0,0 +1,13 @@ +import * as vscode from "vscode"; + +export default class MockLine implements vscode.TextLine { + public lineNumber: number; + public text: string; + public range: vscode.Range; + public rangeIncludingLineBreak: vscode.Range; + public firstNonWhitespaceCharacterIndex: number; + public isEmptyOrWhitespace: boolean; + public constructor(text: string) { + this.text = text; + } +} -- cgit v1.2.3