Skip to content

Commit 67d0ff0

Browse files
committed
ci(coverage): disable coverage for non-tested code
1 parent efe96a1 commit 67d0ff0

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/features/document-symbol-provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* c8 ignore start */
12
import { CancellationToken, TextDocument, TextLine, SymbolInformation } from 'vscode';
23

34
import * as vscode from 'vscode';
@@ -112,3 +113,4 @@ export class FortranDocumentSymbolProvider implements vscode.DocumentSymbolProvi
112113
return symbolTypes;
113114
}
114115
}
116+
/* c8 ignore stop */

src/lib/functions.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
/* c8 ignore start */
12
import * as vscode from 'vscode';
2-
import { TextLine } from 'vscode';
33

44
export interface Tag {
55
name: string;
@@ -63,10 +63,10 @@ export const parseFunction = (line: vscode.TextLine) => {
6363
return _parse(line, MethodType.FortranFunction);
6464
};
6565

66-
export const parseSubroutine = (line: TextLine) => {
66+
export const parseSubroutine = (line: vscode.TextLine) => {
6767
return _parse(line, MethodType.Subroutine);
6868
};
69-
export const _parse = (line: TextLine, type: MethodType) => {
69+
export const _parse = (line: vscode.TextLine, type: MethodType) => {
7070
const functionRegEx =
7171
/(?<=([a-zA-Z]+(\([\w.=]+\))*)*)\s*\bfunction\b\s*([a-zA-Z_][a-z0-9_]*)\s*\((\s*[a-z_][a-z0-9_,\s]*)*\s*(?:\)|&)\s*(result\([a-z_][\w]*(?:\)|&))*/i;
7272
const subroutineRegEx =
@@ -109,3 +109,4 @@ export const parseArgs = (argsstr: string) => {
109109
export const validVariableName = (name: string) => {
110110
return name.trim().match(/^[a-zA-Z_][a-zA-Z0-9_]*$/) !== null;
111111
};
112+
/* c8 ignore stop */

src/lib/variables.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
/* c8 ignore start */
12
import * as vscode from 'vscode';
23
import { Variable } from './functions';
3-
import { TextLine } from 'vscode';
44

55
const varibleDecRegEx =
66
/([a-zA-Z]{1,}(\([a-zA-Z0-9]{1,}\))?)(\s*,\s*[a-zA-Z()])*\s*::\s*([a-zA-Z_][a-zA-Z0-9_]*)/g;
@@ -20,9 +20,10 @@ export function getDeclaredVars(document: vscode.TextDocument): Variable[] {
2020
return vars;
2121
}
2222

23-
export const parseVars = (line: TextLine) => {
23+
export const parseVars = (line: vscode.TextLine) => {
2424
if (line.text.match(varibleDecRegEx)) {
2525
const [matchExp, type, kind, props, name] = varibleDecRegEx.exec(line.text);
2626
return { name: name, type: type };
2727
}
2828
};
29+
/* c8 ignore stop */

0 commit comments

Comments
 (0)