d4t_formulas/.pub-cache/hosted/pub.dev/analyzer-7.7.1/test/embedder_tests.dart
Álvaro González 1d339653d5 feat: add formula data classes with strict JSON parsing
- Add VariableSpec class with magnitude field validation
- Add Formula class supporting multiple input/output variables
- Support d4rt_code as string or object with code field
- Add comprehensive tests for parsing and serialization
- Fix broken test import in pruebas_d4rt_test.dart

Follows README.md format requirements exactly
2025-08-21 17:15:00 +02:00

25 lines
903 B
Dart

// Copyright (c) 2016, 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:analyzer/src/test_utilities/resource_provider_mixin.dart';
abstract class EmbedderRelatedTest with ResourceProviderMixin {
final String emptyPath = '/home/.pub-cache/empty';
final String foxPath = '/home/.pub-cache/fox';
final String foxLib = '/home/.pub-cache/fox/lib';
void setUp() {
newFolder('/home/.pub-cache/empty');
newFolder('/home/.pub-cache/fox/lib');
newFile('/home/.pub-cache/fox/lib/_embedder.yaml', r'''
embedded_libs:
"dart:deep": "deep/directory/file.dart"
"dart:core" : "core/core.dart"
"dart:fox": "slippy.dart"
"dart:bear": "grizzly.dart"
"dart:relative": "../relative.dart"
"fart:loudly": "nomatter.dart"
''');
}
}