[vala/wip/valadate: 739/749] Hide testreport impls



commit 9ea4b3604a4c44903edd78e33d426b92d20775a8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Apr 29 17:47:32 2017 +0200

    Hide testreport impls

 valadate/gnutestreportprinter.vala |    3 ++-
 valadate/taptestreportprinter.vala |    2 +-
 valadate/testreportprinter.vala    |    4 ++--
 valadate/testresult.vala           |    2 +-
 valadate/xmltestreportprinter.vala |    2 +-
 5 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/valadate/gnutestreportprinter.vala b/valadate/gnutestreportprinter.vala
index 5de3199..94d4f9c 100644
--- a/valadate/gnutestreportprinter.vala
+++ b/valadate/gnutestreportprinter.vala
@@ -19,7 +19,8 @@
  * Authors:
  *     Chris Daley <chebizarro gmail com>
  */
-public class Valadate.GnuTestReportPrinter : TestReportPrinter {
+
+internal class Valadate.GnuTestReportPrinter : TestReportPrinter {
 
        private const string TAP_VERSION = "13";
 
diff --git a/valadate/taptestreportprinter.vala b/valadate/taptestreportprinter.vala
index 92fb427..b0ab993 100644
--- a/valadate/taptestreportprinter.vala
+++ b/valadate/taptestreportprinter.vala
@@ -20,7 +20,7 @@
  *     Chris Daley <chebizarro gmail com>
  */
 
-public class Valadate.TapTestReportPrinter : TestReportPrinter {
+internal class Valadate.TapTestReportPrinter : TestReportPrinter {
 
        private const string TAP_VERSION = "13";
 
diff --git a/valadate/testreportprinter.vala b/valadate/testreportprinter.vala
index ab9015a..da58a95 100644
--- a/valadate/testreportprinter.vala
+++ b/valadate/testreportprinter.vala
@@ -23,7 +23,7 @@
 
 public abstract class Valadate.TestReportPrinter {
 
-       public static TestReportPrinter @new (TestConfig config) throws Error {
+       public static TestReportPrinter from_config (TestConfig config) throws Error {
                switch (config.format) {
                        case "tap" :
                                return new TapTestReportPrinter (config);
@@ -38,7 +38,7 @@ public abstract class Valadate.TestReportPrinter {
 
        public TestConfig config {get; set;}
 
-       public TestReportPrinter (TestConfig config) throws Error {
+       internal TestReportPrinter (TestConfig config) throws Error {
                this.config = config;
        }
 
diff --git a/valadate/testresult.vala b/valadate/testresult.vala
index ee12889..dd46353 100644
--- a/valadate/testresult.vala
+++ b/valadate/testresult.vala
@@ -31,7 +31,7 @@ public class Valadate.TestResult {
        public TestResult (TestConfig config) throws Error {
                this.config = config;
                if (!config.in_subprocess)
-                       printer = TestReportPrinter.new (config);
+                       printer = TestReportPrinter.from_config (config);
        }
 
        public bool report () {
diff --git a/valadate/xmltestreportprinter.vala b/valadate/xmltestreportprinter.vala
index 974e198..9a023c9 100644
--- a/valadate/xmltestreportprinter.vala
+++ b/valadate/xmltestreportprinter.vala
@@ -21,7 +21,7 @@
  *     Chris Daley <chebizarro gmail com>
  */
 
-public class Valadate.XmlTestReportPrinter : TestReportPrinter {
+internal class Valadate.XmlTestReportPrinter : TestReportPrinter {
 
        private const string XML_DECL ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
        private const string TESTSUITES_XML =


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]