summaryrefslogtreecommitdiffstats
path: root/src/test/MockLine.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/MockLine.ts')
-rw-r--r--src/test/MockLine.ts13
1 files changed, 13 insertions, 0 deletions
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;
+ }
+}