Skip to content

Commit 0885ef1

Browse files
committed
exclude from coverage
1 parent ff473f7 commit 0885ef1

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ sonar.test.inclusions=test/**/*.ts
77
sonar.test.exclusions=**/*.js,**/node_modules/**
88
sonar.javascript.lcov.reportPaths=lcov.info
99
sonar.typescript.lcov.reportPaths=lcov.info
10-
sonar.coverage.exclusions=server/src/utils/parserUtils.ts,src/ipc/**,src/models/**,src/extension.ts,src/classes/**,src/commands/installTools.ts,src/utils/cpUtils.ts,test/**,**/*.test.ts,**/*.spec.ts
10+
sonar.coverage.exclusions=server/src/utils/parserUtils.ts,src/ipc/**,src/models/**,src/extension.ts,src/classes/**,src/commands/installTools.ts,src/utils/cpUtils.ts,test/**,**/*.test.ts,**/*.spec.ts,src/commands/serverCommand.ts
1111
sonar.cpd.exclusions=src/services/completionProvider.ts,src/extension.ts
1212
sonar.sourceEncoding=UTF-8

src/commands/serverCommand.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ export async function addInsightsConnection(
190190
}
191191

192192
/* c8 ignore next */
193-
/* istanbul ignore next */
194193
export async function editInsightsConnection(
195194
insightsData: InsightDetails,
196195
oldAlias: string,
@@ -298,7 +297,6 @@ export async function editInsightsConnection(
298297

299298
// Not possible to test secrets
300299
/* c8 ignore next */
301-
/* istanbul ignore next */
302300
export async function addAuthConnection(
303301
serverKey: string,
304302
username: string,
@@ -330,7 +328,6 @@ export async function addAuthConnection(
330328

331329
// Not possible to test secrets
332330
/* c8 ignore next */
333-
/* istanbul ignore next */
334331
function removeAuthConnection(serverKey: string) {
335332
if (
336333
Object.prototype.hasOwnProperty.call(
@@ -346,7 +343,6 @@ function removeAuthConnection(serverKey: string) {
346343

347344
// Not possible to test secrets
348345
/* c8 ignore next */
349-
/* istanbul ignore next */
350346
export function updateAuthDataKey(oldServerKey: string, newServerKey: string) {
351347
const storeAuthData = ext.secretSettings.storeAuthData as {
352348
[key: string]: any;
@@ -369,7 +365,6 @@ export function updateAuthDataKey(oldServerKey: string, newServerKey: string) {
369365

370366
// Not possible to test secrets
371367
/* c8 ignore next */
372-
/* istanbul ignore next */
373368
export function handleEditAuthData(
374369
oldServerKey: string,
375370
newServerKey: string,
@@ -512,7 +507,6 @@ export async function addKdbConnection(
512507
}
513508

514509
/* c8 ignore next */
515-
/* istanbul ignore next */
516510
export async function editKdbConnection(
517511
kdbData: ServerDetails,
518512
oldAlias: string,
@@ -652,7 +646,6 @@ export async function editKdbConnection(
652646

653647
// test fs readFileSync unit tests are flaky, no correct way to test them
654648
/* c8 ignore next */
655-
/* istanbul ignore next */
656649
export async function importConnections() {
657650
const options = {
658651
canSelectMany: false,
@@ -964,7 +957,6 @@ export async function executeQuery(
964957
const duration = (endTime - startTime).toString();
965958

966959
/* c8 ignore next */
967-
/* istanbul ignore next */
968960
if (token?.isCancellationRequested) {
969961
return undefined;
970962
}
@@ -988,7 +980,6 @@ export async function executeQuery(
988980
return results;
989981
} else {
990982
/* c8 ignore next */
991-
/* istanbul ignore next */
992983
if (ext.isResultsTabVisible) {
993984
const data = resultToBase64(results);
994985
if (data) {

0 commit comments

Comments
 (0)