Skip to content

Commit

Permalink
test: ignore lines that act as a safeguard for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Sep 30, 2023
1 parent f866554 commit 25d8992
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/language/scoping/safe-ds-scope-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ export class SafeDsScopeProvider extends DefaultScopeProvider {
// Skip declarations in a module without a package name
const candidatePackageName = packageNameOrNull(candidateNode);
if (candidatePackageName === null) {
/* c8 ignore next */
continue;
}

Expand Down Expand Up @@ -386,6 +387,7 @@ export class SafeDsScopeProvider extends DefaultScopeProvider {

private loadAstNode(nodeDescription: AstNodeDescription): AstNode | undefined {
if (nodeDescription.node) {
/* c8 ignore next 2 */
return nodeDescription.node;
}
const document = this.documents.getOrCreateDocument(nodeDescription.documentUri);
Expand Down Expand Up @@ -419,6 +421,7 @@ class ImportedDeclarations {
*/
addIfImported(description: AstNodeDescription, node: AstNode, packageName: string): void {
if (!isSdsDeclaration(node)) {
/* c8 ignore next 2 */
return;
}

Expand Down

0 comments on commit 25d8992

Please sign in to comment.