Haruka Yoshihara
null+****@clear*****
Fri Dec 14 11:45:44 JST 2012
Haruka Yoshihara 2012-12-14 11:45:44 +0900 (Fri, 14 Dec 2012) New Revision: 2d2443c8770a764fca334f4d9a6b83b46dcc4dbe https://github.com/groonga/groonga-query-log/commit/2d2443c8770a764fca334f4d9a6b83b46dcc4dbe Log: test: add the test for "--no-report--summary" option of Analyzer#run Added files: test/fixtures/no-report-summary.expected Modified files: test/test-analyzer.rb Added: test/fixtures/no-report-summary.expected (+15 -0) 100644 =================================================================== --- /dev/null +++ test/fixtures/no-report-summary.expected 2012-12-14 11:45:44 +0900 (e79367c) @@ -0,0 +1,15 @@ + +Slow Queries: +1) [2012-12-12 17:39:17.3-2012-12-12 17:39:17.3 (0.00312886)](0): load --table Video name: <load> + parameters: + <table>: <Video> + +2) [2012-12-12 17:39:17.3-2012-12-12 17:39:17.3 (0.00121714)](0): select --table Users --query follower:@groonga --output_columns _key,name name: <select> + parameters: + <table>: <Users> + <query>: <follower:@groonga> + <output_columns>: <_key,name> + 1) 0.00084295: filter( 2) query: follower:@groonga + 2) 0.00002795: select( 2) + 3) 0.00019585: output( 2) _key,name + Modified: test/test-analyzer.rb (+6 -0) =================================================================== --- test/test-analyzer.rb 2012-12-13 19:15:44 +0900 (93ef8e9) +++ test/test-analyzer.rb 2012-12-14 11:45:44 +0900 (28da29d) @@ -55,6 +55,12 @@ class AnalyzerTest < Test::Unit::TestCase assert_equal(expected_result, actual_result) end + def test_no_report_summary + actual_result = run_analyzer("--no-report-summary", @query_log_path) + expected_result = expected_analyzed_query("no-report-summary.expected") + assert_equal(expected_result, actual_result) + end + private def run_analyzer(*arguments) output = "" -------------- next part -------------- HTML����������������������������... Télécharger