blob: 296ecaa944cb7d7d8641f1a2309533671dfa96e2 [file]
// Copyright (c) 2025, 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';
import 'common/service_test_common.dart';
import 'evaluate_const_local_2_lib.dart' as testee_lib;
void main([args = const <String>[]]) =>
IsolateTestHarness('evaluate_const_local_2_lib.dart', args)
.hasStoppedAtBreakpoint()
.addCustomTest((VmService service, IsolateRef isolateRef) async {
final result = await service.evaluateInFrame(
isolateRef.id!,
0,
'foo',
) as InstanceRef;
expect(result.valueAsString, equals('hello from foo'));
expect(result.kind, equals(InstanceKind.kString));
}).run(testeeMain: testee_lib.main);