Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/test_ctags.py
# Copyright (C) 2017-2018 The Software Heritage developers | # Copyright (C) 2017-2018 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import json | import json | ||||
import unittest | import unittest | ||||
from unittest.mock import patch | from unittest.mock import patch | ||||
import swh.indexer.ctags | import swh.indexer.ctags | ||||
from swh.indexer.ctags import ( | from swh.indexer.ctags import ( | ||||
CtagsIndexer, run_ctags | CtagsIndexer, run_ctags | ||||
) | ) | ||||
from swh.indexer.tests.test_utils import ( | from swh.indexer.tests.utils import ( | ||||
CommonContentIndexerTest, | CommonContentIndexerTest, | ||||
CommonIndexerWithErrorsTest, CommonIndexerNoTool, | CommonIndexerWithErrorsTest, CommonIndexerNoTool, | ||||
SHA1_TO_CTAGS, NoDiskIndexer, BASE_TEST_CONFIG, | SHA1_TO_CTAGS, NoDiskIndexer, BASE_TEST_CONFIG, | ||||
OBJ_STORAGE_DATA, fill_storage, fill_obj_storage | OBJ_STORAGE_DATA, fill_storage, fill_obj_storage | ||||
) | ) | ||||
class BasicTest(unittest.TestCase): | class BasicTest(unittest.TestCase): | ||||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |