Sfoglia il codice sorgente

Clover hacks to ignore private constructors

Change-Id: Ib4b41d02185ca1baad87adce0d2b6fcf3e7f66a3
Reviewed-on: http://gerrit.dmdirc.com/463
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
Tested-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.3b1
Chris Smith 14 anni fa
parent
commit
ecc06cde60
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5
    2
      build-tests.xml

+ 5
- 2
build-tests.xml Vedi File

@@ -18,6 +18,7 @@
18 18
                 <include name="**/*.java" />
19 19
                 <exclude name="**/harness/**/*.java" />
20 20
             </fileset>
21
+            <methodContext name="private ctor" regexp="(.* )?private +[a-zA-Z0-9_$]+ *\( *\).*"/>
21 22
         </clover-setup>
22 23
     </target>
23 24
 
@@ -29,7 +30,9 @@
29 30
             description="Generate a Clover XML report.">
30 31
         <mkdir dir="reports/clover" />
31 32
         <clover-report>
32
-            <current outfile="reports/clover/clover.xml"/>
33
+            <current outfile="reports/clover/clover.xml">
34
+                <format type="xml" filter="private ctor"/>
35
+            </current>
33 36
         </clover-report>
34 37
     </target>
35 38
 
@@ -40,7 +43,7 @@
40 43
         <clover-historypoint historydir="reports/clover/history" />
41 44
         <clover-report>
42 45
             <current outfile="reports/clover">
43
-                <format type="html"/>
46
+                <format type="html" filter="private ctor"/>
44 47
              </current>
45 48
              <historical outfile="reports/clover" historydir="reports/clover/history" />
46 49
         </clover-report>

Loading…
Annulla
Salva