Skip to content

Commit

Permalink
Added blame info feature for "cmd results" command
Browse files Browse the repository at this point in the history
Adding test to check cmd results blmae info feature.
  • Loading branch information
cservakt committed Oct 11, 2023
1 parent 72ec363 commit 781796f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
Binary file modified web/api/js/codechecker-api-node/dist/codechecker-api-6.54.0.tgz
Binary file not shown.
Binary file modified web/api/py/codechecker_api/dist/codechecker_api.tar.gz
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions web/server/vue-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions web/tests/functional/report_viewer_api/test_get_run_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,3 +447,20 @@ def test_get_checker_labels(self):
self.assertEqual(len(checker_labels), 2)
self.assertEqual(set(checker_labels[0]), div_zero_labels)
self.assertEqual(set(checker_labels[1]), set())

def test_report_blame_info(self):
"""
Get run results and check that blame info exists
when get_details is set.
"""
runid = self._runid
simple_filter = ReportFilter()
run_results = self._cc_client.getRunResults([runid],
100,
0,
None,
simple_filter,
None,
True)

self.assertTrue(any(res.blameInfo for res in run_results))

0 comments on commit 781796f

Please sign in to comment.