test: remove barrier files to improve unit testing performance (#249)

* test: remove barrier files to improve unit testing performance

* chore: change check-types command
This commit is contained in:
Hayden
2024-01-19 21:10:00 +08:00
committed by GitHub
parent 1038a3a828
commit ecbbee32c7
171 changed files with 501 additions and 517 deletions

View File

@ -1,5 +1,5 @@
import { MySQL } from '../../filters';
import { MysqlSplitListener, MySqlParserListener } from '../../filters';
import MySQL, { MysqlSplitListener } from 'src/parser/mysql';
import { MySqlParserListener } from 'src/lib/mysql/MySqlParserListener';
const validSQL1 = `INSERT INTO country_page_view
VALUES ('Chinese', 'mumiao', 18),

View File

@ -1,4 +1,4 @@
import { MySQL } from '../../filters';
import MySQL from 'src/parser/mysql';
describe('MySQL Lexer tests', () => {
const parser = new MySQL();

View File

@ -1,5 +1,6 @@
import { MySQL } from '../../filters';
import { MySqlParserListener, ParseTreeListener } from '../../filters';
import MySQL from 'src/parser/mysql';
import { MySqlParserListener } from 'src/lib/mysql/MySqlParserListener';
import { ParseTreeListener } from 'antlr4ts/tree/ParseTreeListener';
describe('MySQL Listener Tests', () => {
const expectTableName = 'user1';

View File

@ -1,6 +1,7 @@
import fs from 'fs';
import path from 'path';
import { MySQL, CaretPosition, SyntaxContextType } from '../../../filters';
import MySQL from 'src/parser/mysql';
import { CaretPosition, SyntaxContextType } from 'src/parser/common/basic-parser-types';
const syntaxSql = fs.readFileSync(
path.join(__dirname, 'fixtures', 'multipleStatement.sql'),

View File

@ -1,7 +1,8 @@
import fs from 'fs';
import path from 'path';
import { MySQL, CaretPosition, SyntaxContextType } from '../../../filters';
import { commentOtherLine } from '../../../helper';
import MySQL from 'src/parser/mysql';
import { SyntaxContextType, CaretPosition } from 'src/parser/common/basic-parser-types';
import { commentOtherLine } from 'test/helper';
const syntaxSql = fs.readFileSync(
path.join(__dirname, 'fixtures', 'syntaxSuggestion.sql'),

View File

@ -1,7 +1,8 @@
import fs from 'fs';
import path from 'path';
import { MySQL, CaretPosition } from '../../../filters';
import { commentOtherLine } from '../../../helper';
import MySQL from 'src/parser/mysql';
import { CaretPosition } from 'src/parser/common/basic-parser-types';
import { commentOtherLine } from 'test/helper';
const tokenSql = fs.readFileSync(path.join(__dirname, 'fixtures', 'tokenSuggestion.sql'), 'utf-8');

View File

@ -1,4 +1,4 @@
import { MySQL } from '../../filters';
import MySQL from 'src/parser/mysql';
describe('MySQL Syntax Tests', () => {
const parser = new MySQL();

View File

@ -1,5 +1,5 @@
import { MySQL } from '../../../filters';
import { readSQL } from '../../../helper';
import MySQL from 'src/parser/mysql';
import { readSQL } from 'test/helper';
const parser = new MySQL();

View File

@ -1,5 +1,5 @@
import { MySQL } from '../../../filters';
import { readSQL } from '../../../helper';
import MySQL from 'src/parser/mysql';
import { readSQL } from 'test/helper';
const parser = new MySQL();

View File

@ -1,5 +1,5 @@
import { MySQL } from '../../../filters';
import { readSQL } from '../../../helper';
import MySQL from 'src/parser/mysql';
import { readSQL } from 'test/helper';
const parser = new MySQL();

View File

@ -1,5 +1,5 @@
import { MySQL } from '../../../filters';
import { readSQL } from '../../../helper';
import MySQL from 'src/parser/mysql';
import { readSQL } from 'test/helper';
const parser = new MySQL();

View File

@ -1,4 +1,4 @@
import { MySQL } from '../../filters';
import MySQL from 'src/parser/mysql';
const randomText = `dhsdansdnkla ndjnsla ndnalks`;
const unCompleteSQL = `CREATE TABLE`;

View File

@ -1,4 +1,6 @@
import { MySQL, MySqlParserVisitor, AbstractParseTreeVisitor } from '../../filters';
import MySQL from 'src/parser/mysql';
import { MySqlParserVisitor } from 'src/lib/mysql/MySqlParserVisitor';
import { AbstractParseTreeVisitor } from 'antlr4ts/tree/AbstractParseTreeVisitor';
describe('MySQL Visitor Tests', () => {
const expectTableName = 'user1';