Skip to content

Conversation

@Zherya
Copy link

@Zherya Zherya commented Dec 9, 2021

Hello!

Here is the implementation of graph-based code coverage representation, which we proposed in #103.

With this solution, LightHouse users are able to export a graph of functions with coverage information to GraphML format, using corresponding button in Coverage Overview context menu. For more details, see updated README.md.

One specific commit that I should mention is 6ce5738.
During our tests with IDA Pro, we found out that IDA API function idautils.Functions() that is used for collecting functions metadata, returns the list of objects, where not all objects are actually functions. For example, data from a segment of externals objects might belongs to a list of functions, but these "functions" are data and cannot be covered. Such thing happens, for example, in IDA Pro for ELF binaries. Without the mentioned commit, exported GraphML file may contain extra nodes with wrong coverage and size information, so we fixed that problem in that pull request too. Moreover, the fix excludes the same unwanted data from Coverage Overview table.

P.S. Sorry for the long delay :)

Zherya added 5 commits May 28, 2023 22:31
Some functions that are "lifted" from the disassembler database during
caching of functions metadata might be external objects. And these
"functions" are data and cannot be covered. Remove them from functions
metadata database.
Feature of exporting coverage data from chosen function as GraphML file
is added to Coverage Overview context menu.

Such representation can help to find most important uncovered functions
in the code and provide a convenient way to analyze code coverage as
a system of functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant