[libgit2-glib] [coverage] Ignore object api
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] [coverage] Ignore object api
- Date: Tue, 24 Jun 2014 15:48:55 +0000 (UTC)
commit e4903b8a2a913dc995888ff52928bd432ee249e6
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Tue Jun 24 17:48:34 2014 +0200
[coverage] Ignore object api
tools/coverage.py | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/tools/coverage.py b/tools/coverage.py
index d6eefde..c64b8f4 100755
--- a/tools/coverage.py
+++ b/tools/coverage.py
@@ -151,10 +151,21 @@ def scan_libgit2(cflags, git2dir):
defs = {}
+ objapi = ['lookup', 'lookup_prefix', 'free', 'id', 'owner']
+ objderiv = ['commit', 'tree', 'tag', 'blob']
+
+ ignore = set()
+
+ for deriv in objderiv:
+ for api in objapi:
+ ignore.add('git_' + deriv + '_' + api)
+
for cursor in walk_cursors(tu, headers):
if cursor.kind == cindex.CursorKind.FUNCTION_DECL:
deff = Definition(cursor)
- defs[deff.ident] = deff
+
+ if not deff.ident in ignore:
+ defs[deff.ident] = deff
return defs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]