X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/1a00f59083722d4d0e273339b1f4dc28a0fb2fa3..e81e4e8d1c49737e12e3ca5dba36fd1453f447bb:/scripts/format-gcov-report
diff --git a/scripts/format-gcov-report b/scripts/format-gcov-report
index f445329..93ace17 100755
--- a/scripts/format-gcov-report
+++ b/scripts/format-gcov-report
@@ -3,20 +3,18 @@
# This file is part of DisOrder.
# Copyright (C) 2007 Richard Kettlewell
#
-# This program is free software; you can redistribute it and/or modify
+# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
+# along with this program. If not, see
File | Coverage |
---|
File | Coverage | ||
---|---|---|---|
%s | %d%%\n" % - (sgmlquote(k), sgmlquote(k), percent[k])) + index.write(" | ||
%s\n" % sgmlquote(k)) + else: + index.write(" | %s\n" % + (sgmlquote(k), sgmlquote(k))) + index.write(" | %d%%\n" % percent[k]) + index.write(" | \n" + % int(percent[k])) index.write(" |
Total coverage: %d%%
\n" % (100 * (covered_lines / total_lines))) for k in keys: + if k in missing: + continue html = open(os.path.join(htmldir, "%s.html" % k), "w") html.write("