Skip to content

Commit 21e9b28

Browse files
committed
Revert Snowflake test helper rename
1 parent 0d34152 commit 21e9b28

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/test_utils.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl TestedDialects {
140140
///
141141
/// In general, the canonical SQL should be the same (see crate
142142
/// documentation for rationale) and you should prefer the `verified_`
143-
/// variants in testing, such as [`verified_statement`] or
143+
/// variants in testing, such as [`verified_stmt`] or
144144
/// [`verified_query`].
145145
///
146146
/// If `canonical` is non empty,this function additionally asserts
@@ -199,13 +199,8 @@ impl TestedDialects {
199199
/// Ensures that `sql` parses as a single [Statement], and that
200200
/// re-serializing the parse result produces the same `sql`
201201
/// string (is not modified after a serialization round-trip).
202-
pub fn verified_statement(&self, sql: &str) -> Statement {
203-
self.one_statement_parses_to(sql, sql)
204-
}
205-
206-
/// Shorthand for [`TestedDialects::verified_statement`].
207202
pub fn verified_stmt(&self, sql: &str) -> Statement {
208-
self.verified_statement(sql)
203+
self.one_statement_parses_to(sql, sql)
209204
}
210205

211206
/// Ensures that `sql` parses as a single [Query], and that

tests/sqlparser_snowflake.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5032,12 +5032,12 @@ fn test_text_cast_with_length_modifier() {
50325032
_ => unreachable!(),
50335033
}
50345034

5035-
snowflake().verified_statement("SELECT col::TEXT(16777216) AS col FROM t");
5035+
snowflake().verified_stmt("SELECT col::TEXT(16777216) AS col FROM t");
50365036
}
50375037

50385038
#[test]
50395039
fn test_plain_text_data_type_still_parses_as_text() {
5040-
match snowflake().verified_statement("CREATE TABLE t (c TEXT)") {
5040+
match snowflake().verified_stmt("CREATE TABLE t (c TEXT)") {
50415041
Statement::CreateTable(CreateTable { columns, .. }) => {
50425042
assert_eq!(columns[0].data_type, DataType::Text);
50435043
}

0 commit comments

Comments
 (0)