Skip to content

Commit b735144

Browse files
committed
Adapt the test suites and tools to the mysql-parser package
The lexer, parser, token data, and parse tree classes are tested in the wordpress/mysql-parser package now: - Remove the lexer and parser test suites from the driver package (the corpus data stays here; the parser package corpus test reads it from the sibling package and skips when it is not available). - Move the parse tree node tests to the parser package and cover the new flattened child node accessor. - Remove the native parser extension tests and tools, which are bound to the old grammar contract. - Update the AST dump and benchmark tools to the new parser API.
1 parent a8129af commit b735144

13 files changed

Lines changed: 104 additions & 1280 deletions

‎packages/mysql-on-sqlite/tests/bootstrap.php‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
define( 'WP_SQLITE_UNSAFE_ENABLE_UNSUPPORTED_VERSIONS', true );
1010
}
1111

12-
if ( '1' === getenv( 'WP_SQLITE_REQUIRE_NATIVE_PARSER_EXTENSION' ) ) {
13-
require_once __DIR__ . '/tools/verify-native-parser-extension.php';
14-
}
15-
1612
// Configure the test environment.
1713
error_reporting( E_ALL );
1814
define( 'FQDB', ':memory:' );

‎packages/mysql-on-sqlite/tests/mysql/WP_MySQL_Lexer_Tests.php‎

Lines changed: 0 additions & 409 deletions
This file was deleted.

‎packages/mysql-on-sqlite/tests/mysql/WP_MySQL_Server_Suite_Lexer_Tests.php‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎packages/mysql-on-sqlite/tests/mysql/WP_MySQL_Server_Suite_Parser_Tests.php‎

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)