public static class SqlParserTest.UnparsingTesterImpl extends SqlParserTest.TesterImpl
SqlParserTest.Tester which makes sure that the results of
unparsing a query are consistent with the original query.| 构造器和说明 |
|---|
UnparsingTesterImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
check(SqlTestFactory factory,
org.apache.calcite.sql.parser.StringAndPos sap,
@Nullable org.apache.calcite.sql.SqlDialect dialect,
UnaryOperator<String> converter,
String expected,
Consumer<org.apache.calcite.sql.parser.SqlParser> parserChecker) |
void |
checkExp(SqlTestFactory factory,
org.apache.calcite.sql.parser.StringAndPos sap,
UnaryOperator<String> converter,
String expected,
Consumer<org.apache.calcite.sql.parser.SqlParser> parserChecker) |
void |
checkExpFails(SqlTestFactory factory,
org.apache.calcite.sql.parser.StringAndPos sap,
String expectedMsgPattern)
Tests that an expression throws an exception that matches the given
pattern.
|
void |
checkFails(SqlTestFactory factory,
org.apache.calcite.sql.parser.StringAndPos sap,
boolean list,
String expectedMsgPattern) |
void |
checkList(SqlTestFactory factory,
org.apache.calcite.sql.parser.StringAndPos sap,
@Nullable org.apache.calcite.sql.SqlDialect dialect,
UnaryOperator<String> converter,
List<String> expected) |
boolean |
isUnparserTest() |
checkEx, checkNode, parseExpressionAndHandleEx, parseStmtAndHandleEx, parseStmtsAndHandleExpublic boolean isUnparserTest()
public void checkList(SqlTestFactory factory, org.apache.calcite.sql.parser.StringAndPos sap, @Nullable org.apache.calcite.sql.SqlDialect dialect, UnaryOperator<String> converter, List<String> expected)
checkList 在接口中 SqlParserTest.TestercheckList 在类中 SqlParserTest.TesterImplpublic void check(SqlTestFactory factory, org.apache.calcite.sql.parser.StringAndPos sap, @Nullable org.apache.calcite.sql.SqlDialect dialect, UnaryOperator<String> converter, String expected, Consumer<org.apache.calcite.sql.parser.SqlParser> parserChecker)
check 在接口中 SqlParserTest.Testercheck 在类中 SqlParserTest.TesterImplpublic void checkExp(SqlTestFactory factory, org.apache.calcite.sql.parser.StringAndPos sap, UnaryOperator<String> converter, String expected, Consumer<org.apache.calcite.sql.parser.SqlParser> parserChecker)
checkExp 在接口中 SqlParserTest.TestercheckExp 在类中 SqlParserTest.TesterImplpublic void checkFails(SqlTestFactory factory, org.apache.calcite.sql.parser.StringAndPos sap, boolean list, String expectedMsgPattern)
checkFails 在接口中 SqlParserTest.TestercheckFails 在类中 SqlParserTest.TesterImplpublic void checkExpFails(SqlTestFactory factory, org.apache.calcite.sql.parser.StringAndPos sap, String expectedMsgPattern)
SqlParserTest.TestercheckExpFails 在接口中 SqlParserTest.TestercheckExpFails 在类中 SqlParserTest.TesterImplCopyright © 2012-2023 Apache Software Foundation. All Rights Reserved.