| Index: pkg/analysis_server/test/index/store/typed_mocks.dart
|
| diff --git a/pkg/analysis_server/test/index/store/typed_mocks.dart b/pkg/analysis_server/test/index/store/typed_mocks.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d4e857bd763c54675da85e0aa49d1a51b93d2a60
|
| --- /dev/null
|
| +++ b/pkg/analysis_server/test/index/store/typed_mocks.dart
|
| @@ -0,0 +1,83 @@
|
| +// Copyright (c) 2014, 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.
|
| +
|
| +library test.index.store.typed_mocks;
|
| +
|
| +import 'package:analysis_server/src/index/store/codec.dart';
|
| +import 'package:analyzer/src/generated/element.dart';
|
| +import 'package:analyzer/src/generated/engine.dart';
|
| +import 'package:analyzer/src/generated/index.dart';
|
| +import 'package:analyzer/src/generated/source.dart';
|
| +import 'package:typed_mock/typed_mock.dart';
|
| +
|
| +
|
| +class MockAnalysisContext extends TypedMock implements AnalysisContext {
|
| + String _name;
|
| + MockAnalysisContext(this._name);
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| + String toString() => _name;
|
| +}
|
| +
|
| +
|
| +class MockCompilationUnitElement extends TypedMock implements
|
| + CompilationUnitElement {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockContextCodec extends TypedMock implements ContextCodec {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockElement extends TypedMock implements Element {
|
| + String _name;
|
| + MockElement([this._name = '<element>']);
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| + String toString() => _name;
|
| +}
|
| +
|
| +
|
| +class MockElementCodec extends TypedMock implements ElementCodec {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockHtmlElement extends TypedMock implements HtmlElement {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockInstrumentedAnalysisContextImpl extends TypedMock implements
|
| + InstrumentedAnalysisContextImpl {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockLibraryElement extends TypedMock implements LibraryElement {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockLocation extends TypedMock implements Location {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockLogger extends TypedMock implements Logger {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockRelationshipCodec extends TypedMock implements RelationshipCodec {
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| +}
|
| +
|
| +
|
| +class MockSource extends TypedMock implements Source {
|
| + String _name;
|
| + MockSource(this._name);
|
| + noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
|
| + String toString() => _name;
|
| +}
|
|
|