1
- from typing import List , Tuple
2
-
3
- import pytest
4
-
5
1
from cldk import CLDK
2
+ from typing import List , Tuple
6
3
from cldk .analysis import AnalysisLevel
7
4
from cldk .models .java .models import JMethodDetail
8
- import toml
9
- import shutil
10
- import pytest
11
- import zipfile
12
- from pathlib import Path
13
- from urllib .request import urlretrieve
14
5
15
6
16
- # @pytest.mark.parametrize("test_fixture", ["daytrader"], indirect=["test_fixture"])
17
7
def test_get_class_call_graph (test_fixture , codeanalyzer_jar_path ):
18
8
# Initialize the CLDK object with the project directory, language, and analysis_backend.
19
9
cldk = CLDK (language = "java" )
@@ -29,22 +19,3 @@ def test_get_class_call_graph(test_fixture, codeanalyzer_jar_path):
29
19
qualified_class_name = "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils"
30
20
)
31
21
assert class_call_graph is not None
32
-
33
-
34
- # @pytest.mark.parametrize("test_fixture", ["CLI"], indirect=["test_fixture"])
35
- # def test_get_class_call_graph_using_symbol_table(test_fixture):
36
- # # Initialize the CLDK object with the project directory, language, and analysis_backend.
37
- # cldk = CLDK(language="java")
38
-
39
- # analysis = cldk.analysis(
40
- # project_path=test_fixture,
41
- # analysis_backend="codeanalyzer",
42
- # analysis_json_path="../../../tests/resources/java/analysis_db",
43
- # eager=False,
44
- # analysis_level=AnalysisLevel.symbol_table,
45
- # )
46
- # class_call_graph: List[Tuple[JMethodDetail, JMethodDetail]] = analysis.get_class_call_graph(
47
- # qualified_class_name="org.apache.commons.cli.DefaultParser", method_signature="handleConcatenatedOptions(String)", using_symbol_table=True
48
- # )
49
-
50
- # assert class_call_graph is not None
0 commit comments