[Groonga-commit] groonga/groonga-query-log [master] test: use important information to name

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 13 16:12:44 JST 2012


Kouhei Sutou	2012-12-13 16:12:44 +0900 (Thu, 13 Dec 2012)

  New Revision: 4775079fd1b73d97802a26dbfc3fbb1413c527d7
  https://github.com/groonga/groonga-query-log/commit/4775079fd1b73d97802a26dbfc3fbb1413c527d7

  Log:
    test: use important information to name
    
    The method is only for JSON.

  Modified files:
    test/test-analyzer.rb

  Modified: test/test-analyzer.rb (+2 -2)
===================================================================
--- test/test-analyzer.rb    2012-12-13 16:10:18 +0900 (661834b)
+++ test/test-analyzer.rb    2012-12-13 16:12:44 +0900 (0c22130)
@@ -47,7 +47,7 @@ class AnalyzerTest < Test::Unit::TestCase
   data(:console => "console", :html => "html", :json => "json")
   def test_output(output_type)
     actual_result = run_analyzer("--reporter", output_type, @query_log_path)
-    actual_result = normalize_time(actual_result) if output_type == "json"
+    actual_result = normalize_json(actual_result) if output_type == "json"
 
     expected_result = expected_analyzed_query("#{output_type}.expected")
     assert_equal(expected_result, actual_result)
@@ -59,7 +59,7 @@ class AnalyzerTest < Test::Unit::TestCase
     @output.string
   end
 
-  def normalize_time(json_string)
+  def normalize_json(json_string)
     json_string = json_string.gsub(/(\"start_time\"):\d+/,
                                    "\\1:START_TIME")
     json_string.gsub(/(\"last_time\"):\d+/, "\\1:LAST_TIME")
-------------- next part --------------
HTML����������������������������...
Download 



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