Skip to content

Commit

Permalink
Run cbicov with an empty codebase
Browse files Browse the repository at this point in the history
Using an empty codebase means that cbicov will only generate coverage
information for files in the specified source directory.

Pre-populating the codebase file list restricts our ability to exclude files,
because files that are explicitly listed in the codebase are assumed to have
been specified by the user.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
  • Loading branch information
Pennycook committed Jan 31, 2024
1 parent 0d04f60 commit 143c947
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/cbicov
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ if __name__ == "__main__":
# - codebase contains all files in the specified compilation database
db = config.load_database(dbpath, source_dir)
configuration = {"cli": db}
files = [e["file"] for e in db]
codebase = {
"files": files,
"files": [],
"platforms": ["cli"],
"exclude_files": [],
"rootdir": source_dir,
Expand Down

0 comments on commit 143c947

Please sign in to comment.