[Groonga-commit] groonga/grntest [master] Add "on_" prefix to event API for worker result

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Nov 21 12:42:33 JST 2012


Kouhei Sutou	2012-11-21 12:42:33 +0900 (Wed, 21 Nov 2012)

  New Revision: 539227a73cfcaa5a12a17124fd4b6add4eec27ff
  https://github.com/groonga/grntest/commit/539227a73cfcaa5a12a17124fd4b6add4eec27ff

  Log:
    Add "on_" prefix to event API for worker result

  Modified files:
    lib/grntest/tester.rb

  Modified: lib/grntest/tester.rb (+12 -12)
===================================================================
--- lib/grntest/tester.rb    2012-11-21 12:40:37 +0900 (ebd1127)
+++ lib/grntest/tester.rb    2012-11-21 12:42:33 +0900 (9f2c298)
@@ -423,27 +423,27 @@ module Grntest
         @failed_tests.size
       end
 
-      def test_finished
+      def on_test_finished
         @n_tests += 1
       end
 
-      def test_passed
+      def on_test_passed
         @n_passed_tests += 1
       end
 
-      def test_failed(name)
+      def on_test_failed(name)
         @failed_tests << name
       end
 
-      def test_leaked(name)
+      def on_test_leaked(name)
         @n_leaked_tests += 1
       end
 
-      def test_omitted
+      def on_test_omitted
         @n_omitted_tests += 1
       end
 
-      def test_not_checked
+      def on_test_not_checked
         @n_not_checked_tests += 1
       end
     end
@@ -512,36 +512,36 @@ module Grntest
 
       def on_test_success(result)
         @status = "passed"
-        @result.test_passed
+        @result.on_test_passed
         @reporter.on_test_success(self, result)
       end
 
       def on_test_failure(result)
         @status = "failed"
-        @result.test_failed(test_name)
+        @result.on_test_failed(test_name)
         @reporter.on_test_failure(self, result)
       end
 
       def on_test_leak(result)
         @status = "leaked(#{result.n_leaked_objects})"
-        @result.test_leaked(test_name)
+        @result.on_test_leaked(test_name)
         @reporter.on_test_leak(self, result)
       end
 
       def on_test_omission(result)
         @status = "omitted"
-        @result.test_omitted
+        @result.on_test_omitted
         @reporter.on_test_omission(self, result)
       end
 
       def on_test_no_check(result)
         @status = "not checked"
-        @result.test_not_checked
+        @result.on_test_not_checked
         @reporter.on_test_no_check(self, result)
       end
 
       def on_test_finish(result)
-        @result.test_finished
+        @result.on_test_finished
         @reporter.on_test_finish(self, result)
         @test_script_path = nil
         @test_name = nil
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index