Fix analysis errors from deprecated engine constructor

This commit is contained in:
Simon Binder 2020-01-05 21:41:56 +01:00
parent 2f40e38484
commit b6b5e7f7c2
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
4 changed files with 8 additions and 4 deletions

View File

@ -7,7 +7,7 @@ import 'package:test/test.dart';
import '../utils.dart';
void main() {
final engine = SqlEngine(useMoorExtensions: true);
final engine = SqlEngine.withOptions(EngineOptions(useMoorExtensions: true));
final mapper = TypeMapper();
test('warns when a result column is unresolved', () {

View File

@ -24,7 +24,7 @@ CREATE TABLE bar (
void main() {
final mapper = TypeMapper();
final engine = SqlEngine(useMoorExtensions: true);
final engine = SqlEngine.withOptions(EngineOptions(useMoorExtensions: true));
final step = ParseMoorStep(
Task(null, null, null), FoundFile(Uri.parse('foo'), FileType.moor), '');

View File

@ -10,7 +10,7 @@ final Table table =
Table(name: 'todos', resolvedColumns: [_idColumn, _titleColumn]);
void main() {
final engine = SqlEngine()..registerTable(table);
final engine = SqlEngine.withOptions(EngineOptions(useMoorExtensions: true));
final mapper = TypeMapper();
test('extracts variables and sorts them by index', () {

View File

@ -1 +0,0 @@
../analysis_options.yaml

View File

@ -0,0 +1,5 @@
include: ../analysis_options.yaml
analyzer:
errors:
deprecated_member_use_from_same_package: ignore