Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: support not only query optimizer but also mruby written plugins
- Loading branch information
Showing
12 changed files
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| require "fileutils" | ||
|
|
||
| require "test-unit" | ||
|
|
||
| require_relative "helper/sandbox" | ||
| require_relative "helper/expression" | ||
|
|
||
| class GroongaTestCase < Test::Unit::TestCase | ||
| include Sandbox | ||
| include Expression | ||
|
|
||
| setup :setup_sandbox, :before => :prepend | ||
| teardown :teardown_sandbox, :after => :append | ||
| end | ||
|
|
||
| class QueryOptimizerTestCase < GroongaTestCase | ||
| def dump_plan(text, options={}) | ||
| parse(text, options) | ||
| @expression.dump_plan | ||
| end | ||
| end | ||
|
|
||
| class ExpressionRewriterTestCase < GroongaTestCase | ||
| def dump_rewritten_plan(text, options={}) | ||
| parse(text, options) | ||
| rewritten_expression = @expression.rewrite | ||
| if rewritten_expression | ||
| rewritten_expression.dump_plan | ||
| else | ||
| nil | ||
| end | ||
| end | ||
| end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Submodule rroonga
deleted from
69cdff