Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Szelethus committed Oct 3, 2023
1 parent 9591ad4 commit 470aeb7
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tools/report-converter/tests/unit/analyzers/test_gcc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@ def tearDown(self):
""" Clean temporary directory. """
# shutil.rmtree(self.cc_result_dir)

def test_no_plist_file(self):
""" Test transforming single plist file. """
analyzer_output_file = os.path.join(self.test_files, 'files',
'double_free.cpp')

ret = self.analyzer_result.transform(
[analyzer_output_file], self.cc_result_dir, plist.EXTENSION,
file_name="{source_file}_{analyzer}")
self.assertFalse(ret)

def test_no_plist_dir(self):
""" Test transforming single plist file. """
analyzer_output_file = os.path.join(self.test_files, 'non_existing')

ret = self.analyzer_result.transform(
[analyzer_output_file], self.cc_result_dir, plist.EXTENSION,
file_name="{source_file}_{analyzer}")
self.assertFalse(ret)
#def test_no_plist_file(self):
# """ Test transforming single plist file. """
# analyzer_output_file = os.path.join(self.test_files, 'files',
# 'double_free.cpp')

# ret = self.analyzer_result.transform(
# [analyzer_output_file], self.cc_result_dir, plist.EXTENSION,
# file_name="{source_file}_{analyzer}")
# self.assertFalse(ret)

#def test_no_plist_dir(self):
# """ Test transforming single plist file. """
# analyzer_output_file = os.path.join(self.test_files, 'non_existing')

# ret = self.analyzer_result.transform(
# [analyzer_output_file], self.cc_result_dir, plist.EXTENSION,
# file_name="{source_file}_{analyzer}")
# self.assertFalse(ret)

def test_gcc_transform_single_file(self):
""" Test transforming single plist file. """
Expand Down

0 comments on commit 470aeb7

Please sign in to comment.