We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f60dc8 commit 6d725e2Copy full SHA for 6d725e2
pkg/linter/test/formatter_test.dart
@@ -5,6 +5,7 @@
5
import 'package:analyzer/diagnostic/diagnostic.dart';
6
import 'package:analyzer/file_system/physical_file_system.dart';
7
import 'package:analyzer/source/file_source.dart';
8
+import 'package:analyzer_testing/utilities/extensions/resource_provider.dart';
9
import 'package:test/test.dart';
10
import 'package:test_descriptor/test_descriptor.dart' as d;
11
@@ -33,7 +34,9 @@ var y = 22;
33
34
var z = 33;
35
'''),
36
]).create();
- sourcePath = '${d.sandbox}/project/foo.dart';
37
+ sourcePath = PhysicalResourceProvider.INSTANCE.convertPath(
38
+ '${d.sandbox}/project/foo.dart',
39
+ );
40
var file = PhysicalResourceProvider.INSTANCE.getFile(sourcePath);
41
var source = FileSource(file);
42
0 commit comments