blob: 7bbdb1685be1b3fac098dbff2a8cf90c70003638 [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'hint_code_driver_test.dart';
main() {
defineReflectiveSuite(() {
defineReflectiveTests(HintCodeTest_Kernel);
});
}
@reflectiveTest
class HintCodeTest_Kernel extends HintCodeTest_Driver {
@override
bool get enableKernelDriver => true;
@override
bool get previewDart2 => true;
@failingTest
@override
test_abstractSuperMemberReference_getter() async {
// Expected 1 errors of type HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE, found 0
return super.test_abstractSuperMemberReference_getter();
}
@failingTest
@override
test_abstractSuperMemberReference_method_invocation() async {
// Expected 1 errors of type HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE, found 0
return super.test_abstractSuperMemberReference_method_invocation();
}
@failingTest
@override
test_abstractSuperMemberReference_method_reference() async {
// Expected 1 errors of type HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE, found 0
return super.test_abstractSuperMemberReference_method_reference();
}
@failingTest
@override
test_argumentTypeNotAssignable_functionType() async {
// Expected 1 errors of type HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, found 0
return super.test_argumentTypeNotAssignable_functionType();
}
@failingTest
@override
test_argumentTypeNotAssignable_type() async {
// Expected 1 errors of type HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, found 0
return super.test_argumentTypeNotAssignable_type();
}
@failingTest
@override
test_deadCode_deadBlock_else() async {
// Expected 1 errors of type HintCode.DEAD_CODE, found 0
return super.test_deadCode_deadBlock_else();
}
@failingTest
@override
test_deadCode_deadBlock_else_nested() async {
// Expected 1 errors of type HintCode.DEAD_CODE, found 0
return super.test_deadCode_deadBlock_else_nested();
}
@failingTest
@override
test_deadCode_deadBlock_if() async {
// Expected 1 errors of type HintCode.DEAD_CODE, found 0
return super.test_deadCode_deadBlock_if();
}
@failingTest
@override
test_deadCode_deadBlock_if_nested() async {
// Expected 1 errors of type HintCode.DEAD_CODE, found 0
return super.test_deadCode_deadBlock_if_nested();
}
@failingTest
@override
test_deadCode_deadFinalStatementInCase() async {
// Expected 1 errors of type StaticWarningCode.CASE_BLOCK_NOT_TERMINATED, found 0
return super.test_deadCode_deadFinalStatementInCase();
}
@failingTest
@override
test_deprecatedAnnotationUse_Deprecated() async {
// Expected 1 errors of type HintCode.DEPRECATED_MEMBER_USE, found 0
return super.test_deprecatedAnnotationUse_Deprecated();
}
@override
@failingTest
test_deprecatedAnnotationUse_named() async {
return super.test_deprecatedAnnotationUse_named();
}
@failingTest
@override
test_deprecatedAnnotationUse_positional() async {
return super.test_deprecatedAnnotationUse_positional();
}
@failingTest
@override
test_deprecatedFunction_class() async {
// Expected 1 errors of type HintCode.DEPRECATED_FUNCTION_CLASS_DECLARATION, found 0
return super.test_deprecatedFunction_class();
}
@failingTest
@override
test_deprecatedFunction_extends() async {
// Expected 1 errors of type HintCode.DEPRECATED_EXTENDS_FUNCTION, found 0;
// 1 errors of type StaticWarningCode.FUNCTION_WITHOUT_CALL, found 0
return super.test_deprecatedFunction_extends();
}
@failingTest
@override
test_deprecatedFunction_extends2() async {
// Expected 1 errors of type HintCode.DEPRECATED_FUNCTION_CLASS_DECLARATION, found 0;
// 1 errors of type HintCode.DEPRECATED_EXTENDS_FUNCTION, found 0
return super.test_deprecatedFunction_extends2();
}
@failingTest
@override
test_deprecatedFunction_mixin() async {
// Expected 1 errors of type HintCode.DEPRECATED_MIXIN_FUNCTION, found 0;
// 1 errors of type StaticWarningCode.FUNCTION_WITHOUT_CALL, found 0
return super.test_deprecatedFunction_mixin();
}
@failingTest
@override
test_deprecatedFunction_mixin2() async {
// Expected 1 errors of type HintCode.DEPRECATED_FUNCTION_CLASS_DECLARATION, found 0;
// 1 errors of type HintCode.DEPRECATED_MIXIN_FUNCTION, found 0
return super.test_deprecatedFunction_mixin2();
}
@failingTest
@override
test_divisionOptimization_propagatedType() async {
// Expected 1 errors of type HintCode.DIVISION_OPTIMIZATION, found 0
return super.test_divisionOptimization_propagatedType();
}
@failingTest
@override
test_duplicateImport3() async {
// Expected 0 errors of type HintCode.UNUSED_IMPORT, found 2 (18, 57)
return super.test_duplicateImport3();
}
@failingTest
@override
test_importDeferredLibraryWithLoadFunction() async {
// ad state: Expected element reference for analyzer offset 60; got one for kernel offset 65
return super.test_importDeferredLibraryWithLoadFunction();
}
@failingTest
@override
test_invalidAssignment_instanceVariable() async {
// Expected 1 errors of type HintCode.INVALID_ASSIGNMENT, found 0
return super.test_invalidAssignment_instanceVariable();
}
@failingTest
@override
test_invalidAssignment_localVariable() async {
// Expected 1 errors of type HintCode.INVALID_ASSIGNMENT, found 0
return super.test_invalidAssignment_localVariable();
}
@failingTest
@override
test_invalidAssignment_staticVariable() async {
// Expected 1 errors of type HintCode.INVALID_ASSIGNMENT, found 0
return super.test_invalidAssignment_staticVariable();
}
@failingTest
@override
test_invalidAssignment_variableDeclaration() async {
// UnimplementedError: Multiple field
return super.test_invalidAssignment_variableDeclaration();
}
@override
@failingTest
test_invalidRequiredParam_on_named_parameter_with_default() async {
return super.test_invalidRequiredParam_on_named_parameter_with_default();
}
@override
@failingTest
test_invalidRequiredParam_on_positional_parameter() async {
return super.test_invalidRequiredParam_on_positional_parameter();
}
@override
@failingTest
test_invalidRequiredParam_on_positional_parameter_with_default() async {
return super
.test_invalidRequiredParam_on_positional_parameter_with_default();
}
@override
@failingTest
test_invalidRequiredParam_on_required_parameter() async {
return super.test_invalidRequiredParam_on_required_parameter();
}
@override
@failingTest
test_invalidRequiredParam_valid() async {
return super.test_invalidRequiredParam_valid();
}
@failingTest
@override
test_js_lib_OK() async {
// Bad state: Expected element reference for analyzer offset 51; got one for kernel offset 1
return super.test_js_lib_OK();
}
@failingTest
@override
test_missingJsLibAnnotation_class() async {
// Expected 1 errors of type HintCode.MISSING_JS_LIB_ANNOTATION, found 0;
// 0 errors of type HintCode.UNUSED_IMPORT, found 1 (21)
return super.test_missingJsLibAnnotation_class();
}
@failingTest
@override
test_missingJsLibAnnotation_externalField() async {
// Expected 1 errors of type ParserErrorCode.EXTERNAL_FIELD, found 0;
// 1 errors of type HintCode.MISSING_JS_LIB_ANNOTATION, found 0;
// 0 errors of type ParserErrorCode.EXTRANEOUS_MODIFIER, found 1 (36);
// 0 errors of type HintCode.UNUSED_IMPORT, found 1 (7)
return super.test_missingJsLibAnnotation_externalField();
}
@failingTest
@override
test_missingJsLibAnnotation_function() async {
// Expected 1 errors of type HintCode.MISSING_JS_LIB_ANNOTATION, found 0;
// 0 errors of type HintCode.UNUSED_IMPORT, found 1 (21)
return super.test_missingJsLibAnnotation_function();
}
@failingTest
@override
test_missingJsLibAnnotation_method() async {
// Expected 1 errors of type HintCode.MISSING_JS_LIB_ANNOTATION, found 0;
// 0 errors of type HintCode.UNUSED_IMPORT, found 1 (21)
return super.test_missingJsLibAnnotation_method();
}
@failingTest
@override
test_missingJsLibAnnotation_variable() async {
// Expected 1 errors of type HintCode.MISSING_JS_LIB_ANNOTATION, found 0;
// 0 errors of type HintCode.UNUSED_IMPORT, found 1 (7)
return super.test_missingJsLibAnnotation_variable();
}
@failingTest
@override
test_mustCallSuper() async {
// Expected 1 errors of type HintCode.MUST_CALL_SUPER, found 0
return super.test_mustCallSuper();
}
@failingTest
@override
test_mustCallSuper_indirect() async {
// Expected 1 errors of type HintCode.MUST_CALL_SUPER, found 0
return super.test_mustCallSuper_indirect();
}
@override
@failingTest
test_required_constructor_param() async {
return super.test_required_constructor_param();
}
@override
@failingTest
test_required_constructor_param_no_reason() async {
return super.test_required_constructor_param_no_reason();
}
@override
@failingTest
test_required_constructor_param_null_reason() async {
return super.test_required_constructor_param_null_reason();
}
@override
@failingTest
test_required_constructor_param_OK() async {
return super.test_required_constructor_param_OK();
}
@override
@failingTest
test_required_constructor_param_redirecting_cons_call() async {
return super.test_required_constructor_param_redirecting_cons_call();
}
@override
@failingTest
test_required_constructor_param_super_call() async {
return super.test_required_constructor_param_super_call();
}
@override
@failingTest
test_required_function_param() async {
return super.test_required_function_param();
}
@override
@failingTest
test_required_method_param() async {
return super.test_required_method_param();
}
@override
@failingTest
test_required_method_param_in_other_lib() async {
return super.test_required_method_param_in_other_lib();
}
@override
@failingTest
test_required_typedef_function_param() async {
return super.test_required_typedef_function_param();
}
@failingTest
@override
test_strongMode_downCastCompositeHint() async {
// Expected 1 errors of type StrongModeCode.STRONG_MODE_DOWN_CAST_COMPOSITE, found 0
return super.test_strongMode_downCastCompositeHint();
}
@failingTest
@override
test_strongMode_downCastCompositeWarn() async {
// Expected 1 errors of type StrongModeCode.STRONG_MODE_DOWN_CAST_COMPOSITE, found 0
return super.test_strongMode_downCastCompositeWarn();
}
@failingTest
@override
test_undefinedGetter() async {
// Expected 1 errors of type HintCode.UNDEFINED_GETTER, found 0
return super.test_undefinedGetter();
}
@failingTest
@override
test_undefinedMethod() async {
// Expected 1 errors of type HintCode.UNDEFINED_METHOD, found 0
return super.test_undefinedMethod();
}
@failingTest
@override
test_undefinedMethod_assignmentExpression() async {
// Expected 1 errors of type HintCode.UNDEFINED_METHOD, found 0
return super.test_undefinedMethod_assignmentExpression();
}
@failingTest
@override
test_undefinedOperator_binaryExpression() async {
// Expected 1 errors of type HintCode.UNDEFINED_OPERATOR, found 0
return super.test_undefinedOperator_binaryExpression();
}
@failingTest
@override
test_undefinedOperator_indexBoth() async {
// Expected 1 errors of type HintCode.UNDEFINED_OPERATOR, found 0
return super.test_undefinedOperator_indexBoth();
}
@failingTest
@override
test_undefinedOperator_indexGetter() async {
// Expected 1 errors of type HintCode.UNDEFINED_OPERATOR, found 0
return super.test_undefinedOperator_indexGetter();
}
@failingTest
@override
test_undefinedOperator_indexSetter() async {
// Expected 1 errors of type HintCode.UNDEFINED_OPERATOR, found 0
return super.test_undefinedOperator_indexSetter();
}
@failingTest
@override
test_undefinedOperator_postfixExpression() async {
// Expected 1 errors of type HintCode.UNDEFINED_OPERATOR, found 0
return super.test_undefinedOperator_postfixExpression();
}
@failingTest
@override
test_undefinedOperator_prefixExpression() async {
// Expected 1 errors of type HintCode.UNDEFINED_OPERATOR, found 0
return super.test_undefinedOperator_prefixExpression();
}
@failingTest
@override
test_undefinedSetter() async {
// Expected 1 errors of type HintCode.UNDEFINED_SETTER, found 0
return super.test_undefinedSetter();
}
@failingTest
@override
test_unusedImport_as() async {
// Failed to resolve 2 nodes:
// one (/test.dart : 53)
// one (/test.dart : 58)
return super.test_unusedImport_as();
}
@failingTest
@override
test_unusedImport_inComment_libraryDirective() async {
// Expected 0 errors of type HintCode.UNUSED_IMPORT, found 1 (42)
return super.test_unusedImport_inComment_libraryDirective();
}
@failingTest
@override
test_unusedShownName() async {
// Expected 1 errors of type HintCode.UNUSED_SHOWN_NAME, found 0
return super.test_unusedShownName();
}
@failingTest
@override
test_unusedShownName_as() async {
// Expected 1 errors of type HintCode.UNUSED_SHOWN_NAME, found 0;
// 0 errors of type HintCode.UNUSED_IMPORT, found 1 (18)
return super.test_unusedShownName_as();
}
@failingTest
@override
test_unusedShownName_duplicates() async {
// Expected 2 errors of type HintCode.UNUSED_SHOWN_NAME, found 0
return super.test_unusedShownName_duplicates();
}
@failingTest
@override
test_unusedShownName_topLevelVariable() async {
// Expected 1 errors of type HintCode.UNUSED_SHOWN_NAME, found 0
return super.test_unusedShownName_topLevelVariable();
}
}