Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > pylint > testutils
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
_primer | Directory | - | - | |
functional | Directory | - | - | |
__init__.py | File | 1309 bytes | April 17 2025 13:10:59. | |
_run.py | File | 1549 bytes | April 17 2025 13:10:59. | |
checker_test_case.py | File | 4377 bytes | April 17 2025 13:10:59. | |
configuration_test.py | File | 6036 bytes | April 17 2025 13:10:59. | |
constants.py | File | 1145 bytes | April 17 2025 13:10:59. | |
decorator.py | File | 1252 bytes | April 17 2025 13:10:59. | |
functional_test_file.py | File | 635 bytes | April 17 2025 13:10:59. | |
get_test_info.py | File | 2127 bytes | April 17 2025 13:10:59. | |
global_test_linter.py | File | 685 bytes | April 17 2025 13:10:59. | |
lint_module_test.py | File | 12801 bytes | April 17 2025 13:10:59. | |
output_line.py | File | 5897 bytes | April 17 2025 13:10:59. | |
pyreverse.py | File | 4194 bytes | April 17 2025 13:10:59. | |
reporter_for_tests.py | File | 2306 bytes | April 17 2025 13:10:59. | |
testing_pylintrc | File | 198 bytes | April 17 2025 13:10:59. | |
tokenize_str.py | File | 447 bytes | April 17 2025 13:10:59. | |
unittest_linter.py | File | 2795 bytes | April 17 2025 13:10:59. | |
utils.py | File | 3133 bytes | April 17 2025 13:10:59. |
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt # pylint: disable=duplicate-code from __future__ import annotations import sys from typing import Any from astroid import nodes from pylint.interfaces import UNDEFINED, Confidence from pylint.lint import PyLinter from pylint.testutils.output_line import MessageTest if sys.version_info >= (3, 8): from typing import Literal else: from typing_extensions import Literal class UnittestLinter(PyLinter): """A fake linter class to capture checker messages.""" def __init__(self) -> None: self._messages: list[MessageTest] = [] super().__init__() def release_messages(self) -> list[MessageTest]: try: return self._messages finally: self._messages = [] def add_message( self, msgid: str, line: int | None = None, # TODO: Make node non optional node: nodes.NodeNG | None = None, args: Any = None, confidence: Confidence | None = None, col_offset: int | None = None, end_lineno: int | None = None, end_col_offset: int | None = None, ) -> None: """Add a MessageTest to the _messages attribute of the linter class.""" # If confidence is None we set it to UNDEFINED as well in PyLinter if confidence is None: confidence = UNDEFINED # Look up "location" data of node if not yet supplied if node: if node.position: if not line: line = node.position.lineno if not col_offset: col_offset = node.position.col_offset if not end_lineno: end_lineno = node.position.end_lineno if not end_col_offset: end_col_offset = node.position.end_col_offset else: if not line: line = node.fromlineno if not col_offset: col_offset = node.col_offset if not end_lineno: end_lineno = node.end_lineno if not end_col_offset: end_col_offset = node.end_col_offset self._messages.append( MessageTest( msgid, line, node, args, confidence, col_offset, end_lineno, end_col_offset, ) ) @staticmethod def is_message_enabled(*unused_args: Any, **unused_kwargs: Any) -> Literal[True]: return True
SILENT KILLER Tool