def setUp(self): self.ext = FanInOut() self.lizard_object = FileAnalyzer(get_extensions( ["io", "ns", "nd"])).analyze_source_code("a.cpp", """int foo(){ bar(); if(a){ b; } } int bar(){foo();};""")
def get_cpp_function_list_with_extnesion(source_code, extension): return FileAnalyzer(get_extensions([extension])).analyze_source_code( "a.cpp", source_code).function_list
def get_cpp_fileinfo_with_extension(source_code, extension): return FileAnalyzer(get_extensions([extension])).analyze_source_code( "a.cpp", source_code)
def get_python_function_list_with_extension(source_code, extension): return FileAnalyzer(get_extensions([extension])).analyze_source_code( "a.py", source_code).function_list
def process(ext, code): result = FileAnalyzer(get_extensions([ext])).analyze_source_code( "a.cpp", code) list(ext.cross_file_process([result])) return result
def process(ext, code): result = FileAnalyzer(get_extensions([ext])).analyze_source_code( "a.cpp", code) ext.reduce(result) return result
def setUp(self): self.analyzer = FileAnalyzer()