a6e3008ded
See: https://dart-review.googlesource.com/c/sdk/+/196026 TEST=Code cleanup exclusively (sorting imports); no new tests. Change-Id: Ib07a82ff418138c542d6a83cfab9aabbb285f866 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196180 Auto-Submit: Phil Quitslund <pquitslund@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com>
25 lines
734 B
Dart
25 lines
734 B
Dart
// Copyright (c) 2020, 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/test.dart';
|
|
import 'package:vm_service/vm_service.dart';
|
|
|
|
const Map<String, dynamic> kNullInstance = {
|
|
'type': '@Instance',
|
|
'id': 'instance/123',
|
|
'kind': 'Null',
|
|
'class': {
|
|
'type': '@Class',
|
|
'id': 'object/0',
|
|
'name': 'Null',
|
|
}
|
|
};
|
|
|
|
void main() {
|
|
test('Ensure createServiceObject handles Null @Instances properly', () {
|
|
expect(createServiceObject(kNullInstance, ['InstanceRef']), isNotNull);
|
|
expect(createServiceObject(kNullInstance, ['ClassRef']), isNull);
|
|
});
|
|
}
|