File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 1- import os
21from pathlib import Path
3- import subprocess
42from ...entities import *
53from typing import Optional
64from ..analyzer import AbstractAnalyzer
Original file line number Diff line number Diff line change 1- import os
21import unittest
32from pathlib import Path
43
54from api import SourceAnalyzer , Graph
65
76class Test_Kotlin_Analyzer (unittest .TestCase ):
87 def test_analyzer (self ):
9- path = Path (__file__ ).parent
108 analyzer = SourceAnalyzer ()
119
12- # Get the current file path
13- current_file_path = os .path .abspath (__file__ )
14-
15- # Get the directory of the current file
16- current_dir = os .path .dirname (current_file_path )
17-
18- # Append 'source_files/kotlin' to the current directory
19- path = os .path .join (current_dir , 'source_files' )
20- path = os .path .join (path , 'kotlin' )
21- path = str (path )
10+ # Get the path to the test Kotlin source files
11+ path = str (Path (__file__ ).parent / 'source_files' / 'kotlin' )
2212
2313 g = Graph ("kotlin" )
2414 analyzer .analyze_local_folder (path , g )
You can’t perform that action at this time.
0 commit comments