TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Measuring C API Coverage with Go

41 pointsby dradtkeover 11 years ago

2 comments

jessevdkover 11 years ago
Shameless plug (but possibly interesting), we do something similar (but using clang) to generate a coverage report for the gobject bindings for libgit2: <a href="https://git.gnome.org/browse/libgit2-glib/tree/tools/coverage.py" rel="nofollow">https:&#x2F;&#x2F;git.gnome.org&#x2F;browse&#x2F;libgit2-glib&#x2F;tree&#x2F;tools&#x2F;coverag...</a>
评论 #6848470 未加载
unfamiliarover 11 years ago
To make this applicable to other APIs, wouldn&#x27;t it be better to use the Clang API to parse the C&#x2F;C++ code and get a list of functions? Writing your own parser seems prone to failure given the difficulty of C&#x2F;C++ parsing.
评论 #6848698 未加载
评论 #6848238 未加载