aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-12-05 17:30:59 +0100
committerSonarTech <sonartech@sonarsource.com>2018-12-07 20:21:04 +0100
commit6c670cd326f0e1d853cdf3790b746f5b836c12ea (patch)
treee9e6eb8df93b0128373497db60c86a49ed9b80ac /server/sonar-web/src/main/js/api
parentf316b94c37e917de6f94062967c540adfd87c886 (diff)
downloadsonarqube-6c670cd326f0e1d853cdf3790b746f5b836c12ea.tar.gz
sonarqube-6c670cd326f0e1d853cdf3790b746f5b836c12ea.zip
SONAR-11489 drop listing of files covered by a tests
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r--server/sonar-web/src/main/js/api/tests.ts38
1 files changed, 0 insertions, 38 deletions
diff --git a/server/sonar-web/src/main/js/api/tests.ts b/server/sonar-web/src/main/js/api/tests.ts
deleted file mode 100644
index 7dbb75c19af..00000000000
--- a/server/sonar-web/src/main/js/api/tests.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2018 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import throwGlobalError from '../app/utils/throwGlobalError';
-import { getJSON } from '../helpers/request';
-
-export function getTests(
- parameters: {
- p?: number;
- ps?: number;
- sourceFileKey?: string;
- sourceFileLineNumber?: number;
- testFileKey: string;
- testId?: string;
- } & T.BranchParameters
-): Promise<{ paging: T.Paging; tests: T.TestCase[] }> {
- return getJSON('/api/tests/list', parameters).catch(throwGlobalError);
-}
-
-export function getCoveredFiles(data: { testId: string }): Promise<T.CoveredFile[]> {
- return getJSON('/api/tests/covered_files', data).then(r => r.files, throwGlobalError);
-}